|
6 | 6 | use Kanboard\Core\Translator;
|
7 | 7 |
|
8 | 8 | class Plugin extends Base
|
9 |
| - |
10 | 9 | {
|
11 |
| - |
12 |
| - public function initialize() |
13 |
| - { |
14 |
| - // Template Override |
15 |
| - // - Override name should be camelCase e.g. pluginNameExampleCamelCase |
16 |
| - $this->template->setTemplateOverride('action/index', 'automaticActionUX:action/index'); |
17 |
| - |
18 |
| - // CSS - Asset Hook |
19 |
| - // - Keep filename lowercase |
20 |
| - $this->hook->on('template:layout:css', array('template' => 'plugins/AutomaticActionUX/Assets/css/automatic-action-ux.css')); |
| 10 | + public function initialize() |
| 11 | + { |
| 12 | + // Template Override |
| 13 | + // - Override name should be camelCase e.g. pluginNameExampleCamelCase |
| 14 | + $this->template->setTemplateOverride('action/index', 'automaticActionUX:action/index'); |
21 | 15 |
|
22 |
| - // Views - Board - Template Hook |
23 |
| - // - Override name should start lowercase e.g. pluginNameExampleCamelCase |
24 |
| - $this->template->hook->attach('template:project:dropdown', 'automaticActionUX:project_header/actions'); |
25 |
| - } |
26 |
| - |
27 |
| - public function onStartup() |
28 |
| - { |
29 |
| - Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale'); |
30 |
| - } |
| 16 | + // CSS - Asset Hook |
| 17 | + // - Keep filename lowercase |
| 18 | + $this->hook->on('template:layout:css', array('template' => 'plugins/AutomaticActionUX/Assets/css/automatic-action-ux.css')); |
31 | 19 |
|
| 20 | + // Views - Board - Template Hook |
| 21 | + // - Override name should start lowercase e.g. pluginNameExampleCamelCase |
| 22 | + $this->template->hook->attach('template:project:dropdown', 'automaticActionUX:project_header/actions'); |
| 23 | + } |
32 | 24 |
|
33 |
| - public function getPluginName() |
34 |
| - { |
35 |
| - // Plugin Name MUST be identical to namespace for Plugin Directory to detect updated versions |
36 |
| - return 'AutomaticActionUX'; |
37 |
| - } |
| 25 | + public function onStartup() |
| 26 | + { |
| 27 | + Translator::load($this->languageModel->getCurrentLanguage(), __DIR__ . '/Locale'); |
| 28 | + } |
38 | 29 |
|
39 |
| - public function getPluginDescription() |
40 |
| - { |
41 |
| - return t('This plugin gives the Automatic Action interface a complete makeover to make it more user friendly. Particularly useful for visual learners and non-English speaking users, this plugin adds a quick glance of Actions on the board avoiding careless drag-happy mistakes.'); |
42 |
| - } |
| 30 | + public function getPluginName() |
| 31 | + { |
| 32 | + // Plugin Name MUST be identical to namespace for Plugin Directory to detect updated versions |
| 33 | + return 'AutomaticActionUX'; |
| 34 | + } |
43 | 35 |
|
44 |
| - public function getPluginAuthor() |
45 |
| - { |
46 |
| - return 'aljawaid'; |
47 |
| - } |
| 36 | + public function getPluginDescription() |
| 37 | + { |
| 38 | + return t('This plugin gives the Automatic Action interface a complete makeover to make it more user friendly. Particularly useful for visual learners and non-English speaking users, this plugin adds a quick glance of Actions on the board avoiding careless drag-happy mistakes.'); |
| 39 | + } |
48 | 40 |
|
49 |
| - public function getPluginVersion() |
50 |
| - { |
51 |
| - return '2.5.0'; |
52 |
| - } |
| 41 | + public function getPluginAuthor() |
| 42 | + { |
| 43 | + return 'aljawaid'; |
| 44 | + } |
53 | 45 |
|
54 |
| - public function getCompatibleVersion() |
55 |
| - { |
56 |
| - // Examples: |
57 |
| - // >=1.0.37 |
58 |
| - // <1.0.37 |
59 |
| - // <=1.0.37 |
60 |
| - return '>=1.2.20'; |
61 |
| - } |
| 46 | + public function getPluginVersion() |
| 47 | + { |
| 48 | + return '2.5.0'; |
| 49 | + } |
62 | 50 |
|
| 51 | + public function getCompatibleVersion() |
| 52 | + { |
| 53 | + // Examples: |
| 54 | + // >=1.0.37 |
| 55 | + // <1.0.37 |
| 56 | + // <=1.0.37 |
| 57 | + return '>=1.2.20'; |
| 58 | + } |
63 | 59 |
|
64 |
| - public function getPluginHomepage() |
65 |
| - { |
66 |
| - return 'https://github.com/aljawaid/AutomaticActionUX'; |
67 |
| - } |
| 60 | + public function getPluginHomepage() |
| 61 | + { |
| 62 | + return 'https://github.com/aljawaid/AutomaticActionUX'; |
| 63 | + } |
68 | 64 | }
|
0 commit comments