From f06582a79a42988934efb810ea26faee5b4c47f4 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 6 Feb 2011 19:35:28 +0000 Subject: forgot this file from a previous commit git-svn-id: http://code.elgg.org/elgg/trunk@8045 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/icon/user/default.php | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 views/default/icon/user/default.php (limited to 'views/default/icon/user') diff --git a/views/default/icon/user/default.php b/views/default/icon/user/default.php new file mode 100644 index 000000000..c0bfc4676 --- /dev/null +++ b/views/default/icon/user/default.php @@ -0,0 +1,61 @@ +name, ENT_QUOTES, 'UTF-8'); +$username = $user->username; + +$icontime = $user->icontime; +if (!$icontime) { + $icontime = "default"; +} + +$js = elgg_get_array_value('js', $vars, ''); + +$hover = elgg_get_array_value('hover', $vars, true); + +$spacer_url = elgg_get_site_url() . '_graphics/spacer.gif'; + +$icon_url = $user->getIconURL($size); +$icon = "\"$name\""; + +$show_menu = $hover && (isadminloggedin() || !$user->isBanned()); + +?> +
+ $user, + 'username' => $username, + 'name' => $name, + ); + echo ""; + echo elgg_view_menu('user_hover', $params); +} + +echo elgg_view('output/url', array( + 'href' => $user->getURL(), + 'text' => $icon, +)); +?> +
-- cgit v1.2.3