-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPlugin.php
51 lines (46 loc) · 1.7 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
<?php
namespace Kanboard\Plugin\BoardCustomizer;
use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;
class Plugin extends Base
{
public function initialize()
{
$this->template->hook->attach('template:layout:head', 'boardcustomizer:layout/head');
$this->template->hook->attach('template:project:dropdown', 'boardcustomizer:project/dropdown');
$this->template->hook->attach('template:user:sidebar:information', 'boardcustomizer:user/sidebar');
$this->helper->register('dynamicAvatar', '\Kanboard\Plugin\Boardcustomizer\Helper\DynamicAvatar');
$this->template->setTemplateOverride('header/user_dropdown', 'boardcustomizer:header/user_dropdown');
$this->template->setTemplateOverride('board/task_avatar', 'boardcustomizer:board/task_avatar');
$this->template->setTemplateOverride('board/task_private', 'boardcustomizer:board/task_private');
$this->template->setTemplateOverride('board/task_public', 'boardcustomizer:board/task_public');
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__ . '/Locale');
}
public function getPluginName()
{
return 'Boardcustomizer';
}
public function getPluginDescription()
{
return t('Customize board and card style');
}
public function getPluginAuthor()
{
return 'BlueTeck, Craig Crosby, Jake G';
}
public function getPluginVersion()
{
return '1.1.0';
}
public function getPluginHomepage()
{
return 'https://github.com/BlueTeck/kanboard_plugin_boardcustomizer';
}
public function getCompatibleVersion()
{
return '>=1.2.10';
}
}