aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/views/default/river/item/wrapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/riverdashboard/views/default/river/item/wrapper.php')
-rw-r--r--mod/riverdashboard/views/default/river/item/wrapper.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/mod/riverdashboard/views/default/river/item/wrapper.php b/mod/riverdashboard/views/default/river/item/wrapper.php
index 8506262a8..b90b00f99 100644
--- a/mod/riverdashboard/views/default/river/item/wrapper.php
+++ b/mod/riverdashboard/views/default/river/item/wrapper.php
@@ -41,31 +41,31 @@ if ($comment_count < 3) {
<?php echo elgg_view("profile/icon",array('entity' => $user, 'size' => 'small')); ?>
</span>
<div class="river_item_contents clearfloat">
- <?php
+ <?php
// body contents, generated by the river view in each plugin
- echo $vars['body'];
-
+ echo $vars['body'];
+
//display latest 3 comments if there are any
if ($get_comments){
$counter = 0;
//$background = "";
-
+
echo "<div class='river_comments_tabs clearfloat'>";
-
+
if ($comment_count <= 3) {
echo "<a class='river_more_comments show_comments_button link'>Comments</a>";
}
-
+
//display 'more comments' if there are any
if ($num_comments != 0) {
echo "<a class='river_more_comments show_comments_button link'>Comments (+{$num_comments} more)</a>";
}
-
+
if ($numoflikes != 0) {
echo elgg_view('likes/forms/display', array('entity' => $object));
}
echo "</div>"; // close river_comments_tabs
-
+
echo "<div class='river_comments'>";
if ($numoflikes != 0) {
@@ -74,7 +74,7 @@ if ($get_comments){
echo list_annotations($object->getGUID(), 'likes', 99);
echo "</div>";
}
-
+
foreach ($get_comments as $gc) {
//get the comment owner
$comment_owner = get_user($gc->owner_guid);
@@ -107,7 +107,7 @@ if ($get_comments){
} else {
// tab bar nav - for users that liked object
$numoflikes = elgg_count_likes($object);
-
+
if ($vars['item']->type != 'user' && $numoflikes != 0) {
echo "<div class='river_comments_tabs clearfloat'>";
}
@@ -117,7 +117,7 @@ if ($get_comments){
if ($vars['item']->type != 'user' && $numoflikes != 0) {
echo "</div>"; // close river_comments_tabs
}
-
+
if ($vars['item']->type != 'user') {
echo "<div class='river_comments'>";
}
@@ -127,7 +127,7 @@ if ($get_comments){
echo list_annotations($object->getGUID(), 'likes', 99);
echo "</div>";
}
-
+
// if there are no comments to display
// and this is not a user or a group discussion entry - include the inline comment form
if ($vars['item']->type != 'user' && $vars['item']->subtype != 'groupforumtopic') {