source: extensions/music_player/template/lecteur_v4_5.tpl @ 25091

Last change on this file since 25091 was 3507, checked in by flop25, 15 years ago

add the managment of style !

File size: 2.7 KB
Line 
1{html_head}<link rel="stylesheet" type="text/css" href="./template/lecteur.css">{/html_head}
2{html_head}
3{literal}
4<style>#wrapper { position:absolute; left:50px; top:75px; width:300; height:196; }</style>
5<script type='text/javascript' src='./player/v45/swfobject.js'></script>
6<script type="text/javascript" defer="defer">
7
8
9function deletePlayer(theWrapper, thePlaceholder, thePlayerId) {
10    swfobject.removeSWF(thePlayerId);
11    var tmp=document.getElementById(theWrapper);
12    if (tmp) { tmp.innerHTML = "<div id=" + thePlaceholder + "></div>"; }
13}
14
15
16function createPlayer(theWrapper, thePlaceholder, thePlayerId, theFile) {
17        deletePlayer(theWrapper, thePlaceholder, thePlayerId);
18
19        var flashvars = {
20                file:theFile,
21                autostart:"{/literal}{$AUTOSTART}{literal}",
22                playlist:"right",
23                playlistsize:"{/literal}{$H}{literal}"
24        }
25
26        var params = {
27                allowfullscreen:"true",
28                allowscriptaccess:"always"
29        }
30
31        var attributes = {
32                id:thePlayerId, 
33                name:thePlayerId
34        }
35
36        swfobject.embedSWF("player/v45/player.swf", thePlaceholder, "{/literal}{$L_TT}{literal}", "{/literal}{$H_TT}{literal}", "9.0.115", false, flashvars, params, attributes);
37}
38{/literal}
39
40</script>{/html_head}
41
42{if $conf_plugin_1!='true' }
43{html_head}<style type="text/css">{literal}
44#theHeader
45{
46display:none;
47}
48{/literal}</style>{/html_head}
49{/if}
50{if $conf_plugin_2!='true' }
51{html_head}<style type="text/css">{literal}
52
53#copyright
54{
55display:none;
56}       
57          </style>{/literal}{/html_head}
58{/if}
59
60<div id="content">
61
62<script language="javascript">
63createPlayer('wrapper1', 'placeholder1', 'player1', '{$URL}')
64</script>
65
66<div id="autre_content">
67<div id="montre" style="display:block" align="center">
68  <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='none';document.getElementById('cache').style.display ='block'">{'mp_montre'|@translate}</a>
69</div>
70<div id="cache" style="display:none" align="center">
71  <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='block';document.getElementById('cache').style.display ='none'">{'mp_cache'|@translate}</a><br />
72  <ul>
73  {foreach from=$playlist item=playlist}<!-- BEGIN playlist -->
74    <li><a href="javascript:void(0)" onclick="javascript:createPlayer('wrapper1', 'placeholder1', 'player1', '{$playlist.URL}')" >{$playlist.TEXTE}</a></li>
75  {/foreach}<!-- END playlist -->
76  </ul>
77</div>
78<div id="wrapper1"><div id="placeholder1"></div></div>
79<p id="pageBottomActions"><a href="#" onclick="window.close();" title="{'Close this window'|@translate}"><img src="template/icon/exit.png" class="button" alt="close"></a></p>
80</div>
81</div> <!-- the_page -->
Note: See TracBrowser for help on using the repository browser.