-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPlugin.php
40 lines (38 loc) · 1.18 KB
/
Plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
namespace Kanboard\Plugin\Bak2topbotm;
use Kanboard\Core\Plugin\Base;
class Plugin extends Base
{
public function initialize()
{
$this->hook->on('template:layout:css', array('template' => 'plugins/Bak2topbotm/topbotm.css'));
$this->hook->on('template:layout:js', array('template' => 'plugins/Bak2topbotm/topbotm.js'));
$this->template->hook->attach('template:task:details:first-column', 'bak2topbotm:task/gobot');
$this->template->hook->attach('template:task:details:first-column', 'bak2topbotm:task/gotop');
$this->template->hook->attach('template:task:show:bottom', 'bak2topbotm:task/b_section');
}
public function getPluginName()
{
return 'Bak2topbotm';
}
public function getPluginDescription()
{
return t('Back to Top and Bottom Buttons for Task Summary');
}
public function getPluginAuthor()
{
return 'Craig Crosby';
}
public function getPluginVersion()
{
return '0.0.3';
}
public function getPluginHomepage()
{
return 'https://github.com/creecros/Bak2topbotm';
}
public function getCompatibleVersion()
{
return '>=1.0.43';
}
}