Merge pull request #3302 from rxu/ticket/13512

[ticket/13512] Add template events before/after the post details
This commit is contained in:
Joas Schilling 2015-02-02 23:05:50 +01:00
commit b1336ae016
3 changed files with 20 additions and 0 deletions

View file

@ -1531,6 +1531,22 @@ viewtopic_body_postrow_post_content_footer
* Since: 3.1.0-RC4
* Purpose: Add data at the end of the posts.
viewtopic_body_postrow_post_details_after
===
* Locations:
+ styles/prosilver/template/viewtopic_body.html
+ styles/subsilver2/template/viewtopic_body.html
* Since: 3.1.4-RC1
* Purpose: Add content after the post details
viewtopic_body_postrow_post_details_before
===
* Locations:
+ styles/prosilver/template/viewtopic_body.html
+ styles/subsilver2/template/viewtopic_body.html
* Since: 3.1.4-RC1
* Purpose: Add content before the post details
viewtopic_body_postrow_post_notices_after
===
* Locations:

View file

@ -249,7 +249,9 @@
<!-- ENDIF -->
<!-- ENDIF -->
<!-- EVENT viewtopic_body_postrow_post_details_before -->
<p class="author"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF --><span class="responsive-hide">{L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR_FULL}</strong> &raquo; </span>{postrow.POST_DATE} </p>
<!-- EVENT viewtopic_body_postrow_post_details_after -->
<!-- IF postrow.S_POST_UNAPPROVED -->
<form method="post" class="mcp_approve" action="{postrow.U_APPROVE_ACTION}">

View file

@ -167,6 +167,7 @@
<b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</b>
<!-- EVENT viewtopic_body_post_author_after -->
</td>
<!-- EVENT viewtopic_body_postrow_post_details_before -->
<td width="100%" height="25">
<table width="100%" cellspacing="0">
<tr>
@ -177,6 +178,7 @@
</tr>
</table>
</td>
<!-- EVENT viewtopic_body_postrow_post_details_after -->
</tr>
<!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->