blob: aa43c48ae29fec1568a9aa91c9f44dc81f4237c6 (
plain)
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
64
65
66
67
68
69
70
|
<?php
namespace Kanboard\Plugin\Bigboard;
use DateTime;
use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;
use Kanboard\Core\Security\Role;
class Plugin extends Base
{
public function initialize()
{
$this->template->hook->attach('template:project-list:menu:before', 'bigboard:Bigboard');
$this->template->setTemplateOverride('board/table_container','bigboard:board/table_container');
$this->template->setTemplateOverride('board/table_tasks','bigboard:board/table_tasks');
$this->template->setTemplateOverride('board/table_private','bigboard:board/table_private');
$this->hook->on('template:layout:js', array('template' => 'plugins/Bigboard/Asset/js/BoardDragAndDrop.js'));
$this->hook->on('template:layout:js', array('template' => 'plugins/Bigboard/Asset/js/BoardPolling.js'));
}
public function getClasses()
{
return array(
'Plugin\Bigboard' => array(
'UserSession'
),
'Plugin\Bigboard\Controller' => array(
'Bigboard',
'BoardAjaxController'
)
);
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
}
public function getPluginName()
{
return 'Bigboard';
}
public function getPluginDescription()
{
return t('Kanboard that displays multiple projects');
}
public function getPluginAuthor()
{
return 'Thomas Stinner';
}
public function getPluginVersion()
{
return '1.0.5';
}
public function getPluginHomepage()
{
return 'https://github.com/stinnux/kanboard-bigboard';
}
public function getCompatibleVersion()
{
return '>=1.2.4';
}
}
|