Skip to content

Commit ec1812e

Browse files
committed
FIX: Code Syntax
1 parent 6f3acb2 commit ec1812e

File tree

1 file changed

+45
-49
lines changed

1 file changed

+45
-49
lines changed

Diff for: Plugin.php

+45-49
Original file line numberDiff line numberDiff line change
@@ -6,63 +6,59 @@
66
use Kanboard\Core\Translator;
77

88
class Plugin extends Base
9-
109
{
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');
2115

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'));
3119

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+
}
3224

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+
}
3829

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+
}
4335

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+
}
4840

49-
public function getPluginVersion()
50-
{
51-
return '2.5.0';
52-
}
41+
public function getPluginAuthor()
42+
{
43+
return 'aljawaid';
44+
}
5345

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+
}
6250

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+
}
6359

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+
}
6864
}

0 commit comments

Comments
 (0)