0 && $viewtypetoggle) { $nav .= elgg_view('navigation/viewtype', array( 'baseurl' => $baseurl, 'offset' => $offset, 'count' => $count, 'viewtype' => $viewtype, )); } if ($pagination) { $nav .= elgg_view('navigation/pagination',array( 'baseurl' => $baseurl, 'offset' => $offset, 'count' => $count, 'limit' => $limit, )); } $html .= $nav; if (is_array($entities) && sizeof($entities) > 0) { $counter = 0; foreach($entities as $entity) { if ($counter % $num_wide == 0) { $html .= "
"; } $html .= elgg_view_entity($entity, $fullview); $counter++; } } $html .= ''; if ($count) { $html .= $nav; } echo $html;