$item, 'sort_by' => 'priority', 'class' => 'elgg-menu-hz', )); // river item header $timestamp = elgg_get_friendly_time($item->getPostedTime()); $summary = elgg_extract('summary', $vars, 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', )); } $message = elgg_extract('message', $vars, false); if ($message !== false) { $message = "
$message
"; } $attachments = elgg_extract('attachments', $vars, false); if ($attachments !== false) { $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, )); $group_string = elgg_echo('river:ingroup', array($group_link)); } echo <<$summary $group_string $timestamp $message $attachments $responses RIVER;