diff options
author | Dzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl> | 2019-12-10 11:34:53 +0100 |
---|---|---|
committer | Dzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl> | 2019-12-10 11:34:53 +0100 |
commit | b8fa0246803dab40cf57d40b45984c53046f2d55 (patch) | |
tree | dc92b167c7542137c385614a1d558e57669a4339 /plugins/Boardcustomizer/Plugin.php | |
parent | 2a43146236fd8fb16f84398d85720ad84aa0a0b1 (diff) |
Plugins directory and local modifications
Diffstat (limited to 'plugins/Boardcustomizer/Plugin.php')
-rw-r--r-- | plugins/Boardcustomizer/Plugin.php | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/plugins/Boardcustomizer/Plugin.php b/plugins/Boardcustomizer/Plugin.php new file mode 100644 index 00000000..0cf8f990 --- /dev/null +++ b/plugins/Boardcustomizer/Plugin.php @@ -0,0 +1,44 @@ +<?php
+
+namespace Kanboard\Plugin\BoardCustomizer;
+
+use Kanboard\Core\Plugin\Base;
+use Kanboard\Core\Translator;
+
+class Plugin extends Base
+{
+ public function initialize()
+ {
+ $this->template->hook->attach('template:layout:head', 'boardcustomizer:layout/head');
+ $this->template->hook->attach('template:project:dropdown', 'boardcustomizer:project/dropdown');
+ $this->template->hook->attach('template:user:sidebar:information', 'boardcustomizer:user/sidebar');
+ }
+ public function onStartup()
+ {
+ Translator::load($this->languageModel->getCurrentLanguage(), __DIR__ . '/Locale');
+ }
+ public function getPluginName()
+ {
+ return 'Boardcustomizer';
+ }
+ public function getPluginDescription()
+ {
+ return t('Customize board and card style');
+ }
+ public function getPluginAuthor()
+ {
+ return 'BlueTeck';
+ }
+ public function getPluginVersion()
+ {
+ return '1.0.1';
+ }
+ public function getPluginHomepage()
+ {
+ return 'https://github.com/BlueTeck/kanboard_plugin_boardcustomizer';
+ }
+ public function getCompatibleVersion()
+ {
+ return '>=1.2.10';
+ }
+}
|