aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZoddo <zoddo.ino@gmail.com>2015-08-09 13:46:21 +0200
committerZoddo <zoddo.ino@gmail.com>2015-08-23 14:12:44 +0200
commit0caaf86158c81457d40ad287b29a7118dbb5e28e (patch)
tree0d6b4ba953cbf8a81fc70975f77ed3bbc551cd45
parentf585f48aca3053862e81d0ff63956940c53878e7 (diff)
downloadforums-0caaf86158c81457d40ad287b29a7118dbb5e28e.tar
forums-0caaf86158c81457d40ad287b29a7118dbb5e28e.tar.gz
forums-0caaf86158c81457d40ad287b29a7118dbb5e28e.tar.bz2
forums-0caaf86158c81457d40ad287b29a7118dbb5e28e.tar.xz
forums-0caaf86158c81457d40ad287b29a7118dbb5e28e.zip
[ticket/14089] Add posting_topic_title_after template event
Allows to add some information after the topic title in the posting form PHPBB3-14089
-rw-r--r--phpBB/docs/events.md8
-rw-r--r--phpBB/styles/prosilver/template/posting_layout.html2
-rw-r--r--phpBB/styles/subsilver2/template/posting_body.html2
3 files changed, 10 insertions, 2 deletions
diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md
index 338bc9f1e9..c6fb871dd3 100644
--- a/phpBB/docs/events.md
+++ b/phpBB/docs/events.md
@@ -1235,6 +1235,14 @@ posting_poll_body_options_after
* Since: 3.1.4-RC1
* Purpose: Add content after the poll options on creating a poll
+posting_topic_title_after
+===
+* Locations:
+ + styles/prosilver/template/posting_layout.html
+ + styles/subsilver2/template/posting_body.html
+* Since: 3.1.6-RC1
+* Purpose: Allows to add some information after the topic title in the posting form
+
posting_topic_title_before
===
* Locations:
diff --git a/phpBB/styles/prosilver/template/posting_layout.html b/phpBB/styles/prosilver/template/posting_layout.html
index 19a7351d78..22da32076c 100644
--- a/phpBB/styles/prosilver/template/posting_layout.html
+++ b/phpBB/styles/prosilver/template/posting_layout.html
@@ -1,7 +1,7 @@
<!-- INCLUDE overall_header.html -->
<!-- IF TOPIC_TITLE -->
- <h2 class="posting-title"><!-- EVENT posting_topic_title_before --><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h2>
+ <h2 class="posting-title"><!-- EVENT posting_topic_title_before --><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><!-- EVENT posting_topic_title_after --></h2>
<!-- ELSE -->
<h2 class="posting-title"><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>
<!-- ENDIF -->
diff --git a/phpBB/styles/subsilver2/template/posting_body.html b/phpBB/styles/subsilver2/template/posting_body.html
index 7adac0fee9..bafddafe8d 100644
--- a/phpBB/styles/subsilver2/template/posting_body.html
+++ b/phpBB/styles/subsilver2/template/posting_body.html
@@ -20,7 +20,7 @@
<!-- IF not S_PRIVMSGS -->
<div id="pageheader">
- <h2><!-- IF TOPIC_TITLE --><!-- EVENT posting_topic_title_before --><a class="titles" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><!-- ELSE --><a class="titles" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><!-- ENDIF --></h2>
+ <h2><!-- IF TOPIC_TITLE --><!-- EVENT posting_topic_title_before --><a class="titles" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><!-- EVENT posting_topic_title_after --><!-- ELSE --><a class="titles" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><!-- ENDIF --></h2>
<!-- IF MODERATORS -->
<p class="moderators">{L_MODERATORS}{L_COLON} {MODERATORS}</p>