Merge pull request #3540 from RMcGirr83/ticket/13699

[ticket/13699] Add event before and after forum title in viewforum
This commit is contained in:
Marc Alexander 2015-05-14 15:56:05 +02:00
commit d004a1c6b8
3 changed files with 20 additions and 3 deletions

View file

@ -1523,6 +1523,22 @@ viewforum_forum_name_prepend
* Since: 3.1.0-b3 * Since: 3.1.0-b3
* Purpose: Add content directly before the forum name link on the View forum screen * Purpose: Add content directly before the forum name link on the View forum screen
viewforum_forum_title_after
===
* Locations:
+ styles/prosilver/template/viewforum_body.html
+ styles/subsilver2/template/viewforum_body.html
* Since: 3.1.5-RC1
* Purpose: Add content directly after the forum title on the View forum screen
viewforum_forum_title_before
===
* Locations:
+ styles/prosilver/template/viewforum_body.html
+ styles/subsilver2/template/viewforum_body.html
* Since: 3.1.5-RC1
* Purpose: Add content directly before the forum title on the View forum screen
viewtopic_print_head_append viewtopic_print_head_append
=== ===
* Locations: * Locations:

View file

@ -1,7 +1,7 @@
<!-- INCLUDE overall_header.html --> <!-- INCLUDE overall_header.html -->
<!-- EVENT viewforum_forum_title_before -->
<h2 class="forum-title"><!-- EVENT viewforum_forum_name_prepend --><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a><!-- EVENT viewforum_forum_name_append --></h2> <h2 class="forum-title"><!-- EVENT viewforum_forum_name_prepend --><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a><!-- EVENT viewforum_forum_name_append --></h2>
<!-- EVENT viewforum_forum_title_after -->
<!-- IF FORUM_DESC or MODERATORS or U_MCP --> <!-- IF FORUM_DESC or MODERATORS or U_MCP -->
<div> <div>
<!-- NOTE: remove the style="display: none" when you want to have the forum description on the forum body --> <!-- NOTE: remove the style="display: none" when you want to have the forum description on the forum body -->

View file

@ -103,8 +103,9 @@
<!-- IF S_IS_POSTABLE or S_NO_READ_ACCESS --> <!-- IF S_IS_POSTABLE or S_NO_READ_ACCESS -->
<div id="pageheader"> <div id="pageheader">
<!-- EVENT viewforum_forum_title_before -->
<h2><!-- EVENT viewforum_forum_name_prepend --><a class="titles" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><!-- EVENT viewforum_forum_name_append --></h2> <h2><!-- EVENT viewforum_forum_name_prepend --><a class="titles" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><!-- EVENT viewforum_forum_name_append --></h2>
<!-- EVENT viewforum_forum_title_after -->
<!-- IF MODERATORS --> <!-- IF MODERATORS -->
<p class="moderators"><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->{L_COLON} {MODERATORS}</p> <p class="moderators"><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->{L_COLON} {MODERATORS}</p>
<!-- ENDIF --> <!-- ENDIF -->