source: trunk/skins/lemill/macros_flowplayer.pt @ 3098

Revision 3098, 3.6 KB checked in by jukka, 9 years ago (diff)

Fixed bugs found from error_log, mostly to do about strange pieces.

Line 
1<html xmlns="http://www.w3.org/1999/xhtml"
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      i18n:domain="lemill">
6
7  <head><title></title></head>
8
9  <body>
10
11<metal:define define-macro="flowplayer_object">
12    <script language="javascript" tal:content="python:'
13        AC_FL_RunContent(\n
14            \'codebase\', \'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\',\n
15            \'width\', \'320\',\n
16            \'height\', \'200\',\n
17            \'src\', \'FlowPlayer.swf\',\n
18            \'quality\', \'high\',\n
19            \'pluginspage\', \'http://www.macromedia.com/go/getflashplayer\',\n
20            \'align\', \'middle\',\n
21            \'play\', \'true\',\n
22            \'loop\', \'false\',\n
23            \'scale\', \'noScale\',\n
24            \'wmode\', \'transparent\',\n
25            \'devicefont\', \'false\',\n
26            \'id\', \'FlowPlayer\',\n
27            \'bgcolor\', \'#FFFFFF\',\n
28            \'name\', \'FlowPlayer\',\n
29            \'menu\', \'true\',\n
30            \'allowFullScreen\', \'false\',\n
31            \'allowScriptAccess\',\'sameDomain\',\n
32            \'movie\', \'FlowPlayer.swf\',\n
33            \'salign\', \'\',\n
34            \'flashvars\', \'%s\'\n
35        );' % flowPlayerAttributeString.replace('\'', '\\\'')">
36    </script>
37    <noscript>
38        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320" height="200" id="FlowPlayer" align="middle">
39        <param name="allowScriptAccess" value="sameDomain" />
40        <param name="allowFullScreen" value="false" />
41        <param name="movie" value="FlowPlayer.swf" />
42        <param name="loop" value="false" />
43        <param name="quality" value="high" />
44        <param name="bgcolor" value="#FFFFFF" />
45        <param name="scale" value="noScale" />
46        <param name="wmode" value="transparent" />
47        <param name="flashvars" tal:attributes="value flowPlayerAttributeString" value="something" />
48        <embed src="FlowPlayer.swf" loop="false" quality="high" bgcolor="#FFFFFF" scale="noScale" wmode="transparent" width="320" height="200" name="FlowPlayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="something" tal:attributes="flashvars flowPlayerAttributeString" />
49        </object>
50    </noscript>
51</metal:define>
52 
53<metal:define define-macro="flowplayer_piece" tal:define="flowPlayerAttributeString python:'config={videoFile: \'%s/at_download/file\'}' % here_url">
54    <span metal:use-macro="here/macros_flowplayer/macros/flowplayer_object" />
55</metal:define>
56
57<metal:define define-macro="flowplayer_chapter_view" tal:define="flowPlayerAttributeString python:'config={videoFile: \'%s/at_download/file\'}' % piece_url">
58    <span metal:use-macro="here/macros_flowplayer/macros/flowplayer_object" />
59</metal:define>
60
61<metal:define define-macro="flowplayer_chapter_area_edit" tal:define="flowPlayerAttributeString python:'config={videoFile: \'%s/at_download/file\'}' % piece_url">
62    <span metal:use-macro="here/macros_flowplayer/macros/flowplayer_object" />
63</metal:define>
64
65<metal:define define-macro="flowplayer_method_view" tal:define="flowPlayerAttributeString python:'config={videoFile: \'%s/at_download/video\'}' % piece_url">
66    <span metal:use-macro="here/macros_flowplayer/macros/flowplayer_object" />
67</metal:define>
68
69  </body>
70
71</html>
Note: See TracBrowser for help on using the repository browser.