diff options
| author | rxu <rxu@mail.ru> | 2015-08-03 18:35:15 +0700 | 
|---|---|---|
| committer | rxu <rxu@mail.ru> | 2015-08-03 18:35:15 +0700 | 
| commit | 6a7978965d0a2dd820bf21e13ee6206473c0cf5e (patch) | |
| tree | 7b6d70db07bb089a6f5e7ddb966418a9f71270db | |
| parent | f34f28f2834102714b13aeb05ca54cbb3c7d779c (diff) | |
| download | forums-6a7978965d0a2dd820bf21e13ee6206473c0cf5e.tar forums-6a7978965d0a2dd820bf21e13ee6206473c0cf5e.tar.gz forums-6a7978965d0a2dd820bf21e13ee6206473c0cf5e.tar.bz2 forums-6a7978965d0a2dd820bf21e13ee6206473c0cf5e.tar.xz forums-6a7978965d0a2dd820bf21e13ee6206473c0cf5e.zip  | |
[ticket/14065] Add template events to attachment.html
Additionally remove some unnecessary empty lines.
PHPBB3-14065
| -rw-r--r-- | phpBB/docs/events.md | 32 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/attachment.html | 7 | ||||
| -rw-r--r-- | phpBB/styles/subsilver2/template/attachment.html | 4 | 
3 files changed, 40 insertions, 3 deletions
diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index 19e7d1121c..9458ac6d67 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -284,6 +284,38 @@ acp_users_prefs_view_prepend  * Since: 3.1.0-b3  * Purpose: Add user options fieldset to the top of ACP users view prefs settings +attachment_file_after +=== +* Locations: +    + styles/prosilver/template/attachment.html +    + styles/subsilver2/template/attachment.html +* Since: 3.1.6-RC1 +* Purpose: Add content after the attachment. + +attachment_file_append +=== +* Locations: +    + styles/prosilver/template/attachment.html +    + styles/subsilver2/template/attachment.html +* Since: 3.1.6-RC1 +* Purpose: Add custom attachment types displaying to the bottom of attachment block. + +attachment_file_before +=== +* Locations: +    + styles/prosilver/template/attachment.html +    + styles/subsilver2/template/attachment.html +* Since: 3.1.6-RC1 +* Purpose: Add content before the attachment. + +attachment_file_prepend +=== +* Locations: +    + styles/prosilver/template/attachment.html +    + styles/subsilver2/template/attachment.html +* Since: 3.1.6-RC1 +* Purpose: Add custom attachment types displaying to the top of attachment block. +  forumlist_body_category_header_after  ===  * Locations: diff --git a/phpBB/styles/prosilver/template/attachment.html b/phpBB/styles/prosilver/template/attachment.html index c227e710b1..4546f53d6c 100644 --- a/phpBB/styles/prosilver/template/attachment.html +++ b/phpBB/styles/prosilver/template/attachment.html @@ -1,8 +1,10 @@ +<!-- EVENT attachment_file_before -->  <!-- BEGIN _file -->  	<!-- IF _file.S_DENIED -->  	<p>[{_file.DENIED_MESSAGE}]</p>  	<!-- ELSE --> +		<!-- EVENT attachment_file_prepend -->  		<!-- IF _file.S_THUMBNAIL -->  		<dl class="thumbnail"> @@ -11,7 +13,6 @@  		</dl>  		<!-- ENDIF --> -  		<!-- IF _file.S_IMAGE -->  		<dl class="file">  			<dt class="attach-image"><img src="{_file.U_INLINE_LINK}" class="postimage" alt="{_file.DOWNLOAD_NAME}" onclick="viewableArea(this);" /></dt> @@ -28,8 +29,6 @@  		</dl>  		<!-- ENDIF --> - -  		<!-- IF _file.S_WM_FILE -->  			<!-- method used here from http://alistapart.com/articles/byebyeembed / autosizing seems to not work always, this will not fix -->  			<object width="320" height="285" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="wmstream_{_file.ATTACH_ID}"> @@ -118,5 +117,7 @@  			<a href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a> [ {_file.FILESIZE} {_file.SIZE_LANG} | {_file.L_DOWNLOAD_COUNT} ]</p>  		<!-- ENDIF --> +		<!-- EVENT attachment_file_append -->  	<!-- ENDIF -->  <!-- END _file --> +<!-- EVENT attachment_file_after --> diff --git a/phpBB/styles/subsilver2/template/attachment.html b/phpBB/styles/subsilver2/template/attachment.html index baad7c6cfc..65a28aead4 100644 --- a/phpBB/styles/subsilver2/template/attachment.html +++ b/phpBB/styles/subsilver2/template/attachment.html @@ -1,9 +1,11 @@ +<!-- EVENT attachment_file_before -->  <!-- BEGIN _file -->  	<!-- IF _file.S_DENIED -->  		<span class="genmed">[{_file.DENIED_MESSAGE}]</span><br />  	<!-- ELSE --> +		<!-- EVENT attachment_file_prepend -->  		<!-- IF _file.COMMENT -->  			<span class="gensmall"><b>{L_FILE_COMMENT}{L_COLON}</b> {_file.COMMENT}</span><br /> @@ -115,7 +117,9 @@  			<span class="gensmall"><a href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a> [ {_file.FILESIZE} {_file.SIZE_LANG} | {_file.L_DOWNLOAD_COUNT} ]</span>  		<!-- ENDIF --> +		<!-- EVENT attachment_file_append -->  		<br />  	<!-- ENDIF -->  <!-- END _file --> +<!-- EVENT attachment_file_after -->  | 
