From a7b3dfa29f185c1f154ec229ba448222d6d442af Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 6 Nov 2011 07:53:28 -0500 Subject: added a href override to the user icon view --- views/default/icon/user/default.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'views/default/icon/user/default.php') 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, -- cgit v1.2.3