Skip to content

Commit

Permalink
Enable the change of the brand logo and colors from the backend (#789).
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Jan 24, 2022
1 parent cd51576 commit e9a9314
Show file tree
Hide file tree
Showing 39 changed files with 563 additions and 8 deletions.
4 changes: 4 additions & 0 deletions application/controllers/Booking.php
Expand Up @@ -61,6 +61,8 @@ public function index()
}

$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');
Expand Down Expand Up @@ -220,6 +222,8 @@ public function index()
'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,
Expand Down
9 changes: 9 additions & 0 deletions application/language/arabic/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/bulgarian/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/catalan/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/chinese/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/czech/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/danish/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/dutch/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/english/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/finnish/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/french/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/greek/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/hebrew/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/hindi/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/hungarian/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/italian/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/japanese/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/luxembourgish/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/marathi/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/polish/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/portuguese-br/translations_lang.php
Expand Up @@ -345,4 +345,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/portuguese/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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
9 changes: 9 additions & 0 deletions application/language/romanian/translations_lang.php
Expand Up @@ -346,4 +346,13 @@
$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

0 comments on commit e9a9314

Please sign in to comment.