summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-01-07 15:29:17 +0300
committerAndrew Dolgov <[email protected]>2017-01-07 15:29:17 +0300
commit6293d3717c32ca338c8e9d69b9eb70ed423b6ee5 (patch)
tree3fe5c794c86a215a503a1bb46044bea1970adcfa /index.php
parent4822485a745b783563fa3572992c581f0b2d8631 (diff)
add toggle_sidebar plugin, remove obsolete toggle button
add PluginHost::HOOK_MAIN_TOOLBAR_BUTTON
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/index.php b/index.php
index 6b27d9042..220fe27c1 100644
--- a/index.php
+++ b/index.php
@@ -171,17 +171,18 @@
<div id="toolbar" dojoType="dijit.layout.ContentPane" region="top">
<div id="main-toolbar" dojoType="dijit.Toolbar">
+ <?php
+ foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_MAIN_TOOLBAR_BUTTON) as $p) {
+ echo $p->hook_main_toolbar_button();
+ }
+ ?>
+
<form id="headlines-toolbar" action="" onsubmit='return false'>
</form>
<form id="main_toolbar_form" action="" onsubmit='return false'>
- <button dojoType="dijit.form.Button" id="collapse_feeds_btn"
- onclick="collapse_feedlist()"
- title="<?php echo __('Collapse feedlist') ?>" style="display : none">
- &lt;&lt;</button>
-
<select name="view_mode" title="<?php echo __('Show articles') ?>"
onchange="viewModeChanged()"
dojoType="dijit.form.Select">