55 lines
1.3 KiB
PHP
55 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace Kanboard\Plugin\Skeleton;
|
|
|
|
use Kanboard\Core\Plugin\Base;
|
|
|
|
class Plugin extends Base
|
|
{
|
|
public function initialize()
|
|
{
|
|
// 1. Render a visible word at the top of every page (the demo output).
|
|
$this->template->hook->attach('template:layout:top', 'skeleton:layout/header');
|
|
|
|
// 2. Load the plugin stylesheet (currently empty -- proves the CSS hook fires).
|
|
$this->hook->on('template:layout:css', array(
|
|
'template' => 'plugins/Skeleton/Asset/css/skeleton.css',
|
|
));
|
|
|
|
// 3. Load the plugin script (currently empty -- proves the JS hook fires).
|
|
$this->hook->on('template:layout:js', array(
|
|
'template' => 'plugins/Skeleton/Asset/js/skeleton.js',
|
|
));
|
|
}
|
|
|
|
public function getPluginName()
|
|
{
|
|
return 'Skeleton';
|
|
}
|
|
|
|
public function getPluginDescription()
|
|
{
|
|
return t('Reusable skeleton/template for building Kanboard plugins.');
|
|
}
|
|
|
|
public function getPluginAuthor()
|
|
{
|
|
return 'Ruben (drbeco)';
|
|
}
|
|
|
|
public function getPluginVersion()
|
|
{
|
|
return '0.1.0';
|
|
}
|
|
|
|
public function getPluginHomepage()
|
|
{
|
|
return 'https://code.beco.cc/beco/kanboard-plugin-skeleton';
|
|
}
|
|
|
|
public function getCompatibleVersion()
|
|
{
|
|
return '>=1.2.0';
|
|
}
|
|
}
|