aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/elements/body.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/river/elements/body.php')
-rw-r--r--views/default/river/elements/body.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/views/default/river/elements/body.php b/views/default/river/elements/body.php
index 56d7a09e9..2cd7f2289 100644
--- a/views/default/river/elements/body.php
+++ b/views/default/river/elements/body.php
@@ -14,11 +14,11 @@ $item = $vars['item'];
$menu = elgg_view_menu('river', array(
'item' => $item,
'sort_by' => 'priority',
+ 'class' => 'elgg-menu-hz',
));
// river item header
-if($item->action_type != 'comment') {
-$timestamp = elgg_get_friendly_time($item->getPostedTime());
+$timestamp = elgg_view_friendly_time($item->getPostedTime());
$summary = elgg_extract('summary', $vars, elgg_view('river/elements/summary', array('item' => $vars['item'])));
if ($summary === false) {
@@ -27,6 +27,7 @@ if ($summary === false) {
'href' => $subject->getURL(),
'text' => $subject->name,
'class' => 'elgg-river-subject',
+ 'is_trusted' => true,
));
}
@@ -37,7 +38,7 @@ if ($message !== false) {
$attachments = elgg_extract('attachments', $vars, false);
if ($attachments !== false) {
- $attachments = "<div class=\"elgg-river-attachments\">$attachments</div>";
+ $attachments = "<div class=\"elgg-river-attachments clearfix\">$attachments</div>";
}
$responses = elgg_view('river/elements/responses', $vars);
@@ -52,17 +53,15 @@ if ($container instanceof ElggGroup && $container->guid != elgg_get_page_owner_g
$group_link = elgg_view('output/url', array(
'href' => $container->getURL(),
'text' => $container->name,
+ 'is_trusted' => true,
));
$group_string = elgg_echo('river:ingroup', array($group_link));
}
echo <<<RIVER
-<div class="elgg-river-summary">$summary $group_string</div>
+$menu
+<div class="elgg-river-summary">$summary $group_string <span class="elgg-river-timestamp">$timestamp</span></div>
$message
$attachments
-<span class="elgg-river-timestamp">$timestamp</span>
-$menu
$responses
RIVER;
-
-} \ No newline at end of file