source: branches/posledni/forum/styles/subsilver2/template/attachment.html

Last change on this file was 400, checked in by george, 16 years ago
  • Přidáno: Nové forum phpBB 3.
File size: 5.9 KB
Line 
1
2<!-- BEGIN _file -->
3
4 <!-- IF _file.S_DENIED -->
5 <span class="genmed">[{_file.DENIED_MESSAGE}]</span><br />
6 <!-- ELSE -->
7
8 <!-- IF _file.COMMENT -->
9 <span class="gensmall"><b>{L_FILE_COMMENT}:</b> {_file.COMMENT}</span><br />
10 <!-- ENDIF -->
11
12 <!-- IF _file.S_THUMBNAIL -->
13 <a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" /></a><br />
14 <span class="gensmall">{_file.DOWNLOAD_NAME} [ {_file.FILESIZE} {_file.SIZE_LANG} | {_file.L_DOWNLOAD_COUNT} ]</span>
15 <!-- ENDIF -->
16
17 <!-- IF _file.S_IMAGE -->
18 <img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" /><br />
19 <span class="gensmall">{_file.DOWNLOAD_NAME} [ {_file.FILESIZE} {_file.SIZE_LANG} | {_file.L_DOWNLOAD_COUNT} ]</span>
20 <!-- ENDIF -->
21
22 <!-- IF _file.S_FILE -->
23 <span class="genmed">
24 <!-- IF _file.UPLOAD_ICON -->{_file.UPLOAD_ICON} <!-- ENDIF -->
25 <a href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a> [{_file.FILESIZE} {_file.SIZE_LANG}]
26 </span><br />
27 <span class="gensmall">{_file.L_DOWNLOAD_COUNT}</span>
28 <!-- ENDIF -->
29
30 <!-- IF _file.S_WM_FILE -->
31 <!-- method used here from http://alistapart.com/articles/byebyeembed / autosizing seems to not work always, this will not fix -->
32 <object width="320" height="285" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="wmstream_{_file.ATTACH_ID}">
33 <param name="url" value="{_file.U_DOWNLOAD_LINK}" />
34 <param name="showcontrols" value="1" />
35 <param name="showdisplay" value="0" />
36 <param name="showstatusbar" value="0" />
37 <param name="autosize" value="1" />
38 <param name="autostart" value="0" />
39 <param name="visible" value="1" />
40 <param name="animationstart" value="0" />
41 <param name="loop" value="0" />
42 <param name="src" value="{_file.U_DOWNLOAD_LINK}" />
43 <!--[if !IE]>-->
44 <object width="320" height="285" type="video/x-ms-wmv" data="{_file.U_DOWNLOAD_LINK}">
45 <param name="src" value="{_file.U_DOWNLOAD_LINK}" />
46 <param name="controller" value="1" />
47 <param name="showcontrols" value="1" />
48 <param name="showdisplay" value="0" />
49 <param name="showstatusbar" value="0" />
50 <param name="autosize" value="1" />
51 <param name="autostart" value="0" />
52 <param name="visible" value="1" />
53 <param name="animationstart" value="0" />
54 <param name="loop" value="0" />
55 </object>
56 <!--<![endif]-->
57 </object>
58
59 <!-- ELSEIF _file.S_FLASH_FILE -->
60 <object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0" width="{_file.WIDTH}" height="{_file.HEIGHT}">
61 <param name="movie" value="{_file.U_DOWNLOAD_LINK}" />
62 <param name="play" value="true" />
63 <param name="loop" value="true" />
64 <param name="quality" value="high" />
65 <param name="allowScriptAccess" value="never" />
66 <param name="allowNetworking" value="internal" />
67 <embed src="{_file.U_DOWNLOAD_LINK}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="{_file.WIDTH}" height="{_file.HEIGHT}" play="true" loop="true" quality="high" allowscriptaccess="never" allownetworking="internal"></embed>
68 </object>
69 <!-- ELSEIF _file.S_QUICKTIME_FILE -->
70 <object id="qtstream_{_file.ATTACH_ID}" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" width="0" height="16">
71 <param name="src" value="{_file.U_DOWNLOAD_LINK}">
72 <param name="controller" value="true">
73 <param name="autoplay" value="false" />
74 <param name="type" value="video/quicktime">
75 <embed name="qtstream_{_file.ATTACH_ID}" src="{_file.U_DOWNLOAD_LINK}" pluginspage="http://www.apple.com/quicktime/download/" enablejavascript="true" controller="true" width="0" height="16" type="video/quicktime" autoplay="false">
76 </object>
77 <!-- ELSEIF _file.S_RM_FILE -->
78 <object id="rmstream_{_file.ATTACH_ID}" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="200" height="50">
79 <param name="src" value="{_file.U_DOWNLOAD_LINK}">
80 <param name="autostart" value="false">
81 <param name="controls" value="ImageWindow">
82 <param name="console" value="ctrls_{_file.ATTACH_ID}">
83 <param name="prefetch" value="false">
84 <embed name="rmstream_{_file.ATTACH_ID}" type="audio/x-pn-realaudio-plugin" src="{_file.U_DOWNLOAD_LINK}" width="0" height="0" autostart="false" controls="ImageWindow" console="ctrls_{_file.ATTACH_ID}" prefetch="false"></embed>
85 </object>
86 <br />
87 <object id="ctrls_{_file.ATTACH_ID}" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="0" height="36">
88 <param name="controls" value="ControlPanel">
89 <param name="console" value="ctrls_{_file.ATTACH_ID}">
90 <embed name="ctrls_{_file.ATTACH_ID}" type="audio/x-pn-realaudio-plugin" width="200" height="36" controls="ControlPanel" console="ctrls_{_file.ATTACH_ID}"></embed>
91 </object>
92
93 <script type="text/javascript">
94 // <![CDATA[
95 if (document.rmstream_{_file.ATTACH_ID}.GetClipWidth)
96 {
97 while (!document.rmstream_{_file.ATTACH_ID}.GetClipWidth())
98 {
99 }
100
101 var width = document.rmstream_{_file.ATTACH_ID}.GetClipWidth();
102 var height = document.rmstream_{_file.ATTACH_ID}.GetClipHeight();
103
104 document.rmstream_{_file.ATTACH_ID}.width = width;
105 document.rmstream_{_file.ATTACH_ID}.height = height;
106 document.ctrls_{_file.ATTACH_ID}.width = width;
107 }
108 // ]]>
109 </script>
110 <!-- ENDIF -->
111
112 <!-- IF _file.S_WM_FILE or _file.S_RM_FILE or _file.S_FLASH_FILE or _file.S_QUICKTIME_FILE -->
113 <br />
114 <!-- IF _file.S_QUICKTIME_FILE --><a href="#" onclick="play_qt_file(document.qtstream_{_file.ATTACH_ID}); return false;">[ {L_PLAY_QUICKTIME_FILE} ]</a> <!-- ENDIF -->
115 <span class="gensmall"><a href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a> [ {_file.FILESIZE} {_file.SIZE_LANG} | {_file.L_DOWNLOAD_COUNT} ]</span>
116 <!-- ENDIF -->
117
118 <br />
119 <!-- ENDIF -->
120
121<!-- END _file -->
Note: See TracBrowser for help on using the repository browser.