mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
initial 'view attachments' implementation. added new template var (merged include, to preserve previous block vars), could be changed later to consider caching. some config variables and upload icons are not present as of yet...
git-svn-id: file:///svn/phpbb/trunk@3807 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
38
phpBB/templates/subSilver/viewtopic_attach_body.html
Normal file
38
phpBB/templates/subSilver/viewtopic_attach_body.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<br /><br />
|
||||
<!-- BEGIN attachment -->
|
||||
<hr /><br />
|
||||
<!-- IF postrow.attachment.IS_DENIED -->
|
||||
<span class="postbody">[{postrow.attachment.L_DENIED}]</span><br /><br />
|
||||
<!-- ENDIF -->
|
||||
<!-- IF postrow.attachment.IS_STREAM -->
|
||||
<span class="postbody">{postrow.attachment.COMMENT}</span><br />
|
||||
<object id="wmp" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
|
||||
<param name="FileName" value="{postrow.attachment.U_DOWNLOAD_LINK}">
|
||||
<param name="ShowControls" value="1">
|
||||
<param name="ShowDisplay" value="0">
|
||||
<param name="ShowStatusBar" value="1">
|
||||
<param name="AutoSize" value="1">
|
||||
<param name="AutoStart" value="0">
|
||||
<param name="Visible" value="1">
|
||||
<param name="AnimationStart" value="0">
|
||||
<param name="Loop" value="0">
|
||||
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp" src="{postrow.attachment.U_DOWNLOAD_LINK}" name=MediaPlayer2 showcontrols=1 showdisplay=0 showstatusbar=1 autosize=1 autostart=0 visible=1 animationatstart=0 loop=0></embed>
|
||||
</object>
|
||||
<br /><span class="gensmall">{postrow.attachment.DOWNLOAD_NAME} - {postrow.attachment.L_DOWNLOAD_COUNT}</span><br /><br />
|
||||
<!-- ELSEIF postrow.attachment.IS_IMAGE -->
|
||||
<span class="postbody">{postrow.attachment.COMMENT}<br />
|
||||
<img src="{postrow.attachment.U_DOWNLOAD_LINK}" alt="{postrow.attachment.DOWNLOAD_NAME}" /></span>
|
||||
<br /><span class="gensmall">{postrow.attachment.DOWNLOAD_NAME} - {postrow.attachment.L_DOWNLOAD_COUNT}</span><br /><br />
|
||||
<!-- ELSEIF postrow.attachment.IS_THUMBNAIL -->
|
||||
<span class="postbody">{postrow.attachment.COMMENT}<br />
|
||||
<a href="{postrow.attachment.U_DOWNLOAD_LINK}" target="_blank"><img src="{postrow.attachment.IMG_THUMB_SRC}" alt="{postrow.attachment.DOWNLOAD_NAME}" border="0" /></a></span>
|
||||
<br /><span class="gensmall">{postrow.attachment.DOWNLOAD_NAME} - {postrow.attachment.L_DOWNLOAD_COUNT}</span><br /><br />
|
||||
<!-- ELSE -->
|
||||
<span class="postbody">{postrow.attachment.COMMENT}</span><br />
|
||||
<span class="postbody">{postrow.attachment.UPLOAD_IMG}
|
||||
<a href="{postrow.attachment.U_DOWNLOAD_LINK}" target="_blank">{postrow.attachment.DOWNLOAD_NAME}</a> - {postrow.attachment.FILESIZE} {postrow.attachment.SIZE_VAR}<br /></span>
|
||||
<span class="gensmall">{postrow.attachment.L_DOWNLOAD_COUNT}</span><br /><br />
|
||||
<!-- ENDIF -->
|
||||
|
||||
{postrow.attachment.HELLO}
|
||||
<!-- END attachment -->
|
@@ -128,7 +128,7 @@
|
||||
</tr>
|
||||
<!-- ENDIF -->
|
||||
<tr>
|
||||
<td><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
|
||||
<td><span class="postbody">{postrow.MESSAGE}<!-- IF postrow.S_HAS_ATTACHMENTS --></span><!-- MERGE_INCLUDE viewtopic_attach_body.html --><span class="postbody"><!-- ENDIF -->{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user