diff options
Diffstat (limited to 'views/default/page/elements')
-rw-r--r-- | views/default/page/elements/topbar.php | 17 | ||||
-rw-r--r-- | views/default/page/elements/topbar_logout.php | 14 |
2 files changed, 10 insertions, 21 deletions
diff --git a/views/default/page/elements/topbar.php b/views/default/page/elements/topbar.php index 7d57ed684..a79df2efb 100644 --- a/views/default/page/elements/topbar.php +++ b/views/default/page/elements/topbar.php @@ -14,22 +14,25 @@ echo '<div class="elgg-page-topbar">'; echo '<div class="elgg-inner clearfix">'; // Elgg logo -echo '<a href="http://www.elgg.org" class="main">'; -echo "<img class=\"site-logo\" src=\"".elgg_get_site_url()."_graphics/elgg_toolbar_logo.gif\" alt=\"Elgg logo\" />"; -echo '</a>'; +$image = '<img src="' . elgg_get_site_url() . '_graphics/elgg_toolbar_logo.gif" alt="Elgg logo" />'; +echo elgg_view('output/url', array( + 'href' => 'http://www.elgg.org/', + 'text' => $image, +)); // avatar $user_link = $user->getURL(); $user_image = $user->getIcon('topbar'); -echo "<a href=\"$user_link\" class=\"main\"><img class=\"user-mini-avatar\" src=\"$user_image\" alt=\"User avatar\" /></a>"; +$image = "<img src=\"$user_image\" alt=\"$user->name\" class=\"elgg-border-plain\" />"; +echo elgg_view('output/url', array( + 'href' => $user_link, + 'text' => $image, +)); // friends -//$friends = elgg_echo('friends'); -//echo "<a class='myfriends main' href=\"".elgg_get_site_url()."pg/friends/{$user->username}\" title=\"$friends\"> </a>"; echo elgg_view('output/url', array( 'href' => elgg_get_site_url() . "pg/settings/{$user->username}/", 'text' => '<span class="elgg-icon elgg-icon-friends"></span>', - 'class' => 'main', 'title' => elgg_echo('friends'), )); diff --git a/views/default/page/elements/topbar_logout.php b/views/default/page/elements/topbar_logout.php deleted file mode 100644 index a4bc55e6e..000000000 --- a/views/default/page/elements/topbar_logout.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php -/** - * A standard logout link - * - * Called within the Elgg topbar view. - */ - - -echo elgg_view('output/url', array( - 'href' => "action/logout", - 'text' => elgg_echo('logout'), - 'is_action' => TRUE, - 'class' => 'alt', -)); |