source: extensions/music_player/template/style/default/lecteur.tpl @ 9668

Revision 9668, 2.8 KB checked in by flop25, 9 years ago (diff)

compatible trunk/2.2rc4

Line 
1{combine_css path="$STYLE_FILE"}
2{combine_script id="music_player_js" load="header" path="plugins/music_player/player/swfobject.js"}
3{footer_script require='music_player_js'}{literal}<script type="text/javascript">
4        function loadFile(obj) { thisMovie("playlist").loadFile(obj); };
5        // This is a javascript handler for the player and is always needed.
6        function thisMovie(movieName) {
7            if(navigator.appName.indexOf("Microsoft") != -1) {
8                        return window[movieName];
9                } else {
10                        return document[movieName];
11                }
12        };
13</script>{/literal}
14{/footer_script}
15
16{if $conf_plugin_1!='true' }
17{html_head}<style type="text/css">{literal}
18#theHeader
19{
20display:none;
21}
22{/literal}</style>{/html_head}
23{/if}
24{if $conf_plugin_2!='true' }
25{html_head}<style type="text/css">{literal}
26
27#copyright
28{
29display:none;
30}       
31          </style>{/literal}{/html_head}
32{/if}
33
34<div id="content" class="content">
35        <div class="titrePage">
36        <div id="montre" style="display:block" align="center">
37          <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='none';document.getElementById('cache').style.display ='block'">{'mp_montre'|@translate}</a>
38        </div>
39        <div id="cache" style="display:none" align="center">
40          <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='block';document.getElementById('cache').style.display ='none'">{'mp_cache'|@translate}</a><br />
41          <ul>
42          {foreach from=$playlist item=playlist}<!-- BEGIN playlist -->
43            <li><a href="javascript:void(0)" onclick="javascript:loadFile({literal}{{/literal}file:'{$playlist.URL}'{literal}}{/literal})" >{$playlist.TEXTE}</a></li>
44          {/foreach}<!-- END playlist -->
45          </ul>
46        </div>
47  </div>
48  <div id="close_button"><a href="#" onclick="window.close();" title="{'Close this window'|@translate}"><img src="template/icon/exit.png" class="button" alt="close"></a></div>
49  <div align="center" id="player">
50<script type="text/javascript">
51        var so = new SWFObject("player/mp3player.swf", "playlist", "{$L_TT}", "{$H_TT}", "7");
52        so.addVariable("file","{$URL}");
53        so.addVariable("autostart","{$AUTOSTART}");
54
55        so.addVariable("enablejs","true");
56        so.addVariable("javascriptid","playlist");
57        so.addVariable('backcolor','{$BACK_COLOR}');
58        so.addVariable('frontcolor','{$FRONT_COLOR}');
59        so.addVariable('lightcolor','{$LIGHT_COLOR}');
60        so.addVariable('linktarget','_blank');
61    so.addParam("allowfullscreen","true");
62        so.addParam("allowscriptaccess","always");
63
64        so.addVariable("repeat","{$REPEAT}");
65        so.addVariable("shuffle","{$SHUFFLE}");
66        so.addVariable("autoscroll","{$AUTOSCROLL}");
67 
68        so.addVariable('displayheight','{$H}'); <!--Attention hauteur de la playlist !  -->
69        so.addVariable('displaywidth','{$L}');<!--Attention largeur de la miniature !  -->
70
71               
72
73        so.write("player");
74</script></div>
75</div> <!-- the_page -->
76
77</body>
78</html>
Note: See TracBrowser for help on using the repository browser.