array( "JOIN {$db_prefix}entities e1 ON e1.guid = rv.object_guid", "LEFT JOIN {$db_prefix}entities e2 ON e2.guid = rv.target_guid", ), 'wheres' => array( "(e1.container_guid = $group->guid OR e2.container_guid = $group->guid)", ), 'no_results' => elgg_echo('groups:activity:none'), ); if ($type != 'all') { $options['type'] = $type; if ($subtype) { $options['subtype'] = $subtype; } } // build page elements $title = elgg_echo('groups:activity'); elgg_push_breadcrumb($group->name, $group->getURL()); elgg_push_breadcrumb($title); $content = elgg_view('core/river/filter', array('selector' => $selector)); $content .= elgg_list_river($options); $params = array( 'content' => $content, 'title' => $title, 'filter' => '', 'class' => 'elgg-river-layout', ); $body = elgg_view_layout('content', $params); // draw page echo elgg_view_page($title, $body);