From aa5bb3f0bc17d858831412da82eef805ecafac89 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sun, 14 Nov 2010 08:04:28 +0000 Subject: Fixes #2334: Converted viewtype => listtype and viewtypetoggle => listtypetoggle. Did my best to maintain backwards compatibility but might have missed something... git-svn-id: http://code.elgg.org/elgg/trunk@7311 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/search/views/default/search/entity_list.php | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'mod/search/views/default') 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)); } -- cgit v1.2.3