';
echo 'var options = ' . json_encode($options) . ';';
echo 'var numactivities = ' . $count . ';';
echo '';
}
if (elgg_get_viewtype() == 'default') {
$activity = '
';
} else {
$activity = '';
}
$activity .= elgg_list_river($options);
if (!$activity) {
$activity = elgg_echo('river:none');
}
if (elgg_get_viewtype() == 'default') {
$activity .= '
';
if ($count > $options['limit']) {
// show load more button
$activity .= '';
echo '';
} else {
echo '';
}
// show the loading gif
$activity .= '';
}
$content = elgg_view('core/river/filter', array('selector' => $selector));
$sidebar = elgg_view('core/river/sidebar');
$params = array(
'title' => $title,
'content' => $content . $activity,
'sidebar' => $sidebar,
'filter_context' => $page_filter,
'class' => 'elgg-river-layout',
);
$body = elgg_view_layout('content', $params);
echo elgg_view_page($title, $body);
if (elgg_get_viewtype() == 'default') {
?>