diff options
Diffstat (limited to 'mod/search')
-rw-r--r-- | mod/search/views/default/search/entity_list.php | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/mod/search/views/default/search/entity_list.php b/mod/search/views/default/search/entity_list.php index 4a04aaf84..f9105c711 100644 --- a/mod/search/views/default/search/entity_list.php +++ b/mod/search/views/default/search/entity_list.php @@ -6,40 +6,40 @@ $limit = $vars['limit']; $count = $vars['count']; $baseurl = $vars['baseurl']; $context = $vars['context']; -$viewtype = $vars['viewtype']; +$listtype = $vars['listtype']; $pagination = $vars['pagination']; -$fullview = $vars['fullview']; - +$fullview = $vars['fullview']; + $html = ""; $nav = ""; -if (isset($vars['viewtypetoggle'])) { - $viewtypetoggle = $vars['viewtypetoggle']; +if (isset($vars['listtypetoggle'])) { + $listtypetoggle = $vars['listtypetoggle']; } else { - $viewtypetoggle = true; + $listtypetoggle = true; } -if ($context == "search" && $count > 0 && $viewtypetoggle) { - $nav .= elgg_view("navigation/viewtype",array( - +if ($context == "search" && $count > 0 && $listtypetoggle) { + $nav .= elgg_view("navigation/listtype",array( + 'baseurl' => $baseurl, 'offset' => $offset, 'count' => $count, - 'viewtype' => $viewtype, - + 'listtype' => $listtype, + )); } if ($pagination) $nav .= elgg_view('navigation/pagination',array( - + 'baseurl' => $baseurl, 'offset' => $offset, 'count' => $count, 'limit' => $limit, - + )); -if ($viewtype == "list") { +if ($listtype == "list") { if (is_array($entities) && sizeof($entities) > 0) { foreach($entities as $entity) { // print out the entity @@ -50,7 +50,7 @@ if ($viewtype == "list") { } } -} else if ($viewtype == "gallery") { +} else if ($listtype == "gallery") { if (is_array($entities) && sizeof($entities) > 0) { $html .= elgg_view("search/gallery",array('entities' => $entities)); } |