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

Last change on this file since 9590 was 9590, checked in by flop25, 13 years ago

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

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