diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-04-08 17:23:24 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-04-08 17:23:24 +0000 |
commit | de5f1c00d30c01d7e8628dafe8e4c02b2f3c61ea (patch) | |
tree | 4ad4591bf9eb9968dca64d3c782a98f8bb43c5dd /templates/sidebar.inc.php | |
parent | 46b19c81697929117bf2f0585cc2beb1c879e49c (diff) | |
download | ampache-de5f1c00d30c01d7e8628dafe8e4c02b2f3c61ea.tar.gz ampache-de5f1c00d30c01d7e8628dafe8e4c02b2f3c61ea.tar.bz2 ampache-de5f1c00d30c01d7e8628dafe8e4c02b2f3c61ea.zip |
cleaned up the play type switch as well as updating the icons so they look a little better
Diffstat (limited to 'templates/sidebar.inc.php')
-rw-r--r-- | templates/sidebar.inc.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/sidebar.inc.php b/templates/sidebar.inc.php index 4d17dd31..36c90ec7 100644 --- a/templates/sidebar.inc.php +++ b/templates/sidebar.inc.php @@ -177,6 +177,26 @@ $web_path = conf('web_path'); </form> </li> <?php } // end if ($GLOBALS['theme']['orientation'] != 'horizontal') ?> +<?php if ($GLOBALS['user']->prefs['localplay_level'] > 0) { ?> + <li> + <a href="<?php echo $web_path; ?>/localplay.php"><?php echo _('Localplay'); ?></a> + </li> +<?php if ($GLOBALS['theme']['orientation'] != 'horizontal') { ?> + <li> + <?php require_once(conf('prefix') . '/templates/show_localplay_control.inc.php'); ?> + <br /> + <?php $type = conf('play_type'); ${$type} = 'id="pt_active"'; ?> + <span class="text-action" style="cursor:pointer;" id="play_type"> + <span <?php echo $stream; ?> onclick="ajaxPut('<?php echo $ajax_url; ?>','action=change_play_type&type=stream<?php echo $required_info; ?>','play_type');return true;"> + <?php echo _('Stream') ?> + </span> + <span <?php echo $localplay; ?> onclick="ajaxPut('<?php echo $ajax_url; ?>','action=change_play_type&type=localplay<?php echo $required_info; ?>','play_type');return true;"> + <?php echo _('Localplay'); ?> + </span> + </span> + </li> +<?php } // if horizontal orientation ?> +<?php } // if localplay access ?> <?php if (conf('use_auth')) { ?> <li><a href="<?php echo $web_path; ?>/logout.php"><?php echo _("Logout"); ?></a></li> <?php } // end (conf('use_auth'))?> |