aboutsummaryrefslogtreecommitdiff
path: root/mod
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 /mod
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 'mod')
-rw-r--r--mod/riverdashboard/views/default/river/item/wrapper.php18
1 files changed, 5 insertions, 13 deletions
diff --git a/mod/riverdashboard/views/default/river/item/wrapper.php b/mod/riverdashboard/views/default/river/item/wrapper.php
index bbbc27051..ab0f7a9a2 100644
--- a/mod/riverdashboard/views/default/river/item/wrapper.php
+++ b/mod/riverdashboard/views/default/river/item/wrapper.php
@@ -29,9 +29,6 @@ switch($vars['item']->subtype){
//count comment annotations
$comment_count = count_annotations($vars['item']->object_guid, $vars['item']->type, $vars['item']->subtype, $annotation_comment);
-//count like annotations
-$likes = count_annotations($vars['item']->object_guid, $vars['item']->type, $vars['item']->subtype, "likes");
-
//get last two comments display
$get_comments = get_annotations($vars['item']->object_guid, "", "", $annotation_comment, "", "", 3, 0, "desc");
@@ -57,16 +54,11 @@ else
<!-- display comments and likes -->
<?php
- //show the number of users who liked an item
- if($likes){
- echo "<div class='river_comments'>";
- echo "<div class='river_comment latest clearfloat'>";
- if($likes == 1)
- echo $likes . " user liked this.";
- else
- echo $likes . " users liked this.";
- echo "</div></div>";
- }
+ //likes
+ echo "<div class='river_comments'>";
+ echo "<div class='river_comment latest clearfloat'>";
+ echo elgg_view_likes($object);
+ echo "</div></div>";
//display latest 2 comments if there are any
if($get_comments){
$counter = 0;