mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 19:05:55 +00:00
toggle_sidebar: switch icon on click
This commit is contained in:
@@ -15,12 +15,16 @@ class Toggle_Sidebar extends Plugin {
|
||||
$host->add_hook($host::HOOK_MAIN_TOOLBAR_BUTTON, $this);
|
||||
}
|
||||
|
||||
function get_js() {
|
||||
return file_get_contents(__DIR__ . "/init.js");
|
||||
}
|
||||
|
||||
function hook_main_toolbar_button() {
|
||||
?>
|
||||
|
||||
<button dojoType="dijit.form.Button" onclick="Feeds.toggle()">
|
||||
<i class="material-icons"
|
||||
title="<?php echo __('Toggle feedlist') ?>">menu</i>
|
||||
<button dojoType="dijit.form.Button" onclick="Plugins.Toggle_Sidebar.toggle(this)">
|
||||
<i class="material-icons toggle-sidebar-label"
|
||||
title="<?php echo __('Toggle sidebar') ?>">chevron_left</i>
|
||||
</button>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user