aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-12-28 08:22:36 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-12-28 08:22:36 +0100
commit53ce1330d640c623be461c18e78ecdf08e9ee0d8 (patch)
treeb8936cc9fe5daffb3a91d2a7f13b81889b4ac4e9
parent602e440cfdc0ad5c8d4e87d809f04d9afd2b623c (diff)
parent69416b65f3718de4641e74798e70438539c1164b (diff)
downloadforums-53ce1330d640c623be461c18e78ecdf08e9ee0d8.tar
forums-53ce1330d640c623be461c18e78ecdf08e9ee0d8.tar.gz
forums-53ce1330d640c623be461c18e78ecdf08e9ee0d8.tar.bz2
forums-53ce1330d640c623be461c18e78ecdf08e9ee0d8.tar.xz
forums-53ce1330d640c623be461c18e78ecdf08e9ee0d8.zip
Merge pull request #5063 from vinny/ticket/15485
[ticket/15485] Add template event for forum images
-rw-r--r--phpBB/docs/events.md28
-rw-r--r--phpBB/styles/prosilver/template/forumlist_body.html6
2 files changed, 33 insertions, 1 deletions
diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md
index 68dec5085d..f2b87ce7f1 100644
--- a/phpBB/docs/events.md
+++ b/phpBB/docs/events.md
@@ -680,6 +680,34 @@ 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 -->