diff options
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';
+ }
+}
|