-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPlugin.php
54 lines (43 loc) · 1.5 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
namespace Kanboard\Plugin\AgileIndicators;
use Kanboard\Core\Translator;
use Kanboard\Core\Plugin\Base;
class Plugin extends Base
{
public function initialize()
{
// Layout - Template Hook - Override name should start lowercase e.g. pluginNameExampleCamelCase
$this->template->hook->attach('template:dashboard:sidebar', 'agileIndicators:dashboard/sidebar');
$this->template->hook->attach('template:task:sidebar:actions', 'agileIndicators:task/sidebar');
// CSS - Asset Hook - keep filename lowercase
$this->hook->on('template:layout:css', array('template' => 'plugins/AgileIndicators/Assets/css/agile-indicators.css'));
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__ . '/Locale');
}
public function getPluginName()
{
return 'AgileIndicators';
}
public function getPluginDescription()
{
return t('AgileIndicators displays the measurements for Task Priorities and Task Complexities in an easy to use general scale. Task Priorities are scaled between P1 and P5 whilst Task Complexities are scored as 0-50.');
}
public function getPluginAuthor()
{
return 'aljawaid';
}
public function getPluginVersion()
{
return '1.4.0';
}
public function getCompatibleVersion()
{
return '>=1.2.20';
}
public function getPluginHomepage()
{
return 'https://github.com/aljawaid/AgileIndicators';
}
}