num_display; $guid = $vars['entity']->group_guid; $content = ''; if ($guid) { $title = get_entity($guid)->name; $content = "

$title

"; elgg_push_context('widgets'); $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('dashboard:widget:group:noactivity') . '

'; } elgg_pop_context(); $content .= $activity; } else { // no group selected yet if ($vars['entity']->canEdit()) { $content = '

' . elgg_echo('dashboard:widget:group:noselect') . '

'; } } echo $content;