Skip to content

Commit

Permalink
FIX: Code Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
aljawaid committed May 4, 2023
1 parent 6f3acb2 commit ec1812e
Showing 1 changed file with 45 additions and 49 deletions.
94 changes: 45 additions & 49 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,63 +6,59 @@
use Kanboard\Core\Translator;

class Plugin extends Base

{

public function initialize()
{
// Template Override
// - Override name should be camelCase e.g. pluginNameExampleCamelCase
$this->template->setTemplateOverride('action/index', 'automaticActionUX:action/index');

// CSS - Asset Hook
// - Keep filename lowercase
$this->hook->on('template:layout:css', array('template' => 'plugins/AutomaticActionUX/Assets/css/automatic-action-ux.css'));
public function initialize()
{
// Template Override
// - Override name should be camelCase e.g. pluginNameExampleCamelCase
$this->template->setTemplateOverride('action/index', 'automaticActionUX:action/index');

// Views - Board - Template Hook
// - Override name should start lowercase e.g. pluginNameExampleCamelCase
$this->template->hook->attach('template:project:dropdown', 'automaticActionUX:project_header/actions');
}

public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
}
// CSS - Asset Hook
// - Keep filename lowercase
$this->hook->on('template:layout:css', array('template' => 'plugins/AutomaticActionUX/Assets/css/automatic-action-ux.css'));

// Views - Board - Template Hook
// - Override name should start lowercase e.g. pluginNameExampleCamelCase
$this->template->hook->attach('template:project:dropdown', 'automaticActionUX:project_header/actions');
}

public function getPluginName()
{
// Plugin Name MUST be identical to namespace for Plugin Directory to detect updated versions
return 'AutomaticActionUX';
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__ . '/Locale');
}

public function getPluginDescription()
{
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.');
}
public function getPluginName()
{
// Plugin Name MUST be identical to namespace for Plugin Directory to detect updated versions
return 'AutomaticActionUX';
}

public function getPluginAuthor()
{
return 'aljawaid';
}
public function getPluginDescription()
{
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.');
}

public function getPluginVersion()
{
return '2.5.0';
}
public function getPluginAuthor()
{
return 'aljawaid';
}

public function getCompatibleVersion()
{
// Examples:
// >=1.0.37
// <1.0.37
// <=1.0.37
return '>=1.2.20';
}
public function getPluginVersion()
{
return '2.5.0';
}

public function getCompatibleVersion()
{
// Examples:
// >=1.0.37
// <1.0.37
// <=1.0.37
return '>=1.2.20';
}

public function getPluginHomepage()
{
return 'https://github.com/aljawaid/AutomaticActionUX';
}
public function getPluginHomepage()
{
return 'https://github.com/aljawaid/AutomaticActionUX';
}
}

0 comments on commit ec1812e

Please sign in to comment.