-
Notifications
You must be signed in to change notification settings - Fork 15
/
Plugin.php
54 lines (41 loc) · 1.53 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
54
<?php
namespace Kanboard\Plugin\MarkdownPlus;
use Kanboard\Core\Plugin\Base;
class Plugin extends Base
{
public function initialize()
{
//HELPER
$this->container['helper']->register('text', '\Kanboard\Plugin\MarkdownPlus\Helper\MarkdownPlusHelper');
//CSS
$this->hook->on('template:layout:css', array('template' => 'plugins/MarkdownPlus/Assets/css/markdownplus.css'));
//JS
$this->hook->on('template:layout:js', array('template' => 'plugins/MarkdownPlus/Assets/js/jquery.textcomplete.min.js'));
$this->hook->on('template:layout:js', array('template' => 'plugins/MarkdownPlus/Assets/js/markdownplus.js'));
//CONFIG HOOK
$this->template->hook->attach('template:config:application', 'markdownPlus:config/config');
//checkbox handling
$this->hook->on('template:layout:js', array('template' => 'plugins/MarkdownPlus/Assets/js/checkbox.js'));
$this->route->addRoute('MarkdownPlus/Checkbox', 'CheckboxController', 'toggle', 'MarkdownPlus');
}
public function getPluginName()
{
return 'MarkdownPlus';
}
public function getPluginAuthor()
{
return 'Craig Crosby & Tomas Dittmann';
}
public function getPluginVersion()
{
return '1.1.4';
}
public function getPluginDescription()
{
return 'Improved Markdown, with check boxes, emoji shortcode, inline html, etc...';
}
public function getPluginHomepage()
{
return 'https://github.com/creecros/MarkdownPlus';
}
}