aboutsummaryrefslogtreecommitdiff
path: root/mod/search/views/default/search
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-14 08:04:28 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-14 08:04:28 +0000
commitaa5bb3f0bc17d858831412da82eef805ecafac89 (patch)
tree1a8c281c27778755bd9db83f8aa5822706a3b5db /mod/search/views/default/search
parentbddba2985d89ff3ed9f52681b37cdce7a9c22bd9 (diff)
downloadelgg-aa5bb3f0bc17d858831412da82eef805ecafac89.tar.gz
elgg-aa5bb3f0bc17d858831412da82eef805ecafac89.tar.bz2
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
Diffstat (limited to 'mod/search/views/default/search')
-rw-r--r--mod/search/views/default/search/entity_list.php30
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));
}