-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathPlugin.php
More file actions
63 lines (52 loc) · 1.72 KB
/
Plugin.php
File metadata and controls
63 lines (52 loc) · 1.72 KB
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
57
58
59
60
61
62
63
<?php
namespace Kanboard\Plugin\StarredProjects;
use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;
class Plugin extends Base
{
public function initialize()
{
$this->template->hook->attach('template:user:integrations', 'StarredProjects:user/integrations');
$this->template->hook->attach('template:dashboard:show:after-filter-box','StarredProjects:dashboard/starred-projects');
$this->template->hook->attach('template:dashboard:project:before-title','StarredProjects:dashboard/projects');
$this->template->setTemplateOverride('header/board_selector', 'StarredProjects:header/board_selector');
$this->hook->on('template:layout:js', array('template' => 'plugins/StarredProjects/assets/js/starred-projects.js'));
$this->hook->on('template:layout:css', array('template' => 'plugins/StarredProjects/assets/css/starred-projects.css'));
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__ . '/Locale');
}
public function getClasses()
{
return [
'Plugin\StarredProjects\Model' => [
'StarredProjectsModel',
],
];
}
public function getPluginName()
{
return 'StarredProjects';
}
public function getPluginDescription()
{
return t('Starred Projects');
}
public function getPluginAuthor()
{
return 'BibLibre';
}
public function getPluginVersion()
{
return '0.5.0';
}
public function getPluginHomepage()
{
return 'https://github.com/biblibre/kanboard-plugin-StarredProjects';
}
public function getCompatibleVersion()
{
return '>=1.2.14';
}
}