aboutsummaryrefslogtreecommitdiff
path: root/views/default/page
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-10 01:27:20 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-10 01:27:20 +0000
commit5669dad314e9177de420044b5f938ccbb1da63f2 (patch)
treeb42ccc876855e54707f46b2110341a8fb97eaabf /views/default/page
parent87079289a9020280e2f2cf3b0ae2df1532a9408b (diff)
downloadelgg-5669dad314e9177de420044b5f938ccbb1da63f2.tar.gz
elgg-5669dad314e9177de420044b5f938ccbb1da63f2.tar.bz2
completed the topbar modifications
git-svn-id: http://code.elgg.org/elgg/trunk@7588 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page')
-rw-r--r--views/default/page/elements/topbar.php17
-rw-r--r--views/default/page/elements/topbar_logout.php14
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\">&nbsp;</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',
-));