summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-01 18:06:09 +0400
committerAndrew Dolgov <[email protected]>2013-04-01 18:06:09 +0400
commitceb78471089b69f433bb41646e2c5016a4a19a1d (patch)
treefb6ca7a3e97a6eb7b91c8162a8a1a8ce835fb95d /index.php
parent83dff597ce2c4fa0c303b83c369392c4eb19bafa (diff)
add HOOK_TOOLBAR_BUTTON, HOOK_ACTION_ITEM, HOOK_HEADLINE_TOOLBAR_BUTTON
Diffstat (limited to 'index.php')
-rw-r--r--index.php18
1 files changed, 14 insertions, 4 deletions
diff --git a/index.php b/index.php
index 0b8a957bb..7fb7a7878 100644
--- a/index.php
+++ b/index.php
@@ -199,12 +199,15 @@
<option value="2weeks"><?php echo __('Older than two weeks') ?></option>
</select>
- <button dojoType="dijit.form.Button"
- onclick="viewCurrentFeed()">
- <?php echo __('Refresh') ?></button>
-
</form>
+ <?php
+ global $pluginhost;
+ foreach ($pluginhost->get_hooks($pluginhost::HOOK_TOOLBAR_BUTTON) as $p) {
+ echo $p->hook_toolbar_button();
+ }
+ ?>
+
<div class="actionChooser">
<button id="net-alert" dojoType="dijit.form.Button" style="display : none" disabled="true"
@@ -243,6 +246,13 @@
<!-- <div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcAddLabel')"><?php echo __('Create label...') ?></div>
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcAddFilter')"><?php echo __('Create filter...') ?></div> -->
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcHKhelp')"><?php echo __('Keyboard shortcuts help') ?></div>
+
+ <?php
+ foreach ($pluginhost->get_hooks($pluginhost::HOOK_ACTION_ITEM) as $p) {
+ echo $p->hook_action_item();
+ }
+ ?>
+
<?php if (!$_SESSION["hide_logout"]) { ?>
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcLogout')"><?php echo __('Logout') ?></div>
<?php } ?>