1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-08 23:45:20 +02:00

Merge pull request #2050 from rxu/ticket/12217

[ticket/12217] Add more template events to viewtopic_body.html
This commit is contained in:
Nathan Guse 2014-02-20 10:32:45 -06:00
commit cadf0dd3fd
3 changed files with 31 additions and 1 deletions

View File

@ -484,6 +484,30 @@ viewtopic_body_postrow_custom_fields_before
* Purpose: Add data before the custom fields on the user profile when viewing * Purpose: Add data before the custom fields on the user profile when viewing
a post a post
viewtopic_body_postrow_post_after
===
* Locations:
+ styles/prosilver/template/viewtopic_body.html
+ styles/subsilver2/template/viewtopic_body.html
* Since: 3.1.0-a4
* Purpose: Add data after posts
viewtopic_body_postrow_post_before
===
* Locations:
+ styles/prosilver/template/viewtopic_body.html
+ styles/subsilver2/template/viewtopic_body.html
* Since: 3.1.0-a4
* Purpose: Add data before posts
viewtopic_body_topic_actions_before
===
* Locations:
+ styles/prosilver/template/viewtopic_body.html
+ styles/subsilver2/template/viewtopic_body.html
* Since: 3.1.0-a4
* Purpose: Add data before the topic actions buttons (after the posts sorting options)
viewtopic_topic_title_prepend viewtopic_topic_title_prepend
=== ===
* Locations: * Locations:

View File

@ -107,12 +107,12 @@
{S_HIDDEN_FIELDS} {S_HIDDEN_FIELDS}
</div> </div>
</form> </form>
<hr /> <hr />
<!-- ENDIF --> <!-- ENDIF -->
<!-- BEGIN postrow --> <!-- BEGIN postrow -->
<!-- EVENT viewtopic_body_postrow_post_before -->
<!-- IF postrow.S_FIRST_UNREAD --><a id="unread"></a><!-- ENDIF --> <!-- IF postrow.S_FIRST_UNREAD --><a id="unread"></a><!-- ENDIF -->
<div id="p{postrow.POST_ID}" class="post <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_POST_DELETED --> deleted<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> online<!-- ENDIF -->"> <div id="p{postrow.POST_ID}" class="post <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_POST_DELETED --> deleted<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> online<!-- ENDIF -->">
<div class="inner"> <div class="inner">
@ -271,6 +271,7 @@
</div> </div>
<hr class="divider" /> <hr class="divider" />
<!-- EVENT viewtopic_body_postrow_post_after -->
<!-- END postrow --> <!-- END postrow -->
<!-- IF S_QUICK_REPLY --> <!-- IF S_QUICK_REPLY -->
<!-- INCLUDE quickreply_editor.html --> <!-- INCLUDE quickreply_editor.html -->
@ -292,6 +293,7 @@
<hr /> <hr />
<!-- ENDIF --> <!-- ENDIF -->
<!-- EVENT viewtopic_body_topic_actions_before -->
<div class="topic-actions"> <div class="topic-actions">
<div class="buttons"> <div class="buttons">
<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO --> <!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->

View File

@ -127,6 +127,7 @@
</table> </table>
<!-- BEGIN postrow --> <!-- BEGIN postrow -->
<!-- EVENT viewtopic_body_postrow_post_before -->
<table class="tablebg" width="100%" cellspacing="1"> <table class="tablebg" width="100%" cellspacing="1">
<!-- IF postrow.S_FIRST_ROW --> <!-- IF postrow.S_FIRST_ROW -->
<tr> <tr>
@ -338,6 +339,7 @@
<td class="spacer" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td> <td class="spacer" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
</tr> </tr>
</table> </table>
<!-- EVENT viewtopic_body_postrow_post_after -->
<!-- END postrow --> <!-- END postrow -->
<!-- IF not S_IS_BOT --> <!-- IF not S_IS_BOT -->
@ -348,6 +350,8 @@
</table> </table>
<!-- ENDIF --> <!-- ENDIF -->
<!-- EVENT viewtopic_body_topic_actions_before -->
<table width="100%" cellspacing="1"> <table width="100%" cellspacing="1">
<tr> <tr>
<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap"> <td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">