aboutsummaryrefslogtreecommitdiff
path: root/phpBB
diff options
context:
space:
mode:
authorvinny <vinnykun@hotmail.com>2017-12-18 02:52:35 -0300
committervinny <vinnykun@hotmail.com>2017-12-18 02:52:35 -0300
commit5bfd609cc8f6682b48530ccd63f276ecca76aec1 (patch)
treef396926f01973ab3658af3878c78255fa7ca3dbc /phpBB
parentMerge pull request #5035 from kasimi/ticket/15440 (diff)
downloadphpbb-5bfd609cc8f6682b48530ccd63f276ecca76aec1.tar.gz
phpbb-5bfd609cc8f6682b48530ccd63f276ecca76aec1.tar.bz2
phpbb-5bfd609cc8f6682b48530ccd63f276ecca76aec1.zip
[ticket/15485] Add template event for forum images
PHPBB3-15485
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/docs/events.md27
-rw-r--r--phpBB/styles/prosilver/template/forumlist_body.html6
2 files changed, 32 insertions, 1 deletions
diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md
index 6af3f55d21..2725109355 100644
--- a/phpBB/docs/events.md
+++ b/phpBB/docs/events.md
@@ -673,6 +673,33 @@ forumlist_body_category_header_row_prepend
* Since: 3.1.5-RC1
* Purpose: Add content before the header row of the category on the forum list.
+forumlist_body_forum_image_after
+===
+* Locations:
+ + styles/prosilver/template/forumlist_body.html
+* Since: 3.2.2-RC1
+* Purpose: Add content after the forum image on the forum list.
+
+forumlist_body_forum_image_append
+===
+* Locations:
+ + styles/prosilver/template/forumlist_body.html
+* Since: 3.2.2-RC1
+* Purpose: Add content at the start of the forum image on the forum list.
+
+forumlist_body_forum_image_before
+===
+* Locations:
+ + styles/prosilver/template/forumlist_body.html
+* Since: 3.2.2-RC1
+* Purpose: Add content before the forum image on the forum list.
+
+forumlist_body_forum_image_prepend
+* Locations:
+ + styles/prosilver/template/forumlist_body.html
+* Since: 3.2.2-RC1
+* Purpose: Add content at the end of the forum image on the forum list.
+
forumlist_body_forum_row_after
===
* Locations:
diff --git a/phpBB/styles/prosilver/template/forumlist_body.html b/phpBB/styles/prosilver/template/forumlist_body.html
index 621e226260..eab6528ca4 100644
--- a/phpBB/styles/prosilver/template/forumlist_body.html
+++ b/phpBB/styles/prosilver/template/forumlist_body.html
@@ -42,7 +42,11 @@
</a>
-->
<!-- ENDIF -->
- <!-- IF forumrow.FORUM_IMAGE --><span class="forum-image">{forumrow.FORUM_IMAGE}</span><!-- ENDIF -->
+ <!-- IF forumrow.FORUM_IMAGE -->
+ <!-- EVENT forumlist_body_forum_image_before -->
+ <span class="forum-image"><!-- EVENT forumlist_body_forum_image_prepend -->{forumrow.FORUM_IMAGE}<!-- EVENT forumlist_body_forum_image_append --></span>
+ <!-- EVENT forumlist_body_forum_image_after -->
+ <!-- ENDIF -->
<a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a>
<!-- IF forumrow.FORUM_DESC --><br />{forumrow.FORUM_DESC}<!-- ENDIF -->
<!-- IF forumrow.MODERATORS -->