From 7303fb1a0960e6bb3b6e11f51372d1ed689e3b84 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 19 Dec 2010 03:17:51 +0000 Subject: added a user admin menu that plugins can add menu items to git-svn-id: http://code.elgg.org/elgg/trunk@7678 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/profile/icon.php | 116 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 views/default/profile/icon.php (limited to 'views/default/profile') diff --git a/views/default/profile/icon.php b/views/default/profile/icon.php new file mode 100644 index 000000000..f58fbf10d --- /dev/null +++ b/views/default/profile/icon.php @@ -0,0 +1,116 @@ +name, ENT_QUOTES, 'UTF-8'); + $username = $vars['entity']->username; + + if ($icontime = $vars['entity']->icontime) { + $icontime = "{$icontime}"; + } else { + $icontime = "default"; + } + + // Get size + if (!in_array($vars['size'],array('small','medium','large','tiny','master','topbar'))) { + $vars['size'] = 'medium'; + } + + // Get any align and js + if (!empty($vars['align'])) { + $align = " align=\"{$vars['align']}\" "; + } else { + $align = ''; + } + + // Override + if (isset($vars['override']) && $vars['override'] == true) { + $override = true; + } else { + $override = false; + } + // profile avatar drop-down menu + if (!$override) { + ?> +
+
+ + isBanned())) { + ?> + + + alt="name, ENT_QUOTES, 'UTF-8'); ?>" title="name, ENT_QUOTES, 'UTF-8'); ?>" style="background: url(getIcon($vars['size']); ?>) no-repeat;" class="" /> + getIcon($vars['size'])); ?>" border="0" alt="name, ENT_QUOTES, 'UTF-8'); ?>" title="name, ENT_QUOTES, 'UTF-8'); ?>" /> + */ + + if (!$override) { + ?> +
+