diff options
author | cash <cash.costello@gmail.com> | 2011-11-05 17:33:04 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-05 17:33:04 -0400 |
commit | abaf5567e7b2bbeee033faa04618270660d80ab4 (patch) | |
tree | 7418c7988457509ec4ee0a72da05023a875218ae /views/default/navigation | |
parent | fa0dbc7f8a34597345f7939ca9914438624c3cee (diff) | |
download | elgg-abaf5567e7b2bbeee033faa04618270660d80ab4.tar.gz elgg-abaf5567e7b2bbeee033faa04618270660d80ab4.tar.bz2 |
Fixes #1253 added toggle for list types to file plugin. It's not pretty so we may want to style/rethink in future version
Diffstat (limited to 'views/default/navigation')
-rw-r--r-- | views/default/navigation/listtype.php | 28 | ||||
-rw-r--r-- | views/default/navigation/viewtype.php | 6 |
2 files changed, 2 insertions, 32 deletions
diff --git a/views/default/navigation/listtype.php b/views/default/navigation/listtype.php deleted file mode 100644 index e90667e8d..000000000 --- a/views/default/navigation/listtype.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php -/** - * Elgg list view switcher - * - * @package Elgg - * @subpackage Core - */ - -$baseurl = elgg_http_remove_url_query_element($vars['baseurl'], 'search_listtype'); - -if ($vars['listtype'] == "list") { - $listtype = "gallery"; -} else { - $listtype = "list"; -} - -if (substr_count($baseurl,'?')) { - $baseurl .= "&search_listtype=" . $listtype; -} else { - $baseurl .= "?search_listtype=" . $listtype; -} - -?> - -<p class="mtm"> - <?php echo elgg_echo("listtype:change") ?>: - <a href="<?php echo $baseurl; ?>"><?php echo elgg_echo("listtype:{$listtype}"); ?></a> -</p>
\ No newline at end of file diff --git a/views/default/navigation/viewtype.php b/views/default/navigation/viewtype.php index 69d29dc32..6dfa4ebc7 100644 --- a/views/default/navigation/viewtype.php +++ b/views/default/navigation/viewtype.php @@ -5,9 +5,7 @@ * @package Elgg * @subpackage Core * - * @deprecated 1.8 Use navigation/listtype + * @deprecated 1.8 See how file plugin adds a toggle in function file_register_toggle() */ -elgg_deprecated_notice('navigation/viewtype was deprecated by navigation/listtype', 1.8); - -echo elgg_view('navigation/listtype', $vars);
\ No newline at end of file +elgg_deprecated_notice('navigation/viewtype was deprecated', 1.8); |