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

Revision 9668, 3.3 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 id="autre_content">
36  <table id="table_content" border="0" cellspacing="0" cellpadding="0">
37    <tr>
38      <td id="section_up_left"></td>
39      <td id="section_up"></td>
40      <td id="section_up_right"></td>
41    </tr>
42    <tr>
43      <td id="section_left"></td>
44      <td id="section_in">
45        <div class="titrePage">
46        <div id="montre" style="display:block" align="center">
47          <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='none';document.getElementById('cache').style.display ='block'">{'mp_montre'|@translate}</a>
48        </div>
49        <div id="cache" style="display:none" align="center">
50          <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='block';document.getElementById('cache').style.display ='none'">{'mp_cache'|@translate}</a><br />
51          <ul>
52          {foreach from=$playlist item=playlist}<!-- BEGIN playlist -->
53            <li><a href="javascript:void(0)" onclick="javascript:loadFile({literal}{{/literal}file:'{$playlist.URL}'{literal}}{/literal})" >{$playlist.TEXTE}</a></li>
54          {/foreach}<!-- END playlist -->
55          </ul>
56        </div>
57  </div>
58  <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>
59  <div align="center" id="player">
60<script type="text/javascript">
61        var so = new SWFObject("player/mp3player.swf", "playlist", "{$L_TT}", "{$H_TT}", "7");
62        so.addVariable("file","{$URL}");
63        so.addVariable("autostart","{$AUTOSTART}");
64
65        so.addVariable("enablejs","true");
66        so.addVariable("javascriptid","playlist");
67        so.addVariable('backcolor','{$BACK_COLOR}');
68        so.addVariable('frontcolor','{$FRONT_COLOR}');
69        so.addVariable('lightcolor','{$LIGHT_COLOR}');
70        so.addVariable('linktarget','_blank');
71    so.addParam("allowfullscreen","true");
72        so.addParam("allowscriptaccess","always");
73
74        so.addVariable("repeat","{$REPEAT}");
75        so.addVariable("shuffle","{$SHUFFLE}");
76        so.addVariable("autoscroll","{$AUTOSCROLL}");
77 
78        so.addVariable('displayheight','{$H}'); <!--Attention hauteur de la playlist !  -->
79        so.addVariable('displaywidth','{$L}');<!--Attention largeur de la miniature !  -->
80
81               
82
83        so.write("player");
84</script></div>
85</td>
86          <td id="section_right"></td>
87    </tr>
88    <tr>
89      <td id="section_bottom_left"></td>
90      <td id="section_bottom" ></td>
91      <td id="section_bottom_right" ></td>
92    </tr>
93  </table>
94</div>
95</div> <!-- the_page -->
96
97</body>
98</html>
Note: See TracBrowser for help on using the repository browser.