diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 02:13:13 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 02:13:13 +0000 |
commit | dd5f5518d83e46c13232e0fa82118539aae0faa7 (patch) | |
tree | 600c8c95e942f752c9980ba22630227282a5c172 /views/default/core | |
parent | de8cccfd3f729fce4350a3391208acf2450a3f83 (diff) | |
download | elgg-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/core')
-rw-r--r-- | views/default/core/likes/display.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/core/likes/display.php b/views/default/core/likes/display.php index 570c4d1ff..addcee199 100644 --- a/views/default/core/likes/display.php +++ b/views/default/core/likes/display.php @@ -19,7 +19,7 @@ if (elgg_is_logged_in() && $vars['entity']->canAnnotate(0, 'likes')) { $url = elgg_get_site_url() . "action/likes/add?guid={$guid}"; $params = array( 'href' => $url, - 'text' => '<span class="elgg-icon elgg-icon-likes"></span>', + 'text' => elgg_view_icon('likes'), 'title' => elgg_echo('likes:likethis'), 'is_action' => true, 'encode_text' => false, @@ -35,7 +35,7 @@ if (elgg_is_logged_in() && $vars['entity']->canAnnotate(0, 'likes')) { $url = elgg_get_site_url() . "action/likes/delete?annotation_id={$likes[0]->id}"; $params = array( 'href' => $url, - 'text' => "<span class=\"elgg-icon elgg-icon-liked\"></span>", + 'text' => elgg_view_icon('liked'), 'title' => elgg_echo('likes:remove'), 'is_action' => true, 'encode_text' => false, |