-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.php
46 lines (35 loc) · 932 Bytes
/
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
<?php
namespace Kanboard\Plugin\AddMermaid;
use Kanboard\Core\Plugin\Base;
class Plugin extends Base
{
public function initialize()
{
$this->hook->on('template:layout:js', array('template' => 'plugins/AddMermaid/Assets/js/mermaid.min.js'));
$this->hook->on('template:layout:js', array('template' => 'plugins/AddMermaid/Assets/js/start_mermaid.js'));
}
public function getPluginName()
{
return 'AddMermaid';
}
public function getPluginDescription()
{
return t('Add rendering for mermaid.js diagrams.');
}
public function getPluginAuthor()
{
return 'Eugen Neuber';
}
public function getPluginVersion()
{
return '0.1.0';
}
public function getCompatibleVersion()
{
return '>=1.0.48';
}
public function getPluginHomepage()
{
return 'https://github.com/euneuber/AddMermaid';
}
}