diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-04 11:32:08 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-04 11:32:08 +0000 |
commit | 9c3cfc97df8c91965fcec4ae380623cbcd74b150 (patch) | |
tree | 202be3f4c186a8bc2ae4b527db03c67b05e6ec1b /views/default/search | |
parent | 7f394b2d9048bba8f44af222a6a42ac09f323680 (diff) | |
download | elgg-9c3cfc97df8c91965fcec4ae380623cbcd74b150.tar.gz elgg-9c3cfc97df8c91965fcec4ae380623cbcd74b150.tar.bz2 |
Hidden viewtype toggle on search.
git-svn-id: https://code.elgg.org/elgg/trunk@1679 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/search')
-rw-r--r-- | views/default/search/entity_list.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/search/entity_list.php b/views/default/search/entity_list.php index 4fc23c2ba..7f9018b2f 100644 --- a/views/default/search/entity_list.php +++ b/views/default/search/entity_list.php @@ -8,8 +8,14 @@ $baseurl = $vars['baseurl'];
$context = $vars['context'];
$viewtype = $vars['viewtype'];
+
+ if (isset($vars['viewtypetoggle'])) {
+ $viewtypetoggle = $vars['viewtypetoggle'];
+ } else {
+ $viewtypetoggle = true;
+ }
- if ($context == "search" && $count > 0) {
+ if ($context == "search" && $count > 0 && $viewtypetoggle) {
$nav .= elgg_view("navigation/viewtype",array(
'baseurl' => $baseurl,
|