Skip to content

Commit

Permalink
NEW: Add Compatibility for ApplicationBranding
Browse files Browse the repository at this point in the history
- Add functionality
- Fixes #141
- Relates to aljawaid/ApplicationBranding#4
  • Loading branch information
aljawaid committed Feb 5, 2023
1 parent 30149b5 commit 8200b2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,15 @@ public function initialize()
$customizer['login_note'] = $this->configModel->get('login_note', '');

//Templates and Assets
if (!file_exists('plugins/ApplicationBranding')) {
$this->template->setTemplateOverride('header/title', 'customizer:header/title');
$this->template->setTemplateOverride('layout', 'customizer:layout/layout');
$this->template->setTemplateOverride('auth/index', 'customizer:layout/index');
}

$this->template->hook->attach('template:config:sidebar', 'customizer:config/sidebar');
$this->template->setTemplateOverride('header/title', 'customizer:header/title');
$this->template->setTemplateOverride('header/user_dropdown', 'customizer:header/user_dropdown');
$this->template->setTemplateOverride('board/task_avatar', 'customizer:board/task_avatar');
$this->template->setTemplateOverride('layout', 'customizer:layout/layout');
$this->template->setTemplateOverride('auth/index', 'customizer:layout/index');
$this->hook->on('template:layout:css', array('template' => $plugin_folder.'/Customizer/Assets/rgbaColorPicker/rgbaColorPicker.css'));
$this->hook->on('template:layout:js', array('template' => $plugin_folder.'/Customizer/Assets/rgbaColorPicker/rgbaColorPicker.js'));
$this->hook->on('template:layout:css', array('template' => $plugin_folder.'/Customizer/Assets/css/customizer.css'));
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,12 @@ If you need a Logo and Favicon, try using this simple logo generator: https://cr

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

## Theme Plugins that support Customizer
## Theme & Other Plugins that support Customizer
* https://github.com/kenlog/nebula :dash:
* https://github.com/kenlog/Moon :waning_gibbous_moon:
* https://github.com/aljawaid/KanboardCSS :computer:
* https://github.com/kenlog/Essential
* [ApplicationBranding](https://github.com/aljawaid/ApplicationBranding)

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

Expand Down

0 comments on commit 8200b2f

Please sign in to comment.