aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-08-28 15:53:30 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-08-28 15:53:30 +0200
commita019a86bfcd7c1ffe7b38449bc6d93c377d4662a (patch)
tree72aee8005c36427429ac8fcc83014274ac3b99de
parent71a70500ea946a02a46257f883f90a3936528ac0 (diff)
parent317f3e848fde774cf8ebbf9e9574b8b3d2a15b38 (diff)
downloadforums-a019a86bfcd7c1ffe7b38449bc6d93c377d4662a.tar
forums-a019a86bfcd7c1ffe7b38449bc6d93c377d4662a.tar.gz
forums-a019a86bfcd7c1ffe7b38449bc6d93c377d4662a.tar.bz2
forums-a019a86bfcd7c1ffe7b38449bc6d93c377d4662a.tar.xz
forums-a019a86bfcd7c1ffe7b38449bc6d93c377d4662a.zip
Merge pull request #4338 from Senky/ticket/14469
Add viewforum_body_topicrow_before template event
-rw-r--r--phpBB/docs/events.md8
-rw-r--r--phpBB/styles/prosilver/template/viewforum_body.html4
-rw-r--r--phpBB/styles/subsilver2/template/viewforum_body.html4
3 files changed, 14 insertions, 2 deletions
diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md
index fea52ade1f..c27455aeff 100644
--- a/phpBB/docs/events.md
+++ b/phpBB/docs/events.md
@@ -2287,6 +2287,14 @@ viewforum_body_topic_row_prepend
* Since: 3.1.7-RC1
* Purpose: Add content at the end of the topic list item.
+viewforum_body_topicrow_row_before
+===
+* Locations:
+ + styles/prosilver/template/viewforum_body.html
+ + styles/subsilver2/template/viewforum_body.html
+* Since: 3.1.10-RC1
+* Purpose: Add content before list of topics.
+
viewforum_buttons_bottom_before
===
* Locations:
diff --git a/phpBB/styles/prosilver/template/viewforum_body.html b/phpBB/styles/prosilver/template/viewforum_body.html
index bb18a5dd2c..643b78823f 100644
--- a/phpBB/styles/prosilver/template/viewforum_body.html
+++ b/phpBB/styles/prosilver/template/viewforum_body.html
@@ -121,6 +121,8 @@
<!-- ENDIF -->
+<!-- EVENT viewforum_body_topic_row_before -->
+
<!-- BEGIN topicrow -->
<!-- IF not topicrow.S_TOPIC_TYPE_SWITCH and not topicrow.S_FIRST_ROW -->
@@ -145,7 +147,7 @@
<ul class="topiclist topics">
<!-- ENDIF -->
- <!-- EVENT viewforum_body_topic_row_before -->
+ <!-- EVENT viewforum_body_topicrow_row_before -->
<li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_GLOBAL --> global-announce<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF -->">
<!-- EVENT viewforum_body_topic_row_prepend -->
<dl class="icon {topicrow.TOPIC_IMG_STYLE}">
diff --git a/phpBB/styles/subsilver2/template/viewforum_body.html b/phpBB/styles/subsilver2/template/viewforum_body.html
index 2b8268d2c3..c76c081ba7 100644
--- a/phpBB/styles/subsilver2/template/viewforum_body.html
+++ b/phpBB/styles/subsilver2/template/viewforum_body.html
@@ -32,9 +32,11 @@
<th>&nbsp;{L_LAST_POST}&nbsp;</th>
</tr>
+ <!-- EVENT viewforum_body_topic_row_before -->
+
<!-- BEGIN topicrow -->
- <!-- EVENT viewforum_body_topic_row_before -->
+ <!-- EVENT viewforum_body_topicrow_row_before -->
<tr>
<!-- EVENT viewforum_body_topic_row_prepend -->
<td class="row1" width="25" align="center">{topicrow.TOPIC_FOLDER_IMG}</td>