From fe72d874609c0b15dece23d506050fd7771dbf89 Mon Sep 17 00:00:00 2001
From: mrgoldy
Date: Tue, 4 Dec 2018 01:48:09 +0100
Subject: [PATCH] [ticket/15901] Add mcp_post_ template events
PHPBB3-15901
---
phpBB/docs/events.md | 14 ++++++++++++++
phpBB/styles/prosilver/template/mcp_post.html | 4 ++++
2 files changed, 18 insertions(+)
diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md
index de3952cafc..8aad9a5c60 100644
--- a/phpBB/docs/events.md
+++ b/phpBB/docs/events.md
@@ -995,6 +995,20 @@ mcp_post_additional_options
* Since: 3.1.5-RC1
* Purpose: Add content within the list of post moderation actions
+mcp_post_text_before
+===
+* Locations:
+ + styles/prosilver/template/mcp_post.html
+* Since 3.2.6-RC1
+* Purpose: Add content before the post text
+
+mcp_post_text_after
+===
+* Locations:
+ + styles/prosilver/template/mcp_post.html
+* Since: 3.2.6-RC1
+* Purpose: Add content after the post text
+
mcp_post_report_buttons_top_after
===
* Locations:
diff --git a/phpBB/styles/prosilver/template/mcp_post.html b/phpBB/styles/prosilver/template/mcp_post.html
index cf9d0bd6c1..c2297a8053 100644
--- a/phpBB/styles/prosilver/template/mcp_post.html
+++ b/phpBB/styles/prosilver/template/mcp_post.html
@@ -108,10 +108,14 @@
+ {% EVENT mcp_post_text_before %}
+
{POST_PREVIEW}
+ {% EVENT mcp_post_text_after %}
+
- {L_ATTACHMENTS}