diff options
Diffstat (limited to 'contrib/themes/tangens/templates/sidebar.inc.php')
-rwxr-xr-x | contrib/themes/tangens/templates/sidebar.inc.php | 167 |
1 files changed, 0 insertions, 167 deletions
diff --git a/contrib/themes/tangens/templates/sidebar.inc.php b/contrib/themes/tangens/templates/sidebar.inc.php deleted file mode 100755 index 00de67cc..00000000 --- a/contrib/themes/tangens/templates/sidebar.inc.php +++ /dev/null @@ -1,167 +0,0 @@ -<?php -/* - - Copyright (c) 2001 - 2006 Ampache.org - All rights reserved. - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ - -/** - * This is kind of the wrong place to do this, but let's define the different submenu's that could possibly be - * displayed on this page, this calls the show_submenu($items); function which takes an array of items - * that have ['title'] ['url'] and ['active'] url assumes no conf('web_path') - */ - -$admin_items[] = array('title'=>_("Users"),'url'=>'admin/users.php','active'=>''); -$admin_items[] = array('title'=>_("Mail Users"),'url'=>'admin/mail.php','active'=>''); -$admin_items[] = array('title'=>_("Catalog"),'url'=>'admin/catalog.php','active'=>''); -$admin_items[] = array('title'=>_("Site Preferences"),'url'=>'admin/preferences.php','active'=>''); -$admin_items[] = array('title'=>_("Access List"),'url'=>'admin/access.php','active'=>''); - -$browse_items[] = array('title'=>_("Albums"),'url'=>'albums.php','active'=>''); -$browse_items[] = array('title'=>_("Artists"),'url'=>'artists.php','active'=>''); -$browse_items[] = array('title'=>_("Genre"),'url'=>'browse.php?action=genre','active'=>''); -$browse_items[] = array('title'=>_("Lists"),'url'=>'browse.php','active'=>''); -//$browse_items[] = array('title'=>'File','url'=>'files.php','active'=>''); - -//what item is currently active? -switch (strrchr($_SERVER['SCRIPT_NAME'],"/")) { - case "/index.php": (strpos($_SERVER['PHP_SELF'],"/admin") ? $myactive = "admin":$myactive = "home"); break; - case "/preferences.php": $myactive = "preferences"; break; - case "/browse.php": $myactive = "browse"; break; - case "/albums.php": $myactive = "browse"; break; - case "/artists.php": $myactive = "browse"; break; - case "/upload.php": $myactive = "upload"; break; - case "/playlist.php": $myactive = "playlist"; break; - case "/mpd.php": $myactive = "mpd"; break; - case "/search.php": $myactive = "search"; break; - case "/randomplay.php": $myactive = "randomplay"; break; - case "/song.php": $myactive = "song"; break; - - default: (strpos($_SERVER['PHP_SELF'],"/admin") ? $myactive = "admin":$myactive = "home"); break; -} - -?> -<!-- <div id="navcontainer"> --> <!--sigger: appears this div is not neccesary and duplicates #sidebar --> - <ul id="navlist"> - <li <?php if($myactive=="home") echo "id=\"active\""; ?>> - <a href="<?php echo conf('web_path'); ?>/index.php" id="current"><?php echo _("Home"); ?></a> - </li> - <?php if ($GLOBALS['user']->has_access(100)) { ?> - <li <?php if($myactive=="admin") echo "id=\"active\""; ?>> - <a href="<?php echo conf('web_path'); ?>/admin/index.php"><?php echo _("Admin"); ?></a> - <?php - if ($GLOBALS['theme']['submenu'] != 'simple') { - show_submenu($admin_items); - echo "\t</li>\n"; - } - else { - if ($location['section'] == 'admin') { - echo "\t</li>\n"; - show_submenu($admin_items); - } - } // end if browse sub menu - - } // end if access - ?> - - <li <?php if($myactive=="preferences") echo "id=\"active\""; ?>> - <a href="<?php echo conf('web_path'); ?>/preferences.php"><?php echo _("Preferences"); ?></a> - </li> - <li <?php if($myactive=="browse") echo "id=\"active\""; ?>> - <a href="<?php echo conf('web_path'); ?>/browse.php"><?php echo _("Browse"); ?></a> - <?php - if ($GLOBALS['theme']['submenu'] != 'simple') { - show_submenu($browse_items); - echo "\t</li>\n"; - } - else { - if ($location['section'] == 'browse') { - echo "\t</li>\n"; - show_submenu($browse_items); - } - } - ?> - - <?php if ($GLOBALS['user']->prefs['upload']) { ?> - <li <?php if($myactive=="upload") echo "id=\"active\""; ?>> - <a href="<?php echo conf('web_path'); ?>/upload.php"><?php echo _("Upload"); ?></a> - </li> - <?php } ?> - <li <?php if($myactive=="playlist") echo "id=\"active\""; ?>> - <a href="<?php echo conf('web_path'); ?>/playlist.php"><?php echo _("Playlists"); ?></a> - </li> - <?php if ($GLOBALS['user']->prefs['play_type'] == 'mpd') { ?> - <li <?php if($myactive=="mpd") echo "id=\"active\""; ?>> - <a href="<?php echo conf('web_path'); ?>/mpd.php"><?php echo _("Local Play"); ?></a> - </li> - <?php } ?> - <li <?php if($myactive=="search") echo "id=\"active\""; ?>> - <a href="<?php echo conf('web_path'); ?>/search.php"><?php echo _("Search"); ?></a> - </li> - <?php if ($GLOBALS['theme']['orientation'] != 'horizontal') { ?> - <li <?php if($myactive=="search") echo "id=\"active\""; ?>> - <form name="sub_search" method="post" action="<?php echo conf('web_path'); ?>/search.php" enctype="multipart/form-data" style="Display:inline"> - <input type="text" name="search_string" value="<?php echo scrub_out($_REQUEST['search_string']); ?>" size="5" /> - <input class="smallbutton" type="submit" value="<?php echo _("Search"); ?>" /> - <input type="hidden" name="action" value="quick_search" /> - <input type="hidden" name="method" value="fuzzy" /> - <input type="hidden" name="object_type" value="song" /> - <input type="hidden" name="search_object[]" value="all" /> - </form> - </li> - <?php } ?> - <li <?php if($myactive=="randomplay") echo "id=\"active\""; ?>> - <a href="<?php echo conf('web_path'); ?>/randomplay.php"><?php echo _('Random'); ?></a> - </li> - <?php if ($GLOBALS['theme']['orientation'] != 'horizontal') { ?> - <li <?php if($myactive=="song") echo "id=\"active\""; ?>> - <form name="sub_random" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/song.php" style="Display:inline"> - <input type="hidden" name="action" value="m3u" /> - <select name="random" style="width:9em;"> - <option value="1">1</option> - <option value="5">5</option> - <option value="10">10</option> - <option value="20">20</option> - <option value="30">30</option> - <option value="50">50</option> - <option value="100">100</option> - <option value="500">500</option> - <option value="1000">1000</option> - <option value="-1"><?php echo _("All"); ?></option> - </select> - <?php show_genre_pulldown('genre','','','13','width:9em;'); ?> - <br /> - <select name="random_type" style="width:9em;"> - <option value="Songs"><?php echo _("Songs"); ?></option> - <option value="Minutes"><?php echo _("Minutes"); ?></option> - <option value="Artists"><?php echo _("Artists"); ?></option> - <option value="Albums"><?php echo _("Albums"); ?></option> - <option value="Less Played"><?php echo _("Less Played"); ?></option> - </select> - <br /> - <input type="hidden" name="aaction" value="Play!" /> - <input class="smallbutton" type="submit" name="aaction" value="<?php echo _("Enqueue"); ?>" /> - </form> - </li> - <?php } ?> - <?php if (conf('use_auth')) { ?> - <li><a href="<?php echo conf('web_path'); ?>/logout.php"><?php echo _("Logout"); ?></a></li> - <?php } ?> - </ul> - -<!-- </div> --> |