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

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

use of combine tag : relocation of css in config files, css and js files combined
todo : js code not in file
remove events from spread_menu and add_menu_on_public_pages of themes

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