From e9a9314909befcbb7126ba55046a4484f3724e1b Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 24 Jan 2022 18:36:12 +0100 Subject: [PATCH] Enable the change of the brand logo and colors from the backend (#789). --- application/controllers/Booking.php | 4 + .../language/arabic/translations_lang.php | 9 ++ .../language/bulgarian/translations_lang.php | 9 ++ .../language/catalan/translations_lang.php | 9 ++ .../language/chinese/translations_lang.php | 9 ++ .../language/czech/translations_lang.php | 9 ++ .../language/danish/translations_lang.php | 9 ++ .../language/dutch/translations_lang.php | 9 ++ .../language/english/translations_lang.php | 9 ++ .../language/finnish/translations_lang.php | 9 ++ .../language/french/translations_lang.php | 9 ++ .../language/greek/translations_lang.php | 9 ++ .../language/hebrew/translations_lang.php | 9 ++ .../language/hindi/translations_lang.php | 9 ++ .../language/hungarian/translations_lang.php | 9 ++ .../language/italian/translations_lang.php | 9 ++ .../language/japanese/translations_lang.php | 9 ++ .../luxembourgish/translations_lang.php | 9 ++ .../language/marathi/translations_lang.php | 9 ++ .../language/polish/translations_lang.php | 9 ++ .../portuguese-br/translations_lang.php | 9 ++ .../language/portuguese/translations_lang.php | 9 ++ .../language/romanian/translations_lang.php | 9 ++ .../language/russian/translations_lang.php | 9 ++ .../language/slovak/translations_lang.php | 9 ++ .../language/spanish/translations_lang.php | 9 ++ .../language/swedish/translations_lang.php | 9 ++ .../language/turkish/translations_lang.php | 9 ++ .../032_add_company_logo_setting.php | 41 +++++++++ .../033_add_company_color_setting.php | 41 +++++++++ .../views/components/backend_header.php | 1 + .../views/components/booking_header.php | 9 +- .../views/components/company_color_style.php | 92 +++++++++++++++++++ application/views/layouts/booking_layout.php | 4 +- application/views/pages/general_settings.php | 56 ++++++++++- assets/css/layouts/backend_layout.scss | 9 ++ assets/css/layouts/booking_layout.scss | 16 ++++ assets/js/pages/booking.js | 4 +- assets/js/pages/general_settings.js | 51 ++++++++++ 39 files changed, 563 insertions(+), 8 deletions(-) create mode 100644 application/migrations/032_add_company_logo_setting.php create mode 100644 application/migrations/033_add_company_color_setting.php create mode 100644 application/views/components/company_color_style.php diff --git a/application/controllers/Booking.php b/application/controllers/Booking.php index a819826f..e0547751 100755 --- a/application/controllers/Booking.php +++ b/application/controllers/Booking.php @@ -61,6 +61,8 @@ class Booking extends EA_Controller { } $company_name = setting('company_name'); + $company_logo = setting('company_logo'); + $company_color = setting('company_color'); $disable_booking = setting('disable_booking'); $google_analytics_code = setting('google_analytics_code'); $matomo_analytics_url = setting('matomo_analytics_url'); @@ -220,6 +222,8 @@ class Booking extends EA_Controller { 'available_services' => $available_services, 'available_providers' => $available_providers, 'company_name' => $company_name, + 'company_logo' => $company_logo, + 'company_color' => $company_color, 'date_format' => $date_format, 'time_format' => $time_format, 'first_weekday' => $first_weekday, diff --git a/application/language/arabic/translations_lang.php b/application/language/arabic/translations_lang.php index dd0e0dbc..78ddb41d 100755 --- a/application/language/arabic/translations_lang.php +++ b/application/language/arabic/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/bulgarian/translations_lang.php b/application/language/bulgarian/translations_lang.php index 4fde4476..ee7b35b9 100755 --- a/application/language/bulgarian/translations_lang.php +++ b/application/language/bulgarian/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/catalan/translations_lang.php b/application/language/catalan/translations_lang.php index aa153bc1..484bdf28 100644 --- a/application/language/catalan/translations_lang.php +++ b/application/language/catalan/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/chinese/translations_lang.php b/application/language/chinese/translations_lang.php index d81436b2..f32a6cbd 100755 --- a/application/language/chinese/translations_lang.php +++ b/application/language/chinese/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/czech/translations_lang.php b/application/language/czech/translations_lang.php index 682a102e..240ef2c4 100644 --- a/application/language/czech/translations_lang.php +++ b/application/language/czech/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/danish/translations_lang.php b/application/language/danish/translations_lang.php index 5f6e1940..6df23f9d 100755 --- a/application/language/danish/translations_lang.php +++ b/application/language/danish/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/dutch/translations_lang.php b/application/language/dutch/translations_lang.php index 9feb9e46..a55a0ded 100755 --- a/application/language/dutch/translations_lang.php +++ b/application/language/dutch/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/english/translations_lang.php b/application/language/english/translations_lang.php index 96a88927..0a3489ae 100755 --- a/application/language/english/translations_lang.php +++ b/application/language/english/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/finnish/translations_lang.php b/application/language/finnish/translations_lang.php index f4729adc..999a1b0d 100755 --- a/application/language/finnish/translations_lang.php +++ b/application/language/finnish/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/french/translations_lang.php b/application/language/french/translations_lang.php index 8c6014d3..1a469a7a 100755 --- a/application/language/french/translations_lang.php +++ b/application/language/french/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/greek/translations_lang.php b/application/language/greek/translations_lang.php index 73029b79..54cfcac0 100755 --- a/application/language/greek/translations_lang.php +++ b/application/language/greek/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/hebrew/translations_lang.php b/application/language/hebrew/translations_lang.php index 9b3c7fd5..693e985e 100644 --- a/application/language/hebrew/translations_lang.php +++ b/application/language/hebrew/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/hindi/translations_lang.php b/application/language/hindi/translations_lang.php index e6a342e9..fb991bd7 100755 --- a/application/language/hindi/translations_lang.php +++ b/application/language/hindi/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/hungarian/translations_lang.php b/application/language/hungarian/translations_lang.php index c1d8aeef..28cabb4a 100755 --- a/application/language/hungarian/translations_lang.php +++ b/application/language/hungarian/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/italian/translations_lang.php b/application/language/italian/translations_lang.php index 9d6e1048..205cd484 100755 --- a/application/language/italian/translations_lang.php +++ b/application/language/italian/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/japanese/translations_lang.php b/application/language/japanese/translations_lang.php index 61ce0164..8d182642 100755 --- a/application/language/japanese/translations_lang.php +++ b/application/language/japanese/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/luxembourgish/translations_lang.php b/application/language/luxembourgish/translations_lang.php index bc5a5181..dd2a3b0e 100755 --- a/application/language/luxembourgish/translations_lang.php +++ b/application/language/luxembourgish/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/marathi/translations_lang.php b/application/language/marathi/translations_lang.php index 3eb528fd..ec756085 100644 --- a/application/language/marathi/translations_lang.php +++ b/application/language/marathi/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/polish/translations_lang.php b/application/language/polish/translations_lang.php index f4a1e415..6f235e5e 100755 --- a/application/language/polish/translations_lang.php +++ b/application/language/polish/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/portuguese-br/translations_lang.php b/application/language/portuguese-br/translations_lang.php index 4c4ddbca..9e7165ac 100755 --- a/application/language/portuguese-br/translations_lang.php +++ b/application/language/portuguese-br/translations_lang.php @@ -345,4 +345,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/portuguese/translations_lang.php b/application/language/portuguese/translations_lang.php index cf709f04..d48c61a7 100755 --- a/application/language/portuguese/translations_lang.php +++ b/application/language/portuguese/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/romanian/translations_lang.php b/application/language/romanian/translations_lang.php index 11338f83..80066651 100755 --- a/application/language/romanian/translations_lang.php +++ b/application/language/romanian/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/russian/translations_lang.php b/application/language/russian/translations_lang.php index 0ae9cc76..35d232e5 100755 --- a/application/language/russian/translations_lang.php +++ b/application/language/russian/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/slovak/translations_lang.php b/application/language/slovak/translations_lang.php index b152a7c7..1803e402 100755 --- a/application/language/slovak/translations_lang.php +++ b/application/language/slovak/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/spanish/translations_lang.php b/application/language/spanish/translations_lang.php index 6cca9bf1..70f0dc14 100755 --- a/application/language/spanish/translations_lang.php +++ b/application/language/spanish/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/swedish/translations_lang.php b/application/language/swedish/translations_lang.php index 2919dd88..8f90ca03 100644 --- a/application/language/swedish/translations_lang.php +++ b/application/language/swedish/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/language/turkish/translations_lang.php b/application/language/turkish/translations_lang.php index 283bc9c3..570fa12c 100755 --- a/application/language/turkish/translations_lang.php +++ b/application/language/turkish/translations_lang.php @@ -346,4 +346,13 @@ $lang['disable_booking'] = 'Disable Booking'; $lang['disable_booking_hint'] = 'The booking page will be disabled for as long as this setting is active and customers will not be able to register new appointments.'; $lang['display_message'] = 'Display Message'; $lang['booking_is_disabled'] = 'Booking Is Disabled!'; +$lang['appearance'] = 'Appearance'; +$lang['company_logo'] = 'Company Logo'; +$lang['company_logo_hint'] = 'The company logo will be displayed in many places of the app, including the booking page and the notification emails (image file, max 2MB).'; +$lang['company_color'] = 'Company Color'; +$lang['company_color_hint'] = 'The company color will be applied across the app so that it the app uses your branding.'; +$lang['localization'] = 'Localization'; +$lang['integrations'] = 'Integrations'; +$lang['company'] = 'Company'; +$lang['remove'] = 'Remove'; // End diff --git a/application/migrations/032_add_company_logo_setting.php b/application/migrations/032_add_company_logo_setting.php new file mode 100644 index 00000000..37a6c49a --- /dev/null +++ b/application/migrations/032_add_company_logo_setting.php @@ -0,0 +1,41 @@ + + * @copyright Copyright (c) Alex Tselegidis + * @license https://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link https://easyappointments.org + * @since v1.4.0 + * ---------------------------------------------------------------------------- */ + +class Migration_Add_company_logo_setting extends EA_Migration { + /** + * Upgrade method. + */ + public function up() + { + if ( ! $this->db->get_where('settings', ['name' => 'company_logo'])->num_rows()) + { + $this->db->insert('settings', [ + 'name' => 'company_logo', + 'value' => '' + ]); + } + } + + /** + * Downgrade method. + */ + public function down() + { + if ( ! $this->db->get_where('settings', ['name' => 'company_logo'])->num_rows()) + { + $this->db->delete('settings', [ + 'name' => 'company_logo', + ]); + } + } +} diff --git a/application/migrations/033_add_company_color_setting.php b/application/migrations/033_add_company_color_setting.php new file mode 100644 index 00000000..584e12ba --- /dev/null +++ b/application/migrations/033_add_company_color_setting.php @@ -0,0 +1,41 @@ + + * @copyright Copyright (c) Alex Tselegidis + * @license https://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link https://easyappointments.org + * @since v1.4.0 + * ---------------------------------------------------------------------------- */ + +class Migration_Add_company_color_setting extends EA_Migration { + /** + * Upgrade method. + */ + public function up() + { + if ( ! $this->db->get_where('settings', ['name' => 'company_color'])->num_rows()) + { + $this->db->insert('settings', [ + 'name' => 'company_color', + 'value' => '#ffffff' + ]); + } + } + + /** + * Downgrade method. + */ + public function down() + { + if ( ! $this->db->get_where('settings', ['name' => 'company_color'])->num_rows()) + { + $this->db->delete('settings', [ + 'name' => 'company_color', + ]); + } + } +} diff --git a/application/views/components/backend_header.php b/application/views/components/backend_header.php index 46a67c68..982e4e7f 100755 --- a/application/views/components/backend_header.php +++ b/application/views/components/backend_header.php @@ -3,6 +3,7 @@ * Local variables. * * @var string $active_menu + * @var string $company_logo */ ?> diff --git a/application/views/components/booking_header.php b/application/views/components/booking_header.php index cba592c6..c57cce54 100644 --- a/application/views/components/booking_header.php +++ b/application/views/components/booking_header.php @@ -8,8 +8,13 @@