diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-02 04:14:41 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-02 04:14:41 +0000 |
commit | e496a54bfa8271e727410dc66a82992a89081283 (patch) | |
tree | c70986355f9b33210639b2b6ce294cb92c6664b3 /templates/show_localplay_control.inc.php | |
parent | 7ddeb585a05051ce9750a1daff0e688c8b6e9371 (diff) | |
download | ampache-e496a54bfa8271e727410dc66a82992a89081283.tar.gz ampache-e496a54bfa8271e727410dc66a82992a89081283.tar.bz2 ampache-e496a54bfa8271e727410dc66a82992a89081283.zip |
fixed the localplay controls, per limeds recommendation currently under rightbar actions, not happy with location
Diffstat (limited to 'templates/show_localplay_control.inc.php')
-rw-r--r-- | templates/show_localplay_control.inc.php | 39 |
1 files changed, 7 insertions, 32 deletions
diff --git a/templates/show_localplay_control.inc.php b/templates/show_localplay_control.inc.php index 8d5f7fec..4962a8a0 100644 --- a/templates/show_localplay_control.inc.php +++ b/templates/show_localplay_control.inc.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2006 Ampache.org + Copyright (c) 2001 - 2007 Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -20,36 +20,11 @@ */ -$web_path = conf('web_path'); -$localplay = init_localplay(); - -$required_info = conf('ajax_info') . $add_info; -$ajax_url = conf('ajax_url'); - -/* If we actually got something back */ -if (is_object($localplay)) { ?> -<div class="localplaycontrol" style="display:table-cell;cursor:pointer;padding:2px;"> -<?php if ($localplay->has_function('prev')) { ?> -<span class="prev_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=prev<?php echo $required_info; ?>');return true;"> - <?php echo get_user_icon('prev','prev_hover'); ?> -</span> -<?php } ?> -<span class="stop_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=stop<?php echo $required_info; ?>');return true;"> - <?php echo get_user_icon('stop','stop_hover'); ?> -</span> -<?php if ($localplay->has_function('pause')) { ?> -<span class="pause_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=pause<?php echo $required_info; ?>');return true;"> - <?php echo get_user_icon('pause','pause_hover'); ?> -</span> -<?php } ?> -<span class="play_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=play<?php echo $required_info; ?>');return true;"> - <?php echo get_user_icon('play','play_hover'); ?> -</span> -<?php if ($localplay->has_function('next')) { ?> -<span class="next_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=next<?php echo $required_info; ?>');return true;"> - <?php echo get_user_icon('next','next_hover'); ?> -</span> -<?php } ?> +<div id="localplay-control"> +<?php echo Ajax::button('?page=localplay&action=command&command=prev','prev',_('Previous'),'localplay_control_previous'); ?> +<?php echo Ajax::button('?page=localplay&action=command&command=stop','stop',_('Stop'),'localplay_control_stop'); ?> +<?php echo Ajax::button('?page=localplay&action=command&command=pause','pause',_('Pause'),'localplay_control_pause'); ?> +<?php echo Ajax::button('?page=localplay&action=command&command=play','play',_('Play'),'localplay_control_play'); ?> +<?php echo Ajax::button('?page=localplay&action=command&command=next','next',_('Next'),'localplay_control_next'); ?> </div> -<?php } // End if localplay object ?> |