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 --- views/default/navigation/listtype.php | 28 ++++++++++++++++++++++++++++ views/default/navigation/viewtype.php | 21 ++------------------- 2 files changed, 30 insertions(+), 19 deletions(-) create mode 100644 views/default/navigation/listtype.php (limited to 'views/default/navigation') diff --git a/views/default/navigation/listtype.php b/views/default/navigation/listtype.php new file mode 100644 index 000000000..c4693313b --- /dev/null +++ b/views/default/navigation/listtype.php @@ -0,0 +1,28 @@ + + +

+ : + +

\ No newline at end of file diff --git a/views/default/navigation/viewtype.php b/views/default/navigation/viewtype.php index 8b2a64978..cdf167eb5 100644 --- a/views/default/navigation/viewtype.php +++ b/views/default/navigation/viewtype.php @@ -6,23 +6,6 @@ * @subpackage Core */ -$baseurl = elgg_http_remove_url_query_element($vars['baseurl'], 'search_viewtype'); +elgg_deprecated_notice('navigation/viewtype was deprecated by navigation/listtype', 1.8); -if ($vars['viewtype'] == "list") { - $viewtype = "gallery"; -} else { - $viewtype = "list"; -} - -if (substr_count($baseurl,'?')) { - $baseurl .= "&search_viewtype=" . $viewtype; -} else { - $baseurl .= "?search_viewtype=" . $viewtype; -} - -?> - -

- : - -

\ No newline at end of file +echo elgg_view('navigation/listtype', $vars); \ No newline at end of file -- cgit v1.2.3