diff options
author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-09-02 11:59:14 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-09-02 11:59:14 +0200 |
commit | 48d05bad256444eb9a823f9c376522356e9be77e (patch) | |
tree | ad12d8709d5735069a9543069c50e2d1ebd6d500 | |
parent | 2ee8b14f86aad8fb78f3fcbbd38e34d724df8a14 (diff) | |
parent | d08c5edccae05166c37b9902c7b999dc4734fa8d (diff) | |
download | forums-48d05bad256444eb9a823f9c376522356e9be77e.tar forums-48d05bad256444eb9a823f9c376522356e9be77e.tar.gz forums-48d05bad256444eb9a823f9c376522356e9be77e.tar.bz2 forums-48d05bad256444eb9a823f9c376522356e9be77e.tar.xz forums-48d05bad256444eb9a823f9c376522356e9be77e.zip |
Merge pull request #3860 from kinerity/ticket/14126
[ticket/14126] Add viewtopic_topic_title_after template event
* kinerity/ticket/14126:
[ticket/14126] Add viewtopic_topic_title_after template event
-rw-r--r-- | phpBB/docs/events.md | 8 | ||||
-rw-r--r-- | phpBB/styles/prosilver/template/viewtopic_body.html | 1 | ||||
-rw-r--r-- | phpBB/styles/subsilver2/template/viewtopic_body.html | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index 338bc9f1e9..1466f783c3 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -2122,6 +2122,14 @@ viewtopic_body_topic_actions_before * Since: 3.1.0-a4 * Purpose: Add data before the topic actions buttons (after the posts sorting options) +viewtopic_topic_title_after +=== +* Locations: + + styles/prosilver/template/viewtopic_body.html + + styles/subsilver2/template/viewtopic_body.html +* Since: 3.1.7-RC1 +* Purpose: Add content directly after the topic title link on the View topic screen (outside of the h2 HTML tag) + viewtopic_topic_title_append === * Locations: diff --git a/phpBB/styles/prosilver/template/viewtopic_body.html b/phpBB/styles/prosilver/template/viewtopic_body.html index 87a9e95dce..b7506608d9 100644 --- a/phpBB/styles/prosilver/template/viewtopic_body.html +++ b/phpBB/styles/prosilver/template/viewtopic_body.html @@ -1,6 +1,7 @@ <!-- INCLUDE overall_header.html --> <h2 class="topic-title"><!-- EVENT viewtopic_topic_title_prepend --><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><!-- EVENT viewtopic_topic_title_append --></h2> +<!-- EVENT viewtopic_topic_title_after --> <!-- NOTE: remove the style="display: none" when you want to have the forum description on the topic body --> <!-- IF FORUM_DESC --><div style="display: none !important;">{FORUM_DESC}<br /></div><!-- ENDIF --> diff --git a/phpBB/styles/subsilver2/template/viewtopic_body.html b/phpBB/styles/subsilver2/template/viewtopic_body.html index ca0377d6b0..ea64bc837f 100644 --- a/phpBB/styles/subsilver2/template/viewtopic_body.html +++ b/phpBB/styles/subsilver2/template/viewtopic_body.html @@ -16,6 +16,7 @@ <div id="pageheader"> <h2><!-- EVENT viewtopic_topic_title_prepend --><a class="titles" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><!-- EVENT viewtopic_topic_title_append --></h2> + <!-- EVENT viewtopic_topic_title_after --> <!-- IF MODERATORS --> <p class="moderators"><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->{L_COLON} {MODERATORS}</p> |