num_display; $guid = (int) $vars['entity']->group_guid; $content = ''; if ($guid) { // backward compatibility when we couldn't set widget title (pre 1.9) if (!$vars['entity']->title) { $title = get_entity($guid)->name; $content = "

$title

"; } $db_prefix = elgg_get_config('dbprefix'); $activity = elgg_list_river(array( 'limit' => $num, 'pagination' => false, 'joins' => array("JOIN {$db_prefix}entities e1 ON e1.guid = rv.object_guid"), 'wheres' => array("(e1.container_guid = $guid)"), )); if (!$activity) { $activity = '

' . elgg_echo('groups:widget:group_activity:content:noactivity') . '

'; } $content .= $activity; } else { // no group selected yet $content = '

' . elgg_echo('groups:widget:group_activity:content:noselect') . '

'; } echo $content;