menu css and wire

This commit is contained in:
2026-06-28 17:03:17 -03:00
parent 4597c6c61c
commit e6479c9ed9
3 changed files with 26 additions and 11 deletions

View File

@@ -14,11 +14,17 @@ class Plugin extends Base
'template' => 'plugins/ShrinkVertically/Asset/css/shrink-vertically.css',
));
// Inject the configured pixel offset as a CSS variable in the page head.
$this->template->hook->attach('template:layout:head', 'shrinkVertically:layout/variable');
// Append a "+" to the two vertical-collapse menu labels so it is visible
// that the behaviour is modified by this plugin.
$this->hook->on('template:layout:js', array(
'template' => 'plugins/ShrinkVertically/Asset/js/shrink-vertically.js',
));
// Add a "Shrink Vertically" entry to the Settings sidebar.
$this->template->hook->attach('template:config:sidebar', 'shrinkVertically:config/sidebar');
}
public function getPluginName()
@@ -38,7 +44,7 @@ class Plugin extends Base
public function getPluginVersion()
{
return '0.1.0';
return '0.4.0';
}
public function getPluginHomepage()