diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-13 06:04:12 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-11-13 06:04:12 +0000 |
commit | 70c2fedd2992bc2bf5309a9afcc8b810aa7f80ce (patch) | |
tree | aa531656b9015821190546c382cb3756f0c435de /templates/show_tv.inc.php | |
parent | 4d053815c552e77ebbab55e9f48bacbea2559cd2 (diff) | |
download | ampache-70c2fedd2992bc2bf5309a9afcc8b810aa7f80ce.tar.gz ampache-70c2fedd2992bc2bf5309a9afcc8b810aa7f80ce.tar.bz2 ampache-70c2fedd2992bc2bf5309a9afcc8b810aa7f80ce.zip |
final commit before alpha2 release
Diffstat (limited to 'templates/show_tv.inc.php')
-rw-r--r-- | templates/show_tv.inc.php | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/templates/show_tv.inc.php b/templates/show_tv.inc.php index fd29bff7..8ca3b075 100644 --- a/templates/show_tv.inc.php +++ b/templates/show_tv.inc.php @@ -36,6 +36,25 @@ $location = get_location(); <body> <script src="<?php echo $web_path; ?>/lib/javascript-base.js" language="javascript" type="text/javascript"></script> <script src="<?php echo $web_path; ?>/modules/kajax/ajax.js" language="javascript" type="text/javascript"></script> +<?php + +/** + * Check for the refresh mojo, if it's there then require the + * refresh_javascript include. Must be greater then 5, I'm not + * going to let them break their servers + */ +if (conf('refresh_limit') > 5) { + $ajax_url = conf('ajax_url') . '?action=reload_np_tv' . conf('ajax_info'); + /* Can't have the & stuff in the Javascript */ + $ajax_url = str_replace("&","&",$ajax_url); + require_once(conf('prefix') . '/templates/javascript_refresh.inc.php'); +} + +?> +<!-- Left Col --> +<div id="tv_left"> +<?php show_box_top(_('Controls')); ?> +<a href="<?php echo conf('web_path'); ?>/index.php"><?php echo _('Home'); ?></a> <!-- Control DIV --> <div id="tv_control"> <?php @@ -49,10 +68,16 @@ else { } ?> </div> -<!-- End Control Div --> -<div id="tv_np"> -<?php require_once(conf('prefix') . '/templates/show_tv_nowplaying.inc.php'); ?> -</div> +<?php show_box_bottom(); ?> +<?php show_box_top(_('Current Playlist')); ?> <div id="tv_playlist"> <?php require_once(conf('prefix') . '/templates/show_tv_playlist.inc.php'); ?> </div> +<?php show_box_bottom(); ?> +<!-- End of Left --> +</div> +<?php show_box_top(_('Now Playing')); ?> +<div id="tv_np"> +<?php require_once(conf('prefix') . '/templates/show_tv_nowplaying.inc.php'); ?> +</div> +<?php show_box_bottom(); ?> |