-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Plugin.php
63 lines (46 loc) · 1.56 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
55
56
57
58
59
60
61
62
63
<?php
namespace Kanboard\Plugin\Oxygen;
use Kanboard\Core\Plugin\Base;
class Plugin extends Base
{
public function initialize()
{
global $themeOxygenConfig;
if (file_exists('plugins/Oxygen/config.php'))
{
require_once('plugins/Oxygen/config.php');
}
if (isset($themeOxygenConfig['logo']))
{
$this->template->setTemplateOverride('header/title', 'Oxygen:layout/header/title');
}
$this->hook->on("template:layout:css", array("template" => "plugins/Oxygen/Assets/css/oxygen.css"));
$this->hook->on("template:layout:css", array("template" => "plugins/Oxygen/Assets/css/prism.css"));
$this->hook->on('template:layout:js', array('template' => 'plugins/Oxygen/Assets/js/clipboard.min.js'));
$this->hook->on('template:layout:js', array('template' => 'plugins/Oxygen/Assets/js/prism.js'));
}
public function getPluginName()
{
return 'Oxygen';
}
public function getPluginDescription()
{
return t('This theme allows you to add special features like replacing the logo and adds syntax highlighting for Markdown code.');
}
public function getPluginAuthor()
{
return 'Valentino Pesce';
}
public function getPluginVersion()
{
return '1.3.1';
}
public function getCompatibleVersion()
{
return '>=1.2.5';
}
public function getPluginHomepage()
{
return 'https://github.com/kenlog/Oxygen';
}
}