aboutsummaryrefslogtreecommitdiff
path: root/views/default/icon/user/default.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-06 07:53:28 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-06 07:53:28 -0500
commita7b3dfa29f185c1f154ec229ba448222d6d442af (patch)
tree65c51f7d4d9ccec0813568bd81a554e606c79662 /views/default/icon/user/default.php
parent61d24f4b7b4fd4d5e960593a25a0d96b11891ff0 (diff)
downloadelgg-a7b3dfa29f185c1f154ec229ba448222d6d442af.tar.gz
elgg-a7b3dfa29f185c1f154ec229ba448222d6d442af.tar.bz2
added a href override to the user icon view
Diffstat (limited to 'views/default/icon/user/default.php')
-rw-r--r--views/default/icon/user/default.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/default/icon/user/default.php b/views/default/icon/user/default.php
index 54885805b..a208ec41a 100644
--- a/views/default/icon/user/default.php
+++ b/views/default/icon/user/default.php
@@ -12,6 +12,7 @@
* @uses $vars['class'] Optional class added to the .elgg-avatar div
* @uses $vars['img_class'] Optional CSS class added to img
* @uses $vars['link_class'] Optional CSS class for the link
+ * @uses $vars['href'] Optional override of the link href
*/
$user = elgg_extract('entity', $vars, elgg_get_logged_in_user_entity());
@@ -82,8 +83,9 @@ if ($show_menu) {
if ($use_link) {
$class = elgg_extract('link_class', $vars, '');
+ $url = elgg_extract('href', $vars, $user->getURL());
echo elgg_view('output/url', array(
- 'href' => $user->getURL(),
+ 'href' => $url,
'text' => $icon,
'is_trusted' => true,
'class' => $class,