summaryrefslogtreecommitdiffstats
path: root/templates/sidebar.inc.php
diff options
context:
space:
mode:
authorpb1dft <pb1dft@ampache>2006-12-03 23:47:55 +0000
committerpb1dft <pb1dft@ampache>2006-12-03 23:47:55 +0000
commit78b2ab0640c620ff42985c73182c0b9d73b47099 (patch)
tree7cfc22649d77c6a9c8419f3ae7b6c9eb7401d612 /templates/sidebar.inc.php
parent5a836609642fe9d833eb12b087532d36b49abfa1 (diff)
downloadampache-78b2ab0640c620ff42985c73182c0b9d73b47099.tar.gz
ampache-78b2ab0640c620ff42985c73182c0b9d73b47099.tar.bz2
ampache-78b2ab0640c620ff42985c73182c0b9d73b47099.zip
Made some mods to the playtype switch function in the menu.
Diffstat (limited to 'templates/sidebar.inc.php')
-rw-r--r--templates/sidebar.inc.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/sidebar.inc.php b/templates/sidebar.inc.php
index 03b6392f..6858c940 100644
--- a/templates/sidebar.inc.php
+++ b/templates/sidebar.inc.php
@@ -29,7 +29,7 @@
$admin_items[] = array('title'=>_('Users'),'url'=>'admin/users.php','active'=>$location['page']);
$admin_items[] = array('title'=>_('Mail Users'),'url'=>'admin/mail.php','active'=>$location['page']);
$admin_items[] = array('title'=>_('Catalog'),'url'=>'admin/index.php','active'=>$location['page']);
-$admin_items[] = array('title'=>_('Site Preferences'),'url'=>'admin/preferences.php','active'=>$location['page']);
+$admin_items[] = array('title'=>_('Config'),'url'=>'admin/preferences.php','active'=>$location['page']);
$admin_items[] = array('title'=>_('Access List'),'url'=>'admin/access.php','active'=>$location['page']);
$admin_items[] = array('title'=>_('Modules'),'url'=>'admin/modules.php','active'=>$location['page']);
@@ -187,6 +187,10 @@ $web_path = conf('web_path');
</li>
<?php } // if horizontal orientation ?>
<?php } // if localplay access ?>
+<?php //If admin hasn't disabled the playtype switch
+
+ if (has_preference_access('play_type')){
+?>
<li>
<?php
$required_info = conf('ajax_info');
@@ -194,6 +198,9 @@ $web_path = conf('web_path');
?>
<?php require_once(conf('prefix') . '/templates/show_playtype_switch.inc.php'); ?>
</li>
+<?php
+} //End if admin hasn't disabled the playtype switch
+?>
<?php if ($GLOBALS['user']->prefs['play_type'] == 'democratic') { ?>
<li>
<a href="<?php echo $web_path; ?>/tv.php"><?php echo _('Democratic View'); ?></a>