diff options
Diffstat (limited to 'views/default/page_elements/topbar.php')
-rw-r--r-- | views/default/page_elements/topbar.php | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/views/default/page_elements/topbar.php b/views/default/page_elements/topbar.php deleted file mode 100644 index 83ffdf54b..000000000 --- a/views/default/page_elements/topbar.php +++ /dev/null @@ -1,44 +0,0 @@ -<?php -/** - * Elgg top toolbar - * The standard elgg top toolbar - */ - -$user = get_loggedin_user(); -if (($user instanceof ElggUser) && ($user->guid > 0)) { - echo '<div class="elgg-page-topbar">'; - echo '<div class="elgg-page-topbar-inner">'; - - // Elgg logo - echo '<a href="http://www.elgg.org">'; - echo "<img class=\"site-logo\" src=\"".elgg_get_site_url()."_graphics/elgg_toolbar_logo.gif\" alt=\"Elgg logo\" />"; - echo '</a>'; - - // avatar - $user_link = $user->getURL(); - $user_image = $user->getIcon('topbar'); - echo "<a href=\"$user_link\"><img class=\"user-mini-avatar\" src=\"$user_image\" alt=\"User avatar\" /></a>"; - - // logout link - echo elgg_view('page_elements/topbar_logout', $vars); - - // elgg tools menu - // need to echo this empty view for backward compatibility. - echo elgg_view("navigation/topbar_tools"); - - // enable elgg topbar extending - echo elgg_view('elgg_topbar/extend', $vars); - - // user settings - $settings = elgg_echo('settings'); - echo "<a href=\"".elgg_get_site_url()."pg/settings\" class=\"settings\">$settings</a>"; - - // The administration link is for admin or site admin users only - if ($user->isAdmin()) { - $admin = elgg_echo("admin"); - echo "<a href=\"".elgg_get_site_url()."pg/admin\" class=\"admin\">$admin</a>"; - } - - echo '</div>'; - echo '</div>'; -} |