-
Notifications
You must be signed in to change notification settings - Fork 8
/
Plugin.php
56 lines (46 loc) · 1.23 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
55
56
<?php
namespace Kanboard\Plugin\Task2pdf;
use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;
class Plugin extends Base
{
public function initialize()
{
$this->template->hook->attach('template:task:sidebar:information', 'task2pdf:print');
$this->template->hook->attach('template:project:dropdown', 'task2pdf:project_header/print_project');
$this->template->hook->attach('template:config:application', 'task2pdf:config/font_toggle');
}
public function getClasses()
{
return array(
'Plugin\Task2pdf\Model' => array(
'PrintModel',
)
);
}
// Translation
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
}
public function getPluginName()
{
return 'Task2pdf';
}
public function getPluginAuthor()
{
return 'Craig Crosby';
}
public function getPluginVersion()
{
return '1.8.0';
}
public function getPluginDescription()
{
return 'Create a printer friendly PDF of a task.';
}
public function getPluginHomepage()
{
return 'https://github.com/creecros/Task2pdf';
}
}