Apply company color to message layout pages too

This commit is contained in:
Alex Tselegidis 2022-06-02 09:41:30 +02:00
parent 7cbce26160
commit 89d22ed7e1
6 changed files with 8 additions and 4 deletions

View file

@ -61,6 +61,7 @@ class Booking_cancellation extends EA_Controller {
{
html_vars([
'page_title' => lang('appointment_not_found'),
'company_color' => setting('company_color'),
'message_title' => lang('appointment_not_found'),
'message_text' => lang('appointment_does_not_exist_in_db'),
'message_icon' => base_url('assets/img/error.png'),

View file

@ -56,6 +56,7 @@ class Booking_confirmation extends EA_Controller {
html_vars([
'page_title' => lang('success'),
'company_color' => setting('company_color'),
'google_analytics_code' => setting('google_analytics_code'),
'matomo_analytics_url' => setting('matomo_analytics_url'),
'add_to_google_url' => $add_to_google_url,

View file

@ -4,7 +4,7 @@
*/
?>
<?php if ($company_color !== DEFAULT_COMPANY_COLOR): ?>
<?php if ($company_color && $company_color !== DEFAULT_COMPANY_COLOR): ?>
<style>
/* Generic Overrides */

View file

@ -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/layouts/backend_layout.css') ?>">
<?php component('company_color_style', ['company_color' => setting('company_color')]) ?>
<?php slot('styles') ?>
</head>
<body>

View file

@ -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/layouts/booking_layout.css') ?>">
<?php if (vars('company_color')): ?>
<?php component('company_color_style', ['company_color' => vars('company_color')]) ?>
<?php endif ?>
<?php component('company_color_style', ['company_color' => vars('company_color')]) ?>
<?php slot('styles') ?>
</head>

View file

@ -18,6 +18,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/layouts/booking_layout.css') ?>">
<?php component('company_color_style', ['company_color' => vars('company_color')]) ?>
<?php slot('styles') ?>
</head>
<body>