Skip to content

Commit 8200b2f

Browse files
committed
NEW: Add Compatibility for ApplicationBranding
- Add functionality - Fixes #141 - Relates to aljawaid/ApplicationBranding#4
1 parent 30149b5 commit 8200b2f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Plugin.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,15 @@ public function initialize()
7575
$customizer['login_note'] = $this->configModel->get('login_note', '');
7676

7777
//Templates and Assets
78+
if (!file_exists('plugins/ApplicationBranding')) {
79+
$this->template->setTemplateOverride('header/title', 'customizer:header/title');
80+
$this->template->setTemplateOverride('layout', 'customizer:layout/layout');
81+
$this->template->setTemplateOverride('auth/index', 'customizer:layout/index');
82+
}
83+
7884
$this->template->hook->attach('template:config:sidebar', 'customizer:config/sidebar');
79-
$this->template->setTemplateOverride('header/title', 'customizer:header/title');
8085
$this->template->setTemplateOverride('header/user_dropdown', 'customizer:header/user_dropdown');
8186
$this->template->setTemplateOverride('board/task_avatar', 'customizer:board/task_avatar');
82-
$this->template->setTemplateOverride('layout', 'customizer:layout/layout');
83-
$this->template->setTemplateOverride('auth/index', 'customizer:layout/index');
8487
$this->hook->on('template:layout:css', array('template' => $plugin_folder.'/Customizer/Assets/rgbaColorPicker/rgbaColorPicker.css'));
8588
$this->hook->on('template:layout:js', array('template' => $plugin_folder.'/Customizer/Assets/rgbaColorPicker/rgbaColorPicker.js'));
8689
$this->hook->on('template:layout:css', array('template' => $plugin_folder.'/Customizer/Assets/css/customizer.css'));

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,12 @@ If you need a Logo and Favicon, try using this simple logo generator: https://cr
124124

125125
**Will probably not function fully with other CSS plugins that override templates related to layout or headers**
126126

127-
## Theme Plugins that support Customizer
127+
## Theme & Other Plugins that support Customizer
128128
* https://github.com/kenlog/nebula :dash:
129129
* https://github.com/kenlog/Moon :waning_gibbous_moon:
130130
* https://github.com/aljawaid/KanboardCSS :computer:
131131
* https://github.com/kenlog/Essential
132+
* [ApplicationBranding](https://github.com/aljawaid/ApplicationBranding)
132133

133134
*Make pull request to add other theme support, must come from theme maintainer.*
134135

0 commit comments

Comments
 (0)