Bugfix : à l'instanciation d'un site CMF, le composant Products.CMFCore.interfaces...
[Plinn.git] / skins / content / flash_view_template.pt
1 <html metal:use-macro="here/main_template/macros/master"
2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n">
5 <head>
6 <title>flash viewer</title>
7 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
8 <!--
9 <metal:block metal:fill-slot="javascript_head_slot">
10 <script type="text/javascript" tal:attributes="src string:$portal_url/swfobject.js"></script>
11 </metal:block>
12 -->
13 </head>
14 <body>
15 <div metal:fill-slot="main" tal:omit-tag="">
16 <!--
17 <p id="audio_player"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
18 <script type="text/javascript" src="http://kwak.fr/swfobject.js"></script>
19 <script type="text/javascript">
20 var swf = new SWFObject('http://kwak.fr/mp3player.swf', 'playlist', '260', '140', '7');
21 swf.addVariable('file','http://kwak.fr/Members/pinbe/Playlist/podcast.xml?all:boolean=True');
22 swf.addVariable('displayheight','0');
23 swf.addVariable('thumbsinplaylist', true);
24 swf.write('audio_player');
25 </script>
26 <a href="itpc://kwak.fr/Members/pinbe/Playlist/podcast.xml?disable_cookie_login__=1"
27 title="Installer dans iTunes"
28 ><img src="http://kwak.fr/podcast_logo.gif" border="0" alt="Installer dans iTunes" width="70" height="22"/></a>
29 -->
30
31 <p id="player_placeholder">
32 <a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
33 </p>
34
35 <script type="text/javascript" tal:attributes="src string:$portal_url/swfobject.js"></script>
36 <script type="text/javascript" tal:content="structure python:'''
37 var url = '%(url)s';
38 var so = new SWFObject(url,'%(id)s', %(width)s, %(height)s,'8');
39 so.addParam('allowfullscreen','true');
40 so.addVariable('height', %(width)s);
41 so.addVariable('width', %(height)s);
42 so.write('player_placeholder');
43 ''' % {'url' : '%s/index_html' % context.absolute_url(),
44 'id' : context.getId(),
45 'width' : options['width'],
46 'height' : options['height']}">
47 </script>
48 </div>
49 </body>
50 </html>