aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks
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 /mod/bookmarks
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 'mod/bookmarks')
-rw-r--r--mod/bookmarks/views/default/bookmarks/page_links.php2
-rw-r--r--mod/bookmarks/views/default/object/bookmarks.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/mod/bookmarks/views/default/bookmarks/page_links.php b/mod/bookmarks/views/default/bookmarks/page_links.php
index 92ea8600a..8774230f0 100644
--- a/mod/bookmarks/views/default/bookmarks/page_links.php
+++ b/mod/bookmarks/views/default/bookmarks/page_links.php
@@ -11,7 +11,7 @@ $url = 'pg/bookmarks/add/' . elgg_get_logged_in_user_guid()
$return[] = new ElggMenuItem('bookmark_this_page', elgg_echo('bookmarks:this'), $url);
echo elgg_view('output/url', array(
- 'text' => '<span class="elgg-icon elgg-icon-bookmark"></span>',
+ 'text' => elgg_view_icon('bookmark'),
'href' => $url,
'title' => $label,
'rel' => 'nofollow',
diff --git a/mod/bookmarks/views/default/object/bookmarks.php b/mod/bookmarks/views/default/object/bookmarks.php
index e9485d260..dc1ae795d 100644
--- a/mod/bookmarks/views/default/object/bookmarks.php
+++ b/mod/bookmarks/views/default/object/bookmarks.php
@@ -63,12 +63,12 @@ if ($full && !elgg_in_context('gallery')) {
'tags' => $tags,
);
$bookmark_info = elgg_view('layout/objects/list/body', $params);
-
+ $bookmark_icon = elgg_view_icon('bookmark');
echo <<<HTML
$header
$bookmark_info
<div class="bookmark elgg-content">
- <span class="elgg-icon elgg-icon-bookmark"></span><h3 class="pbl">$link</h3>
+ $bookmark_icon<h3 class="pbl">$link</h3>
$description
</div>
HTML;
@@ -103,7 +103,7 @@ HTML;
'text' => $display_text
)));
- $content = "<span class=\"elgg-icon elgg-icon-bookmark\"></span>$link{$excerpt}";
+ $content = elgg_view_icon('bookmark') . "$link{$excerpt}";
$params = array(
'entity' => $bookmark,