From f79a2489c1f18f2bf1436fa5ec4c8fd9c903fd61 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 9 Oct 2006 09:00:47 +0000 Subject: updates, ajax kind of broken right now its late --- templates/show_localplay_control.inc.php | 19 +++++++++++++------ templates/show_localplay_status.inc.php | 27 +++++++++++++-------------- templates/sidebar.inc.php | 8 +++++++- 3 files changed, 33 insertions(+), 21 deletions(-) (limited to 'templates') diff --git a/templates/show_localplay_control.inc.php b/templates/show_localplay_control.inc.php index b45cd887..a0177603 100644 --- a/templates/show_localplay_control.inc.php +++ b/templates/show_localplay_control.inc.php @@ -23,29 +23,36 @@ $web_path = conf('web_path'); $localplay = init_localplay(); -$required_info = "&user_id=" . $GLOBALS['user']->id . "&sessid=" . session_id(); +$required_info = "&user_id=" . $GLOBALS['user']->id . "&sessid=" . session_id(); $ajax_url = $web_path . '/server/ajax.server.php'; ?> +
has_function('prev')) { ?> - + prev - + stop has_function('pause')) { ?> - + pause - + play has_function('next')) { ?> - + next diff --git a/templates/show_localplay_status.inc.php b/templates/show_localplay_status.inc.php index 2fab62de..0e250923 100644 --- a/templates/show_localplay_status.inc.php +++ b/templates/show_localplay_status.inc.php @@ -23,40 +23,39 @@ $web_path = conf('web_path'); $localplay = init_localplay(); -$required_info = "&user_id=" . $GLOBALS['user']->id . "&sessid=" . session_id(); +$required_info = "&user_id=" . $GLOBALS['user']->id . "&sessid=" . session_id(); $ajax_url = $web_path . '/server/ajax.server.php'; $status = $localplay->status(); -/* Format the track name */ -$track_name = $status['track_artist'] . ' - ' . $status['track_album'] . ' - ' . $status['track_title']; - -/* This is a cheezball fix for when we were unable to find a - * artist/album (or one wasn't provided) - */ -$track_name = ltrim(ltrim($track_name,' - ')); ?> -get_user_state($status['state']) ?>
-  '; ?> +get_user_state($status['state']) ?>
+  get_user_playing(); ?>
+ has_function('volume_up')) { ?> - + volume up has_function('volume_down')) { ?> - + volume down has_function('volume_mute')) { ?> - + volume mute
- + :

has_function('repeat')) { ?> diff --git a/templates/sidebar.inc.php b/templates/sidebar.inc.php index d4b5960a..38fef93d 100644 --- a/templates/sidebar.inc.php +++ b/templates/sidebar.inc.php @@ -184,9 +184,15 @@ $web_path = conf('web_path');
id . "&sessid=" . session_id(); + $required_info = "&user_id=" . $GLOBALS['user']->id . "&sessid=" . session_id(); $ajax_url = $web_path . '/server/ajax.server.php'; ?> + -- cgit