-
Notifications
You must be signed in to change notification settings - Fork 3
/
Plugin.php
54 lines (40 loc) · 1.33 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
<?php
namespace Kanboard\Plugin\ExtendedMail;
use Kanboard\Core\Security\Role;
use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;
class Plugin extends Base
{
public function initialize()
{
$this->projectAccessMap->add('ExtendedMail', '*', Role::PROJECT_MANAGER);
$this->route->addRoute('projects/:project_id/ExtendedMail', 'ExtendedMail', 'show', 'ExtendedMail');
$this->template->hook->attach('template:project:sidebar', 'ExtendedMail:project/sidebar');
$this->template->setTemplateOverride('comment_mail/create', 'ExtendedMail:comment_mail/create');
$this->helper->register('MailTemplate', '\Kanboard\Plugin\ExtendedMail\Helper\MailTemplate');
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
}
public function getPluginName()
{
return 'ExtendedMail';
}
public function getPluginDescription()
{
return t('adds functionalit to send comment by mail: custom reply to, templates ... ');
}
public function getPluginAuthor()
{
return 'Rens Sikma';
}
public function getPluginVersion()
{
return '0.8.0';
}
public function getPluginHomepage()
{
return 'https://github.com/kanboard/plugin-ExtendedMail';
}
}