]>
Commit | Line | Data |
---|---|---|
6293d371 AD |
1 | <?php |
2 | class Toggle_Sidebar extends Plugin { | |
3 | ||
4 | private $host; | |
5 | ||
6 | function about() { | |
7 | return array(1.0, | |
8 | "Adds a main toolbar button to toggle sidebar", | |
9 | "fox"); | |
10 | } | |
11 | ||
12 | function init($host) { | |
13 | $this->host = $host; | |
14 | ||
15 | $host->add_hook($host::HOOK_MAIN_TOOLBAR_BUTTON, $this); | |
16 | } | |
17 | ||
18 | function hook_main_toolbar_button() { | |
19 | ?> | |
20 | ||
21 | <button dojoType="dijit.form.Button" onclick="collapse_feedlist()"> | |
22 | <img src="plugins/toggle_sidebar/application_side_list.png" | |
23 | title="<?php echo __('Collapse feedlist') ?>"> | |
24 | </button> | |
25 | ||
26 | <?php | |
27 | } | |
28 | ||
29 | function api_version() { | |
30 | return 2; | |
31 | } | |
32 | ||
33 | } | |
34 | ?> |