From e5227e9221edbce84eee82af7f2c9903de702f37 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 5 Feb 2011 22:46:28 +0000 Subject: Fixes #2559 refs #2475 added ElggEntity:getIconURL() and elgg_view_entity_icon() git-svn-id: http://code.elgg.org/elgg/trunk@8039 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/profile/icon.php | 71 +++--------------------------------------- 1 file changed, 5 insertions(+), 66 deletions(-) (limited to 'views/default/profile') diff --git a/views/default/profile/icon.php b/views/default/profile/icon.php index 5685c0a73..1a36ca3cd 100644 --- a/views/default/profile/icon.php +++ b/views/default/profile/icon.php @@ -1,77 +1,16 @@ name, ENT_QUOTES, 'UTF-8'); -$username = $user->username; - -$icontime = $user->icontime; -if (!$icontime) { - $icontime = "default"; -} - -$js = elgg_get_array_value('js', $vars, ''); - -// Get any align and js -if (!empty($vars['align'])) { - $align = " align=\"{$vars['align']}\" "; -} else { - $align = ''; -} - $override = elgg_get_array_value('override', $vars, false); +$vars['hover'] = !$override; -$spacer_url = elgg_get_site_url() . '_graphics/spacer.gif'; -$icon_url = $user->getIcon($size); -$icon = "\"$name\""; - -// no hover menu if override set -if ($override) { - echo $icon; - return true; -} - -?> -
- $user, - 'username' => $username, - 'name' => $name, -); -echo elgg_view('profile/hover', $params); - -if ((isadminloggedin()) || (!$user->isBanned())) { -?> - -isBanned())) { -?> - - -
+echo elgg_view('icon/user/default', $vars); -- cgit v1.2.3