Files
ShrinkVertically/Plugin.php

54 lines
1.3 KiB
PHP

<?php
namespace Kanboard\Plugin\ShrinkVertically;
use Kanboard\Core\Plugin\Base;
class Plugin extends Base
{
public function initialize()
{
// Inject a small CSS override that reduces the height of vertically
// collapsed board columns so the horizontal scrollbar stays visible.
$this->hook->on('template:layout:css', array(
'template' => 'plugins/ShrinkVertically/Asset/css/shrink-vertically.css',
));
// 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',
));
}
public function getPluginName()
{
return 'ShrinkVertically';
}
public function getPluginDescription()
{
return t('Shrink vertically-collapsed board columns so the horizontal scrollbar stays visible.');
}
public function getPluginAuthor()
{
return 'Ruben (drbeco)';
}
public function getPluginVersion()
{
return '0.1.0';
}
public function getPluginHomepage()
{
return 'https://code.beco.cc/beco/shrink-vertically';
}
public function getCompatibleVersion()
{
return '>=1.2.0';
}
}