aboutsummaryrefslogtreecommitdiff
path: root/views/default/page
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
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')
-rw-r--r--views/default/page/elements/page_links.php2
-rw-r--r--views/default/page/elements/topbar.php12
2 files changed, 7 insertions, 7 deletions
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' => '<span class="elgg-icon elgg-icon-rss"></span>',
+ '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' => '<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',
));
}