aboutsummaryrefslogtreecommitdiff
path: root/views/default/likes/forms
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-21 16:53:01 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-21 16:53:01 +0000
commit0216846f9dca29f883161bfd4de54162813c7691 (patch)
tree58ef3f8fb178df4825500484044874557d453fb8 /views/default/likes/forms
parentf50e4502cc301402ce20dca21a54a58a2154614c (diff)
downloadelgg-0216846f9dca29f883161bfd4de54162813c7691.tar.gz
elgg-0216846f9dca29f883161bfd4de54162813c7691.tar.bz2
more tweaks to likes on the activity stream
git-svn-id: http://code.elgg.org/elgg/trunk@5460 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/likes/forms')
-rw-r--r--views/default/likes/forms/edit.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/views/default/likes/forms/edit.php b/views/default/likes/forms/edit.php
index 4a9bbb7d7..10bb7aada 100644
--- a/views/default/likes/forms/edit.php
+++ b/views/default/likes/forms/edit.php
@@ -14,17 +14,17 @@ if (isset($vars['entity']) && isloggedin()) {
$url = elgg_add_action_tokens_to_url($vars['url'] . "action/likes/add?guid={$guid}");
//check to see if the user has already liked
if(!elgg_already_created_annotation($guid, 'likes'))
- echo "<a href=\"{$url}\">" . elgg_echo('likes:likethis') . "</a>";
+ echo "<a href=\"{$url}\">" . elgg_echo('likes:likethis') . "</a><br />";
//display the number of likes
$numoflikes = elgg_count_likes($vars['entity']);
if($numoflikes != 0){
if($numoflikes == 1)
- echo "<br /><a onclick=\" $('#showLikes').show('slow');\">" . elgg_count_likes($vars['entity']) . " " . elgg_echo('likes:userlikedthis') . "</a>";
+ echo "<a onclick=\" $('#showLikes').show('slow');\">" . elgg_count_likes($vars['entity']) . " " . elgg_echo('likes:userlikedthis') . "</a>";
else
- echo "<br /><a onclick=\" $('#showLikes').show('slow');\">" . elgg_count_likes($vars['entity']) . " " . elgg_echo('likes:userslikethis') . "</a>";
+ echo "<a onclick=\" $('#showLikes').show('slow');\">" . elgg_count_likes($vars['entity']) . " " . elgg_echo('likes:userslikethis') . "</a>";
}
//show the users who liked the object
echo "<div id=\"showLikes\" style=\"display:none;\">";
- echo list_annotations($vars['entity']->getGUID(),'likes');
+ echo list_annotations($vars['entity']->getGUID(),'likes',99);
echo "</div>";
} \ No newline at end of file