diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2017-06-05 11:22:13 +0200 | 
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2017-06-05 11:22:13 +0200 | 
| commit | 3f6119c42b5c0a3b35edaa35e2c7379b3ed089af (patch) | |
| tree | 1ca96077b73551521b0c924613400d7bf74aa43f | |
| parent | f0dbfc56d54fc4145fba2e1134d30f653b0964d5 (diff) | |
| parent | e84459ba674af9267ea4119c746bfec290d2163d (diff) | |
| download | forums-3f6119c42b5c0a3b35edaa35e2c7379b3ed089af.tar forums-3f6119c42b5c0a3b35edaa35e2c7379b3ed089af.tar.gz forums-3f6119c42b5c0a3b35edaa35e2c7379b3ed089af.tar.bz2 forums-3f6119c42b5c0a3b35edaa35e2c7379b3ed089af.tar.xz forums-3f6119c42b5c0a3b35edaa35e2c7379b3ed089af.zip | |
Merge pull request #4818 from rxu/ticket/15205
[ticket/15205] Add template events prepending/appending subforum link
| -rw-r--r-- | phpBB/docs/events.md | 16 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/forumlist_body.html | 2 | ||||
| -rw-r--r-- | phpBB/styles/subsilver2/template/forumlist_body.html | 2 | 
3 files changed, 18 insertions, 2 deletions
| diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index afe8141916..737fd4ed22 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -693,6 +693,22 @@ forumlist_body_last_post_title_prepend  * Since: 3.1.0-a1  * Purpose: Add content before the post title of the latest post in a forum on the forum list. +forumlist_body_subforum_link_append +=== +* Locations: +    + styles/prosilver/template/forumlist_body.html +    + styles/subsilver2/template/forumlist_body.html +* Since: 3.1.11-RC1 +* Purpose: Add content at the end of subforum link item. + +forumlist_body_subforum_link_prepend +=== +* Locations: +    + styles/prosilver/template/forumlist_body.html +    + styles/subsilver2/template/forumlist_body.html +* Since: 3.1.11-RC1 +* Purpose: Add content at the start of subforum link item. +  forumlist_body_subforums_after  ===  * Locations: diff --git a/phpBB/styles/prosilver/template/forumlist_body.html b/phpBB/styles/prosilver/template/forumlist_body.html index f8d6e36c8c..a197545b90 100644 --- a/phpBB/styles/prosilver/template/forumlist_body.html +++ b/phpBB/styles/prosilver/template/forumlist_body.html @@ -47,7 +47,7 @@  							<!-- EVENT forumlist_body_subforums_before -->  							<br /><strong>{forumrow.L_SUBFORUM_STR}{L_COLON}</strong>  							<!-- BEGIN subforum --> -								<a href="{forumrow.subforum.U_SUBFORUM}" class="subforum<!-- IF forumrow.subforum.S_UNREAD --> unread<!-- ELSE --> read<!-- ENDIF -->" title="<!-- IF forumrow.subforum.S_UNREAD -->{L_UNREAD_POSTS}<!-- ELSE -->{L_NO_UNREAD_POSTS}<!-- ENDIF -->">{forumrow.subforum.SUBFORUM_NAME}</a><!-- IF not forumrow.subforum.S_LAST_ROW -->{L_COMMA_SEPARATOR}<!-- ENDIF --> +								<!-- EVENT forumlist_body_subforum_link_prepend --><a href="{forumrow.subforum.U_SUBFORUM}" class="subforum<!-- IF forumrow.subforum.S_UNREAD --> unread<!-- ELSE --> read<!-- ENDIF -->" title="<!-- IF forumrow.subforum.S_UNREAD -->{L_UNREAD_POSTS}<!-- ELSE -->{L_NO_UNREAD_POSTS}<!-- ENDIF -->">{forumrow.subforum.SUBFORUM_NAME}</a><!-- IF not forumrow.subforum.S_LAST_ROW -->{L_COMMA_SEPARATOR}<!-- ENDIF --><!-- EVENT forumlist_body_subforum_link_append -->  							<!-- END subforum -->  							<!-- EVENT forumlist_body_subforums_after -->  						<!-- ENDIF --> diff --git a/phpBB/styles/subsilver2/template/forumlist_body.html b/phpBB/styles/subsilver2/template/forumlist_body.html index 6c9b64827a..6b7f884aaa 100644 --- a/phpBB/styles/subsilver2/template/forumlist_body.html +++ b/phpBB/styles/subsilver2/template/forumlist_body.html @@ -56,7 +56,7 @@  					<!-- EVENT forumlist_body_subforums_before -->  					<p class="forumdesc"><strong>{forumrow.L_SUBFORUM_STR}{L_COLON}</strong>  					<!-- BEGIN subforum --> -						<a href="{forumrow.subforum.U_SUBFORUM}" class="subforum<!-- IF forumrow.subforum.S_UNREAD --> unread<!-- ELSE --> read<!-- ENDIF -->" title="<!-- IF forumrow.subforum.S_UNREAD -->{L_UNREAD_POSTS}<!-- ELSE -->{L_NO_UNREAD_POSTS}<!-- ENDIF -->">{forumrow.subforum.SUBFORUM_NAME}</a><!-- IF not forumrow.subforum.S_LAST_ROW -->{L_COMMA_SEPARATOR}<!-- ENDIF --> +						<!-- EVENT forumlist_body_subforum_link_prepend --><a href="{forumrow.subforum.U_SUBFORUM}" class="subforum<!-- IF forumrow.subforum.S_UNREAD --> unread<!-- ELSE --> read<!-- ENDIF -->" title="<!-- IF forumrow.subforum.S_UNREAD -->{L_UNREAD_POSTS}<!-- ELSE -->{L_NO_UNREAD_POSTS}<!-- ENDIF -->">{forumrow.subforum.SUBFORUM_NAME}</a><!-- IF not forumrow.subforum.S_LAST_ROW -->{L_COMMA_SEPARATOR}<!-- ENDIF --><!-- EVENT forumlist_body_subforum_link_append -->  					<!-- END subforum -->  					</p>  					<!-- EVENT forumlist_body_subforums_after --> | 
