[ticket/11241] Add events & var for extensions to dropdown.

PHPBB3-11241
This commit is contained in:
Cesar G 2013-10-17 19:05:35 -07:00
parent a25b1e6a40
commit 5579dc2412
2 changed files with 17 additions and 1 deletions

View file

@ -399,3 +399,17 @@ viewtopic_topic_title_prepend
+ styles/subsilver2/template/viewtopic_body.html + styles/subsilver2/template/viewtopic_body.html
* Since: 3.1.0-a1 * Since: 3.1.0-a1
* Purpose: Add content directly before the topic title link on the View topic screen * Purpose: Add content directly before the topic title link on the View topic screen
viewtopic_topic_tools_after
===
* Locations:
+ styles/prosilver/template/viewtopic_body.html
* Since: 3.1.0-a3
* Purpose: Add a new topic tool after the rest of the existing ones
viewtopic_topic_tools_before
===
* Locations:
+ styles/prosilver/template/viewtopic_body.html
* Since: 3.1.0-a3
* Purpose: Add a new topic tool before the rest of the existing ones

View file

@ -34,12 +34,13 @@
</div> </div>
<!-- DEFINE $TOPIC_TOOLS_BLOCK --> <!-- DEFINE $TOPIC_TOOLS_BLOCK -->
<!-- IF not S_IS_BOT and (U_WATCH_TOPIC or U_BOOKMARK_TOPIC or U_BUMP_TOPIC or S_HAS_ATTACHMENTS) --> <!-- IF not S_IS_BOT and (U_WATCH_TOPIC or U_BOOKMARK_TOPIC or U_BUMP_TOPIC or S_HAS_ATTACHMENTS or S_DISPLAY_TOPIC_TOOLS) -->
<div class="dropdown-container dropdown-button-control topic-tools"> <div class="dropdown-container dropdown-button-control topic-tools">
<span title="{L_TOPIC_TOOLS}" class="dropdown-trigger dropdown-select dropdown-select-icon tools-icon"><span></span></span> <span title="{L_TOPIC_TOOLS}" class="dropdown-trigger dropdown-select dropdown-select-icon tools-icon"><span></span></span>
<div class="dropdown hidden"> <div class="dropdown hidden">
<div class="pointer"><div class="pointer-inner"></div></div> <div class="pointer"><div class="pointer-inner"></div></div>
<ul class="dropdown-contents"> <ul class="dropdown-contents">
<!-- EVENT viewtopic_topic_tools_before -->
<!-- IF U_WATCH_TOPIC --> <!-- IF U_WATCH_TOPIC -->
<li class="small-icon <!-- IF S_WATCHING_TOPIC -->icon-unsubscribe<!-- ELSE -->icon-subscribe<!-- ENDIF -->"> <li class="small-icon <!-- IF S_WATCHING_TOPIC -->icon-unsubscribe<!-- ELSE -->icon-subscribe<!-- ENDIF -->">
<a href="{U_WATCH_TOPIC}" title="{S_WATCH_TOPIC_TITLE}" data-ajax="toggle_link" data-toggle-class="small-icon <!-- IF not S_WATCHING_TOPIC -->icon-unsubscribe<!-- ELSE -->icon-subscribe<!-- ENDIF -->" data-toggle-text="{S_WATCH_TOPIC_TOGGLE}" data-toggle-url="{U_WATCH_TOPIC_TOGGLE}"> <a href="{U_WATCH_TOPIC}" title="{S_WATCH_TOPIC_TITLE}" data-ajax="toggle_link" data-toggle-class="small-icon <!-- IF not S_WATCHING_TOPIC -->icon-unsubscribe<!-- ELSE -->icon-subscribe<!-- ENDIF -->" data-toggle-text="{S_WATCH_TOPIC_TOGGLE}" data-toggle-url="{U_WATCH_TOPIC_TOGGLE}">
@ -67,6 +68,7 @@
</ul> </ul>
</li> </li>
<!-- ENDIF --> <!-- ENDIF -->
<!-- EVENT viewtopic_topic_tools_after -->
</ul> </ul>
</div> </div>
</div> </div>