Skip to content

Commit fe72d87

Browse files
committed
[ticket/15901] Add mcp_post_ template events
PHPBB3-15901
1 parent 7182f5d commit fe72d87

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

phpBB/docs/events.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,20 @@ mcp_post_additional_options
995995
* Since: 3.1.5-RC1
996996
* Purpose: Add content within the list of post moderation actions
997997

998+
mcp_post_text_before
999+
===
1000+
* Locations:
1001+
+ styles/prosilver/template/mcp_post.html
1002+
* Since 3.2.6-RC1
1003+
* Purpose: Add content before the post text
1004+
1005+
mcp_post_text_after
1006+
===
1007+
* Locations:
1008+
+ styles/prosilver/template/mcp_post.html
1009+
* Since: 3.2.6-RC1
1010+
* Purpose: Add content after the post text
1011+
9981012
mcp_post_report_buttons_top_after
9991013
===
10001014
* Locations:

phpBB/styles/prosilver/template/mcp_post.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,14 @@ <h3><a href="{U_VIEW_POST}">{POST_SUBJECT}</a></h3>
108108
</p>
109109
<!-- ENDIF -->
110110

111+
{% EVENT mcp_post_text_before %}
112+
111113
<div id="post_details" class="content post_details">
112114
{POST_PREVIEW}
113115
</div>
114116

117+
{% EVENT mcp_post_text_after %}
118+
115119
<!-- IF S_HAS_ATTACHMENTS -->
116120
<dl class="attachbox">
117121
<dt>{L_ATTACHMENTS}</dt>

0 commit comments

Comments
 (0)