mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/13025] Add button template events
PHPBB3-13025
This commit is contained in:
parent
240ff27707
commit
4193bf5641
5 changed files with 106 additions and 4 deletions
|
@ -1155,6 +1155,70 @@ ucp_friend_list_after
|
||||||
* Since: 3.1.0-a4
|
* Since: 3.1.0-a4
|
||||||
* Purpose: Add optional elements after list of friends in UCP
|
* Purpose: Add optional elements after list of friends in UCP
|
||||||
|
|
||||||
|
viewforum_buttons_bottom_before
|
||||||
|
===
|
||||||
|
* Locations:
|
||||||
|
+ styles/prosilver/template/viewforum_body.html
|
||||||
|
+ styles/subsilver2/template/viewforum_body.html
|
||||||
|
* Since: 3.1.0-rc4
|
||||||
|
* Purpose: Add buttons before New Topic button on the bottom of the topic's list
|
||||||
|
|
||||||
|
viewforum_buttons_bottom_after
|
||||||
|
===
|
||||||
|
* Locations:
|
||||||
|
+ styles/prosilver/template/viewforum_body.html
|
||||||
|
+ styles/subsilver2/template/viewforum_body.html
|
||||||
|
* Since: 3.1.0-rc4
|
||||||
|
* Purpose: Add buttons after New Topic button on the bottom of the topic's list
|
||||||
|
|
||||||
|
viewforum_buttons_top_before
|
||||||
|
===
|
||||||
|
* Locations:
|
||||||
|
+ styles/prosilver/template/viewforum_body.html
|
||||||
|
+ styles/subsilver2/template/viewforum_body.html
|
||||||
|
* Since: 3.1.0-rc4
|
||||||
|
* Purpose: Add buttons before New Topic button on the top of the topic's list
|
||||||
|
|
||||||
|
viewforum_buttons_top_after
|
||||||
|
===
|
||||||
|
* Locations:
|
||||||
|
+ styles/prosilver/template/viewforum_body.html
|
||||||
|
+ styles/subsilver2/template/viewforum_body.html
|
||||||
|
* Since: 3.1.0-rc4
|
||||||
|
* Purpose: Add buttons after New Topic button on the top of the topic's list
|
||||||
|
|
||||||
|
viewtopic_buttons_bottom_before
|
||||||
|
===
|
||||||
|
* Locations:
|
||||||
|
+ styles/prosilver/template/viewtopic_body.html
|
||||||
|
+ styles/subsilver2/template/viewtopic_body.html
|
||||||
|
* Since: 3.1.0-rc4
|
||||||
|
* Purpose: Add buttons before Post Reply button on the bottom of the posts's list
|
||||||
|
|
||||||
|
viewtopic_buttons_bottom_after
|
||||||
|
===
|
||||||
|
* Locations:
|
||||||
|
+ styles/prosilver/template/viewtopic_body.html
|
||||||
|
+ styles/subsilver2/template/viewtopic_body.html
|
||||||
|
* Since: 3.1.0-rc4
|
||||||
|
* Purpose: Add buttons after Post Reply button on the bottom of the posts's list
|
||||||
|
|
||||||
|
viewtopic_buttons_top_before
|
||||||
|
===
|
||||||
|
* Locations:
|
||||||
|
+ styles/prosilver/template/viewtopic_body.html
|
||||||
|
+ styles/subsilver2/template/viewtopic_body.html
|
||||||
|
* Since: 3.1.0-rc4
|
||||||
|
* Purpose: Add buttons before Post Reply button on the top of the posts's list
|
||||||
|
|
||||||
|
viewtopic_buttons_top_after
|
||||||
|
===
|
||||||
|
* Locations:
|
||||||
|
+ styles/prosilver/template/viewtopic_body.html
|
||||||
|
+ styles/subsilver2/template/viewtopic_body.html
|
||||||
|
* Since: 3.1.0-rc4
|
||||||
|
* Purpose: Add buttons after Post Reply button on the top of the posts's list
|
||||||
|
|
||||||
viewforum_forum_name_append
|
viewforum_forum_name_append
|
||||||
===
|
===
|
||||||
* Locations:
|
* Locations:
|
||||||
|
|
|
@ -39,9 +39,13 @@
|
||||||
|
|
||||||
<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
|
<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
<!-- EVENT viewforum_buttons_top_before -->
|
||||||
|
|
||||||
<a href="{U_POST_NEW_TOPIC}" class="button icon-button <!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->post-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->">
|
<a href="{U_POST_NEW_TOPIC}" class="button icon-button <!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->post-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->">
|
||||||
<!-- IF S_IS_LOCKED -->{L_BUTTON_FORUM_LOCKED}<!-- ELSE -->{L_BUTTON_NEW_TOPIC}<!-- ENDIF -->
|
<!-- IF S_IS_LOCKED -->{L_BUTTON_FORUM_LOCKED}<!-- ELSE -->{L_BUTTON_NEW_TOPIC}<!-- ENDIF -->
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<!-- EVENT viewforum_buttons_top_after -->
|
||||||
</div>
|
</div>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
@ -227,9 +231,13 @@
|
||||||
<div class="action-bar bottom">
|
<div class="action-bar bottom">
|
||||||
<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
|
<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
<!-- EVENT viewforum_buttons_bottom_before -->
|
||||||
|
|
||||||
<a href="{U_POST_NEW_TOPIC}" class="button icon-button <!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->post-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->">
|
<a href="{U_POST_NEW_TOPIC}" class="button icon-button <!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->post-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->">
|
||||||
<!-- IF S_IS_LOCKED -->{L_BUTTON_FORUM_LOCKED}<!-- ELSE -->{L_BUTTON_NEW_TOPIC}<!-- ENDIF -->
|
<!-- IF S_IS_LOCKED -->{L_BUTTON_FORUM_LOCKED}<!-- ELSE -->{L_BUTTON_NEW_TOPIC}<!-- ENDIF -->
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<!-- EVENT viewforum_buttons_bottom_after -->
|
||||||
</div>
|
</div>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
|
|
@ -28,11 +28,15 @@
|
||||||
<div class="action-bar top">
|
<div class="action-bar top">
|
||||||
|
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
<!-- EVENT viewtopic_buttons_top_before -->
|
||||||
|
|
||||||
<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
|
<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
|
||||||
<a href="{U_POST_REPLY_TOPIC}" class="button icon-button <!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->">
|
<a href="{U_POST_REPLY_TOPIC}" class="button icon-button <!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->">
|
||||||
<!-- IF S_IS_LOCKED -->{L_BUTTON_TOPIC_LOCKED}<!-- ELSE -->{L_BUTTON_POST_REPLY}<!-- ENDIF -->
|
<!-- IF S_IS_LOCKED -->{L_BUTTON_TOPIC_LOCKED}<!-- ELSE -->{L_BUTTON_POST_REPLY}<!-- ENDIF -->
|
||||||
</a>
|
</a>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
<!-- EVENT viewtopic_buttons_top_after -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- INCLUDE viewtopic_topic_tools.html -->
|
<!-- INCLUDE viewtopic_topic_tools.html -->
|
||||||
|
@ -338,11 +342,15 @@
|
||||||
<!-- EVENT viewtopic_body_topic_actions_before -->
|
<!-- EVENT viewtopic_body_topic_actions_before -->
|
||||||
<div class="action-bar bottom">
|
<div class="action-bar bottom">
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
<!-- EVENT viewtopic_buttons_bottom_before -->
|
||||||
|
|
||||||
<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
|
<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
|
||||||
<a href="{U_POST_REPLY_TOPIC}" class="button icon-button <!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->">
|
<a href="{U_POST_REPLY_TOPIC}" class="button icon-button <!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->">
|
||||||
<!-- IF S_IS_LOCKED -->{L_BUTTON_TOPIC_LOCKED}<!-- ELSE -->{L_BUTTON_POST_REPLY}<!-- ENDIF -->
|
<!-- IF S_IS_LOCKED -->{L_BUTTON_TOPIC_LOCKED}<!-- ELSE -->{L_BUTTON_POST_REPLY}<!-- ENDIF -->
|
||||||
</a>
|
</a>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
<!-- EVENT viewtopic_buttons_bottom_after -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- INCLUDE viewtopic_topic_tools.html -->
|
<!-- INCLUDE viewtopic_topic_tools.html -->
|
||||||
|
|
|
@ -150,9 +150,16 @@
|
||||||
<!-- IF S_DISPLAY_POST_INFO or TOTAL_TOPICS -->
|
<!-- IF S_DISPLAY_POST_INFO or TOTAL_TOPICS -->
|
||||||
<table width="100%" cellspacing="1">
|
<table width="100%" cellspacing="1">
|
||||||
<tr>
|
<tr>
|
||||||
|
<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
|
||||||
|
<!-- EVENT viewforum_buttons_top_before -->
|
||||||
|
|
||||||
<!-- IF S_DISPLAY_POST_INFO and not S_IS_BOT -->
|
<!-- IF S_DISPLAY_POST_INFO and not S_IS_BOT -->
|
||||||
<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle"><a href="{U_POST_NEW_TOPIC}" class="imageset">{POST_IMG}</a></td>
|
<a href="{U_POST_NEW_TOPIC}" class="imageset">{POST_IMG}</a>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
<!-- EVENT viewforum_buttons_top_after -->
|
||||||
|
</td>
|
||||||
|
|
||||||
<!-- IF TOTAL_TOPICS -->
|
<!-- IF TOTAL_TOPICS -->
|
||||||
<td class="nav" valign="middle" nowrap="nowrap"> {PAGE_NUMBER}<br /></td>
|
<td class="nav" valign="middle" nowrap="nowrap"> {PAGE_NUMBER}<br /></td>
|
||||||
<td class="gensmall" nowrap="nowrap"> [ {TOTAL_TOPICS} ] </td>
|
<td class="gensmall" nowrap="nowrap"> [ {TOTAL_TOPICS} ] </td>
|
||||||
|
@ -273,9 +280,16 @@
|
||||||
<!-- IF S_DISPLAY_POST_INFO or TOTAL_TOPICS -->
|
<!-- IF S_DISPLAY_POST_INFO or TOTAL_TOPICS -->
|
||||||
<table width="100%" cellspacing="1">
|
<table width="100%" cellspacing="1">
|
||||||
<tr>
|
<tr>
|
||||||
|
<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
|
||||||
|
<!-- EVENT viewforum_buttons_top_before -->
|
||||||
|
|
||||||
<!-- IF S_DISPLAY_POST_INFO and not S_IS_BOT -->
|
<!-- IF S_DISPLAY_POST_INFO and not S_IS_BOT -->
|
||||||
<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle"><a href="{U_POST_NEW_TOPIC}" class="imageset">{POST_IMG}</a></td>
|
<a href="{U_POST_NEW_TOPIC}" class="imageset">{POST_IMG}</a>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
<!-- EVENT viewforum_buttons_top_after -->
|
||||||
|
</td>
|
||||||
|
|
||||||
<!-- IF TOTAL_TOPICS -->
|
<!-- IF TOTAL_TOPICS -->
|
||||||
<td class="nav" valign="middle" nowrap="nowrap"> {PAGE_NUMBER}<br /></td>
|
<td class="nav" valign="middle" nowrap="nowrap"> {PAGE_NUMBER}<br /></td>
|
||||||
<td class="gensmall" nowrap="nowrap"> [ {TOTAL_TOPICS} ] </td>
|
<td class="gensmall" nowrap="nowrap"> [ {TOTAL_TOPICS} ] </td>
|
||||||
|
|
|
@ -32,10 +32,14 @@
|
||||||
<table width="100%" cellspacing="1">
|
<table width="100%" cellspacing="1">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
|
<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
|
||||||
|
<!-- EVENT viewtopic_buttons_top_before -->
|
||||||
|
|
||||||
<!-- IF not S_IS_BOT -->
|
<!-- IF not S_IS_BOT -->
|
||||||
<!-- IF S_DISPLAY_POST_INFO --><a href="{U_POST_NEW_TOPIC}" class="imageset">{POST_IMG}</a> <!-- ENDIF -->
|
<!-- IF S_DISPLAY_POST_INFO --><a href="{U_POST_NEW_TOPIC}" class="imageset">{POST_IMG}</a> <!-- ENDIF -->
|
||||||
<!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}" class="imageset">{REPLY_IMG}</a><!-- ENDIF -->
|
<!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}" class="imageset">{REPLY_IMG}</a><!-- ENDIF -->
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
<!-- EVENT viewtopic_buttons_top_after -->
|
||||||
</td>
|
</td>
|
||||||
<!-- IF TOTAL_POSTS -->
|
<!-- IF TOTAL_POSTS -->
|
||||||
<td class="nav" valign="middle" nowrap="nowrap"> {PAGE_NUMBER}<br /></td>
|
<td class="nav" valign="middle" nowrap="nowrap"> {PAGE_NUMBER}<br /></td>
|
||||||
|
@ -371,10 +375,14 @@
|
||||||
<table width="100%" cellspacing="1">
|
<table width="100%" cellspacing="1">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
|
<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
|
||||||
|
<!-- EVENT viewtopic_buttons_bottom_before -->
|
||||||
|
|
||||||
<!-- IF not S_IS_BOT -->
|
<!-- IF not S_IS_BOT -->
|
||||||
<!-- IF S_DISPLAY_POST_INFO --><a href="{U_POST_NEW_TOPIC}" class="imageset">{POST_IMG}</a> <!-- ENDIF -->
|
<!-- IF S_DISPLAY_POST_INFO --><a href="{U_POST_NEW_TOPIC}" class="imageset">{POST_IMG}</a> <!-- ENDIF -->
|
||||||
<!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}" class="imageset">{REPLY_IMG}</a><!-- ENDIF -->
|
<!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}" class="imageset">{REPLY_IMG}</a><!-- ENDIF -->
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
<!-- EVENT viewtopic_buttons_bottom_after -->
|
||||||
</td>
|
</td>
|
||||||
<!-- IF TOTAL_POSTS -->
|
<!-- IF TOTAL_POSTS -->
|
||||||
<td class="nav" valign="middle" nowrap="nowrap"> {PAGE_NUMBER}<br /></td>
|
<td class="nav" valign="middle" nowrap="nowrap"> {PAGE_NUMBER}<br /></td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue