|
@@ -16,49 +16,25 @@ class Plugin extends Base {
|
|
$this->hook->on("template:project:sidebar", ["template" => "OMIProjectBranding:project/sidebar"]);
|
|
$this->hook->on("template:project:sidebar", ["template" => "OMIProjectBranding:project/sidebar"]);
|
|
$this->route->addRoute("project/:project_id/branding", "ProjectBrandingController", "show", "OMIProjectBranding");
|
|
$this->route->addRoute("project/:project_id/branding", "ProjectBrandingController", "show", "OMIProjectBranding");
|
|
$this->template->setTemplateOverride("header", "OMIProjectBranding:header");
|
|
$this->template->setTemplateOverride("header", "OMIProjectBranding:header");
|
|
-
|
|
|
|
- $this->container['colorModel'] = $this->container->factory(function ($c) {
|
|
|
|
- return new \Kanboard\Plugin\OMIProjectBranding\Model\CustomColorModel($c);
|
|
|
|
- });
|
|
|
|
|
|
+ $this->container["colorModel"] = $this->container->factory(function ($c) {
|
|
|
|
+ return new \Kanboard\Plugin\OMIProjectBranding\Model\CustomColorModel($c);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function getClasses() {
|
|
|
|
+ return [
|
|
|
|
+ "Plugin\OMIProjectBranding\Controller" => [
|
|
|
|
+ "ProjectBrandingController",
|
|
|
|
+ ],
|
|
|
|
+ "Plugin\OMIProjectBranding\Model" => [
|
|
|
|
+ "ProjectBrandingModel",
|
|
|
|
+ "CustomColorModel",
|
|
|
|
+ ],
|
|
|
|
+ "Plugin\OMIProjectBranding\Helper" => [
|
|
|
|
+ "ProjectBrandingHelper",
|
|
|
|
+ ],
|
|
|
|
+ ];
|
|
}
|
|
}
|
|
-
|
|
|
|
- public function onColorList(Event $event)
|
|
|
|
- {
|
|
|
|
- $colors = $event->get('colors');
|
|
|
|
-
|
|
|
|
- $colors['brand_color_1'] = [
|
|
|
|
- 'name' => 'Client Primary',
|
|
|
|
- 'background' => '#1A2B3C',
|
|
|
|
- 'border' => '#0F1A2B',
|
|
|
|
- ];
|
|
|
|
-
|
|
|
|
- $colors['brand_color_2'] = [
|
|
|
|
- 'name' => 'Client Secondary',
|
|
|
|
- 'background' => '#D9E3F1',
|
|
|
|
- 'border' => '#C4D1E5',
|
|
|
|
- ];
|
|
|
|
-
|
|
|
|
- $event->set('colors', $colors);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public function getClasses()
|
|
|
|
- {
|
|
|
|
- return [
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- 'Plugin\OMIProjectBranding\Controller' => [
|
|
|
|
- 'ProjectBrandingController',
|
|
|
|
- ],
|
|
|
|
-'Plugin\OMIProjectBranding\Model' => [
|
|
|
|
- 'ProjectBrandingModel',
|
|
|
|
- 'CustomColorModel',
|
|
|
|
- ],
|
|
|
|
- 'Plugin\OMIProjectBranding\Helper' => [
|
|
|
|
- 'ProjectBrandingHelper',
|
|
|
|
- ],
|
|
|
|
- ];
|
|
|
|
- }
|
|
|
|
|
|
|
|
public function getPluginName() {
|
|
public function getPluginName() {
|
|
return "OMI Project Branding";
|
|
return "OMI Project Branding";
|
|
@@ -73,7 +49,7 @@ class Plugin extends Base {
|
|
}
|
|
}
|
|
|
|
|
|
public function getPluginVersion() {
|
|
public function getPluginVersion() {
|
|
- return "1.0.3";
|
|
|
|
|
|
+ return "1.0.4";
|
|
}
|
|
}
|
|
|
|
|
|
public function getPluginHomepage() {
|
|
public function getPluginHomepage() {
|