aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/riverdashboard/views')
-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;