aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/elements/topbar.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-22 02:13:13 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-22 02:13:13 +0000
commitdd5f5518d83e46c13232e0fa82118539aae0faa7 (patch)
tree600c8c95e942f752c9980ba22630227282a5c172 /views/default/page/elements/topbar.php
parentde8cccfd3f729fce4350a3391208acf2450a3f83 (diff)
downloadelgg-dd5f5518d83e46c13232e0fa82118539aae0faa7.tar.gz
elgg-dd5f5518d83e46c13232e0fa82118539aae0faa7.tar.bz2
Fixes #2980: DRY'ed up all plugins to use elgg_view_icon instead of generating their own html
git-svn-id: http://code.elgg.org/elgg/trunk@8410 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page/elements/topbar.php')
-rw-r--r--views/default/page/elements/topbar.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/views/default/page/elements/topbar.php b/views/default/page/elements/topbar.php
index 987326119..88ffa85e0 100644
--- a/views/default/page/elements/topbar.php
+++ b/views/default/page/elements/topbar.php
@@ -26,8 +26,8 @@ echo elgg_view('output/url', array(
// friends
echo elgg_view('output/url', array(
- 'href' => elgg_get_site_url() . "pg/friends/{$user->username}/",
- 'text' => '<span class="elgg-icon elgg-icon-friends"></span>',
+ 'href' => "pg/friends/{$user->username}/",
+ 'text' => elgg_view_icon('friends'),
'title' => elgg_echo('friends'),
));
@@ -51,16 +51,16 @@ echo elgg_view('elgg_topbar/extend', $vars);
// user settings
echo elgg_view('output/url', array(
- 'href' => elgg_get_site_url() . "pg/settings/user/{$user->username}",
- 'text' => '<span class="elgg-icon elgg-icon-settings"></span>' . elgg_echo('settings'),
+ 'href' => "pg/settings/user/{$user->username}",
+ 'text' => elgg_view_icon('settings') . elgg_echo('settings'),
'class' => 'elgg-alt',
));
// The administration link is for admin or site admin users only
if ($user->isAdmin()) {
echo elgg_view('output/url', array(
- 'href' => elgg_get_site_url() . 'pg/admin/',
- 'text' => '<span class="elgg-icon elgg-icon-settings"></span>' . elgg_echo('admin'),
+ 'href' => 'pg/admin/',
+ 'text' => elgg_view_icon('settings') . elgg_echo('admin'),
'class' => 'elgg-alt',
));
}