-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Plugin.php
66 lines (52 loc) · 1.67 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
64
65
66
<?php
namespace Kanboard\Plugin\Essential;
use Kanboard\Core\Plugin\Base;
class Plugin extends Base
{
public function initialize()
{
global $themeEssentialConfig;
if (file_exists('plugins/Essential/config.php'))
{
require_once('plugins/Essential/config.php');
}
if (file_exists('plugins/Customizer'))
{
$this->template->setTemplateOverride('header/title', 'Essential:layout/header/customizerTitle');
$this->template->setTemplateOverride('layout', 'Essential:layout');
}
elseif (isset($themeEssentialConfig['logo']))
{
$this->template->setTemplateOverride('header/title', 'Essential:layout/header/title');
$this->template->setTemplateOverride('layout', 'Essential:layout');
} else {
$this->template->setTemplateOverride('layout', 'Essential:layout');
}
$this->hook->on("template:layout:css", array("template" => "plugins/Essential/Assets/css/essential.css"));
$this->hook->on('template:layout:js', array('template' => 'plugins/Essential/Assets/js/essential.js'));
}
public function getPluginName()
{
return 'Essential';
}
public function getPluginDescription()
{
return t('Essential theme returns a new style to your kanboard.');
}
public function getPluginAuthor()
{
return 'Valentino Pesce';
}
public function getPluginVersion()
{
return '1.1.3';
}
public function getCompatibleVersion()
{
return '>=1.0.48';
}
public function getPluginHomepage()
{
return 'https://github.com/kenlog/Essential';
}
}