forked from JustFxDev/kanboard-duedate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.php
53 lines (42 loc) · 1.34 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
<?php
namespace Kanboard\Plugin\DueDate;
use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;
class Plugin extends Base
{
public function initialize()
{
$this->template->hook->attach('template:project-header:view-switcher', 'DueDate:project_header/views');
$this->template->setTemplateOverride('board/table_tasks', 'DueDate:board/table_tasks');
// $this->template->hook->attach('template:project:dropdown', 'DueDate:board/dropdown');
$this->template->hook->attach('template:project:sidebar', 'DueDate:board/sidebar');
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__ . '/Locale');
}
public function getPluginName()
{
return 'DueDate';
}
public function getPluginDescription()
{
return t('Allows sorting all tasks in all columns by due date, date of last modification or how they were placed on the board. With three clicks.');
}
public function getPluginAuthor()
{
return 'JustFxDev (Fx), David Morlitz';
}
public function getPluginVersion()
{
return '1.2.1';
}
public function getPluginHomepage()
{
return 'https://github.com/JustFxDev/kanboard-duedate';
}
public function getCompatibleVersion()
{
return '>=1.0.41';
}
}