aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/views/default/river
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-21 16:45:08 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-21 16:45:08 +0000
commitf50e4502cc301402ce20dca21a54a58a2154614c (patch)
treea4ba54813fdd1a9e8d76076a966da0372a219a7b /mod/riverdashboard/views/default/river
parentce455d174256d47dbe1802755e77982e453106c8 (diff)
downloadelgg-f50e4502cc301402ce20dca21a54a58a2154614c.tar.gz
elgg-f50e4502cc301402ce20dca21a54a58a2154614c.tar.bz2
likes added to the activity river
git-svn-id: http://code.elgg.org/elgg/trunk@5459 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/views/default/river')
-rw-r--r--mod/riverdashboard/views/default/river/item/wrapper.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/mod/riverdashboard/views/default/river/item/wrapper.php b/mod/riverdashboard/views/default/river/item/wrapper.php
index d2d826ea6..bbbc27051 100644
--- a/mod/riverdashboard/views/default/river/item/wrapper.php
+++ b/mod/riverdashboard/views/default/river/item/wrapper.php
@@ -55,8 +55,18 @@ else
<?php echo $vars['body']; ?>
</div>
-<!-- display comments -->
+<!-- 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>";
+ }
//display latest 2 comments if there are any
if($get_comments){
$counter = 0;