aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/riverdashboard/views/default/river/item/wrapper.php26
1 files changed, 17 insertions, 9 deletions
diff --git a/mod/riverdashboard/views/default/river/item/wrapper.php b/mod/riverdashboard/views/default/river/item/wrapper.php
index f7a2e282f..7a3285382 100644
--- a/mod/riverdashboard/views/default/river/item/wrapper.php
+++ b/mod/riverdashboard/views/default/river/item/wrapper.php
@@ -104,15 +104,21 @@ else
echo "</div>"; // close river_comments
} else {
// tab bar nav - for users that liked object
- echo "<div class='river_comments_tabs clearfloat'>";
- $numoflikes = elgg_count_likes($object);
- if($numoflikes != 0){
- echo elgg_view('likes/forms/display', array('entity' => $object));
- }
- echo "</div>"; // close river_comments_tabs
-
- echo "<div class='river_comments'>";
+ $numoflikes = elgg_count_likes($object);
+ if ($vars['item']->type != 'user' && $numoflikes != 0) {
+ echo "<div class='river_comments_tabs clearfloat'>";
+ }
+ if($numoflikes != 0){
+ echo elgg_view('likes/forms/display', array('entity' => $object));
+ }
+ if ($vars['item']->type != 'user' && $numoflikes != 0) {
+ echo "</div>"; // close river_comments_tabs
+ }
+
+ if ($vars['item']->type != 'user') {
+ echo "<div class='river_comments'>";
+ }
if($numoflikes != 0){
//show the users who liked the object
echo "<div class='likes_list hidden'>";
@@ -125,7 +131,9 @@ else
if($vars['item']->type != 'user' && $vars['item']->subtype != 'groupforumtopic') {
echo elgg_make_river_comment($object);
}
- echo "</div>";
+ if ($vars['item']->type != 'user') {
+ echo "</div>";
+ }
}
echo "</div>"; // close river_item_contents
?>