aboutsummaryrefslogtreecommitdiff
path: root/views/default/likes/forms
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/likes/forms')
-rw-r--r--views/default/likes/forms/edit.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/views/default/likes/forms/edit.php b/views/default/likes/forms/edit.php
index 76e503f55..479b10f75 100644
--- a/views/default/likes/forms/edit.php
+++ b/views/default/likes/forms/edit.php
@@ -20,13 +20,15 @@ if (isset($vars['entity']) && isloggedin()) {
$numoflikes = elgg_count_likes($vars['entity']);
if ($numoflikes != 0) {
if ($numoflikes == 1) {
- echo "<a onclick=\" $('#showLikes').show('slow');\">" . elgg_count_likes($vars['entity']) . " " . elgg_echo('likes:userlikedthis') . "</a>";
+ $user_string = elgg_echo('likes:userlikedthis');
} else {
- echo "<a onclick=\" $('#showLikes').show('slow');\">" . elgg_count_likes($vars['entity']) . " " . elgg_echo('likes:userslikethis') . "</a>";
+ $user_string = elgg_echo('likes:userslikedthis');
}
+
+ echo "<a class=\"likes_list_button\">" . elgg_count_likes($vars['entity']) . " " . $user_string . "</a>";
}
//show the users who liked the object
- echo "<div id=\"showLikes\" style=\"display:none;\">";
- echo list_annotations($vars['entity']->getGUID(),'likes',99);
+ echo "<div class=\"likes_list\" style=\"display: none;\">";
+ echo list_annotations($vars['entity']->getGUID(), 'likes', 99);
echo "</div>";
} \ No newline at end of file