Apply company color to message layout pages too
This commit is contained in:
parent
7cbce26160
commit
89d22ed7e1
6 changed files with 8 additions and 4 deletions
|
@ -61,6 +61,7 @@ class Booking_cancellation extends EA_Controller {
|
||||||
{
|
{
|
||||||
html_vars([
|
html_vars([
|
||||||
'page_title' => lang('appointment_not_found'),
|
'page_title' => lang('appointment_not_found'),
|
||||||
|
'company_color' => setting('company_color'),
|
||||||
'message_title' => lang('appointment_not_found'),
|
'message_title' => lang('appointment_not_found'),
|
||||||
'message_text' => lang('appointment_does_not_exist_in_db'),
|
'message_text' => lang('appointment_does_not_exist_in_db'),
|
||||||
'message_icon' => base_url('assets/img/error.png'),
|
'message_icon' => base_url('assets/img/error.png'),
|
||||||
|
|
|
@ -56,6 +56,7 @@ class Booking_confirmation extends EA_Controller {
|
||||||
|
|
||||||
html_vars([
|
html_vars([
|
||||||
'page_title' => lang('success'),
|
'page_title' => lang('success'),
|
||||||
|
'company_color' => setting('company_color'),
|
||||||
'google_analytics_code' => setting('google_analytics_code'),
|
'google_analytics_code' => setting('google_analytics_code'),
|
||||||
'matomo_analytics_url' => setting('matomo_analytics_url'),
|
'matomo_analytics_url' => setting('matomo_analytics_url'),
|
||||||
'add_to_google_url' => $add_to_google_url,
|
'add_to_google_url' => $add_to_google_url,
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ($company_color !== DEFAULT_COMPANY_COLOR): ?>
|
<?php if ($company_color && $company_color !== DEFAULT_COMPANY_COLOR): ?>
|
||||||
<style>
|
<style>
|
||||||
/* Generic Overrides */
|
/* Generic Overrides */
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
||||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/layouts/backend_layout.css') ?>">
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/layouts/backend_layout.css') ?>">
|
||||||
|
|
||||||
|
<?php component('company_color_style', ['company_color' => setting('company_color')]) ?>
|
||||||
|
|
||||||
<?php slot('styles') ?>
|
<?php slot('styles') ?>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -19,9 +19,7 @@
|
||||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
||||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/layouts/booking_layout.css') ?>">
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/layouts/booking_layout.css') ?>">
|
||||||
|
|
||||||
<?php if (vars('company_color')): ?>
|
<?php component('company_color_style', ['company_color' => vars('company_color')]) ?>
|
||||||
<?php component('company_color_style', ['company_color' => vars('company_color')]) ?>
|
|
||||||
<?php endif ?>
|
|
||||||
|
|
||||||
<?php slot('styles') ?>
|
<?php slot('styles') ?>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/themes/' . setting('theme', 'default') . '.css') ?>">
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/themes/' . setting('theme', 'default') . '.css') ?>">
|
||||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
||||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/layouts/booking_layout.css') ?>">
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/layouts/booking_layout.css') ?>">
|
||||||
|
|
||||||
|
<?php component('company_color_style', ['company_color' => vars('company_color')]) ?>
|
||||||
|
|
||||||
<?php slot('styles') ?>
|
<?php slot('styles') ?>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue