2017-01-07 12:29:17 +00:00
|
|
|
<?php
|
|
|
|
class Toggle_Sidebar extends Plugin {
|
|
|
|
|
|
|
|
private $host;
|
|
|
|
|
|
|
|
function about() {
|
|
|
|
return array(1.0,
|
|
|
|
"Adds a main toolbar button to toggle sidebar",
|
|
|
|
"fox");
|
|
|
|
}
|
|
|
|
|
|
|
|
function init($host) {
|
|
|
|
$this->host = $host;
|
|
|
|
|
|
|
|
$host->add_hook($host::HOOK_MAIN_TOOLBAR_BUTTON, $this);
|
|
|
|
}
|
|
|
|
|
|
|
|
function hook_main_toolbar_button() {
|
|
|
|
?>
|
|
|
|
|
2018-12-02 05:57:22 +00:00
|
|
|
<button dojoType="dijit.form.Button" onclick="Feeds.toggle()">
|
2018-12-05 19:27:17 +00:00
|
|
|
<i class="material-icons"
|
|
|
|
title="<?php echo __('Toggle feedlist') ?>">fullscreen</i>
|
2017-01-07 12:29:17 +00:00
|
|
|
</button>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
|
|
|
|
function api_version() {
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
?>
|