$item, 'sort_by' => 'priority', 'class' => 'elgg-menu-hz', )); // river item header $timestamp = elgg_view_friendly_time($item->getTimePosted()); $summary = elgg_extract('summary', $vars); if ($summary === null) { $summary = elgg_view('river/elements/summary', array( 'item' => $vars['item'], )); } if ($summary === false) { $subject = $item->getSubjectEntity(); $summary = elgg_view('output/url', array( 'href' => $subject->getURL(), 'text' => $subject->name, 'class' => 'elgg-river-subject', 'is_trusted' => true, )); } $message = elgg_extract('message', $vars); if ($message !== null) { $message = "
$message
"; } $attachments = elgg_extract('attachments', $vars); if ($attachments !== null) { $attachments = "
$attachments
"; } $responses = elgg_view('river/elements/responses', $vars); if ($responses) { $responses = "
$responses
"; } $group_string = ''; $object = $item->getObjectEntity(); $container = $object->getContainerEntity(); if ($container instanceof ElggGroup && $container->guid != elgg_get_page_owner_guid()) { $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 <<$summary $group_string $timestamp $message $attachments $responses RIVER;