-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.php
More file actions
52 lines (42 loc) · 1.32 KB
/
Plugin.php
File metadata and controls
52 lines (42 loc) · 1.32 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
<?php
namespace Kanboard\Plugin\PAM;
use Kanboard\Core\Plugin\Base;
class Plugin extends Base
{
public function initialize()
{
$this->hook->on('template:layout:js', array('template' => 'plugins/PAM/Assets/js/pam.js'));
$this->template->setTemplateOverride('activity/user', 'PAM:activity/user');
$this->template->setTemplateOverride('activity/task', 'PAM:activity/task');
$this->template->setTemplateOverride('activity/project', 'PAM:activity/project');
$this->template->setTemplateOverride('project_overview/activity', 'PAM:activity/projectoverview');
}
public function getClasses()
{
return [
'Plugin\PAM\Model' => [
'ProjectActivityModificationModel',
]
];
}
public function getPluginName()
{
return "Project activity modifier";
}
public function getPluginAuthor()
{
return 'Tomas Dittmann';
}
public function getPluginVersion()
{
return '1.0.0';
}
public function getPluginDescription()
{
return 'Add a button in activity streams to hide/show or delete sensitive information';
}
public function getPluginHomepage()
{
return "https://github.com/Chaosmeister/PAM";
}
}