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

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