From 9c3cfc97df8c91965fcec4ae380623cbcd74b150 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 4 Aug 2008 11:32:08 +0000 Subject: Hidden viewtype toggle on search. git-svn-id: https://code.elgg.org/elgg/trunk@1679 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/search/entity_list.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'views/default') 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, -- cgit v1.2.3