themes/funkymonkey/playlist.tpl
changeset 3 e7447a6044ec
parent 2 860ba7141641
child 10 d3059e20b0fa
--- a/themes/funkymonkey/playlist.tpl	Sun Mar 23 20:24:33 2008 -0400
+++ b/themes/funkymonkey/playlist.tpl	Sun Mar 23 20:58:51 2008 -0400
@@ -12,11 +12,13 @@
     <title>AmaroK playlist</title>
     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
     <link rel="stylesheet" type="text/css" href="/themes/{$theme|escape}/style.css" />
+    <link rel="favorite icon" type="image/ico" href="/favicon.ico" />
     <script type="text/javascript">
     var img_play = '/themes/{$theme|escape}/images/play.png';
     var img_pause = '/themes/{$theme|escape}/images/pause.png';
     var img_ajax = '/themes/{$theme|escape}/images/ajax.gif';
     var class_current = 'current';
+    var allow_control = {if $allow_control}true{else}false{/if};
     </script>
     {foreach from=$scripts item=script}
     <script type="text/javascript" src="/scripts/{$script}"></script>
@@ -25,14 +27,17 @@
   <body>
     <div id="playbar">
       <div class="playbar-inner">
-        <img alt=" " id="ajax_status" style="display: block; float: right; margin: 3px 0;" src="about:blank" />
+        <img alt=" " id="ajax_status" style="display: none; float: right; margin: 3px 0;" src="about:blank" />
         <img alt="AmaroK web control" src="/themes/{$theme|escape}/images/amarok.gif" style="margin-right: 20px;" />
+        {if $allow_control}
         <a href="#action:prev" onclick="player_action('prev'); return false;"><img alt="&laquo; PrevTrk" src="/themes/{$theme|escape}/images/prev.png" /></a>
         <a href="#action:play" onclick="player_action('play'); return false;" id="btn_playpause"><img alt="Play" src="/themes/{$theme|escape}/images/play.png" /></a>
         <a href="#action:stop" onclick="player_action('stop'); return false;"><img alt="Stop" src="/themes/{$theme|escape}/images/stop.png" /></a>
         <a href="#action:next" onclick="player_action('next'); return false;"><img alt="NextTrk &raquo;" src="/themes/{$theme|escape}/images/next.png" /></a>
+        {/if}
         <span style="margin-right: 50px;">&nbsp;</span>
         <span id="playmeter">--:--/--:--</span>
+        {if $allow_control}
         <span style="margin-right: 50px;">&nbsp;</span>
         <img hspace="4" alt="Volume: " src="/themes/{$theme|escape}/images/volume.png" />
         <span id="volume_wrap"><a
@@ -48,6 +53,7 @@
           class="volume_button" href="#volume:90"  onmouseover="volume_over(90);"  onmouseout="volume_out();" id="volbtn_90"  onclick="set_volume(90);  return false;">&nbsp;</a><a
           class="volume_button" href="#volume:100" onmouseover="volume_over(100);" onmouseout="volume_out();" id="volbtn_100" onclick="set_volume(100); return false;">&nbsp;</a>
         </span>
+        {/if}
       </div>
     </div>
     <div class="tblholder" id="playlist">