From dd5f5518d83e46c13232e0fa82118539aae0faa7 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 22 Feb 2011 02:13:13 +0000 Subject: 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 --- views/default/page/elements/page_links.php | 2 +- views/default/page/elements/topbar.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'views/default/page') diff --git a/views/default/page/elements/page_links.php b/views/default/page/elements/page_links.php index fb9acbfb7..bd901ee42 100644 --- a/views/default/page/elements/page_links.php +++ b/views/default/page/elements/page_links.php @@ -17,7 +17,7 @@ if (isset($autofeed) && $autofeed == true) { $label = elgg_echo('feed:rss'); $rss_link = elgg_view('output/url', array( - 'text' => '', + 'text' => elgg_view_icon('rss'), 'href' => $url, 'title' => $label, 'rel' => 'nofollow', 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' => '', + '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' => '' . 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' => '' . elgg_echo('admin'), + 'href' => 'pg/admin/', + 'text' => elgg_view_icon('settings') . elgg_echo('admin'), 'class' => 'elgg-alt', )); } -- cgit v1.2.3