diff options
Diffstat (limited to 'views/default/entities')
-rw-r--r-- | views/default/entities/entity_list.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/views/default/entities/entity_list.php b/views/default/entities/entity_list.php index cf3df78b7..fd6ea27bb 100644 --- a/views/default/entities/entity_list.php +++ b/views/default/entities/entity_list.php @@ -13,25 +13,25 @@ $limit = $vars['limit']; $count = $vars['count']; $baseurl = $vars['baseurl']; $context = $vars['context']; -$viewtype = $vars['viewtype']; +$listtype = $vars['listtype']; $pagination = $vars['pagination']; $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, )); } @@ -44,7 +44,7 @@ if ($pagination) { )); } -if ($viewtype == 'list') { +if ($listtype == 'list') { if (is_array($entities) && sizeof($entities) > 0) { foreach($entities as $entity) { $html .= elgg_view_entity($entity, $fullview); |