diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-21 16:45:08 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-21 16:45:08 +0000 |
commit | f50e4502cc301402ce20dca21a54a58a2154614c (patch) | |
tree | a4ba54813fdd1a9e8d76076a966da0372a219a7b | |
parent | ce455d174256d47dbe1802755e77982e453106c8 (diff) | |
download | elgg-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
-rw-r--r-- | mod/riverdashboard/views/default/river/item/wrapper.php | 12 |
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; |