Skip to content

Commit

Permalink
Customizer Compatibility
Browse files Browse the repository at this point in the history
- Add functionality
- Fixes #4
- Relates to creecros/Customizer#141
  • Loading branch information
aljawaid committed Feb 5, 2023
1 parent 5bf66b8 commit 4f6bc9b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@ public function initialize()
{
// Template Override
// - Override name should be camelCase e.g. pluginNameExampleCamelCase
$this->template->setTemplateOverride('layout', 'applicationBranding:layout');
$this->template->setTemplateOverride('header/title', 'applicationBranding:header/title');
$this->template->setTemplateOverride('auth/index', 'applicationBranding:auth/index');
if (file_exists('plugins/Customizer')) {
$this->template->setTemplateOverride('layout', 'applicationBranding:layout_customizer');
$this->template->setTemplateOverride('header/title', 'applicationBranding:header/title_customizer');
$this->template->setTemplateOverride('auth/index', 'applicationBranding:auth/index_customizer');
} else {
$this->template->setTemplateOverride('layout', 'applicationBranding:layout');
$this->template->setTemplateOverride('header/title', 'applicationBranding:header/title');
$this->template->setTemplateOverride('auth/index', 'applicationBranding:auth/index');
}

$this->template->setTemplateOverride('password_reset/change', 'applicationBranding:password_reset/change');
$this->template->setTemplateOverride('password_reset/create', 'applicationBranding:password_reset/create');
$this->template->setTemplateOverride('password_reset/email', 'applicationBranding:password_reset/email');
Expand Down

0 comments on commit 4f6bc9b

Please sign in to comment.