From 6bfa642339109be08214f2b5a8c5cda82da04f19 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 7 Oct 2015 21:38:14 +0200 Subject: [PATCH] Added the google_analytics_code in the booking page. --- src/application/controllers/appointments.php | 5 +- src/application/views/appointments/book.php | 826 ++++++++++--------- src/application/views/backend/settings.php | 65 +- 3 files changed, 460 insertions(+), 436 deletions(-) diff --git a/src/application/controllers/appointments.php b/src/application/controllers/appointments.php index 9106480f..a9c96cd4 100644 --- a/src/application/controllers/appointments.php +++ b/src/application/controllers/appointments.php @@ -88,6 +88,8 @@ class Appointments extends CI_Controller { $customer = array(); } + $google_analytics_code = $this->settings_model->get_setting('google_analytics_code'); + // Load the book appointment view. $view = array ( 'available_services' => $available_services, @@ -96,7 +98,8 @@ class Appointments extends CI_Controller { 'manage_mode' => $manage_mode, 'appointment_data' => $appointment, 'provider_data' => $provider, - 'customer_data' => $customer + 'customer_data' => $customer, + 'google_analytics_code' => $google_analytics_code ); } catch(Exception $exc) { diff --git a/src/application/views/appointments/book.php b/src/application/views/appointments/book.php index 1bead9ae..fe8b7769 100644 --- a/src/application/views/appointments/book.php +++ b/src/application/views/appointments/book.php @@ -1,407 +1,419 @@ - - - - - - - - <?php echo $this->lang->line('page_title') . ' ' . $company_name; ?> - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - -
-

' . - $this->lang->line('cancel_appointment_hint') . - '

-
-
-
- - - -
-
-
'; - } - ?> - - '; - echo '

' . $this->lang->line('unexpected_issues') . '

'; - foreach($exceptions as $exception) { - echo exceptionToHtml($exception); - } - echo '
'; - } - ?> - -
-
-

lang->line('step_one_title'); ?>

- -
-
- - - -
- -
- - - -
- - -
-
- -
- -
-
- - - - - - - - - - - - -
- - - - - \ No newline at end of file + + + + + + + + <?php echo $this->lang->line('page_title') . ' ' . $company_name; ?> + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + +
+

' . + $this->lang->line('cancel_appointment_hint') . + '

+
+
+
+ + + +
+
+
'; + } + ?> + + '; + echo '

' . $this->lang->line('unexpected_issues') . '

'; + foreach($exceptions as $exception) { + echo exceptionToHtml($exception); + } + echo '
'; + } + ?> + +
+
+

lang->line('step_one_title'); ?>

+ +
+
+ + + +
+ +
+ + + +
+ + +
+
+ +
+ +
+
+ + + + + + + + + + + + +
+ + + + + + + + + diff --git a/src/application/views/backend/settings.php b/src/application/views/backend/settings.php index 307da957..4796ba74 100644 --- a/src/application/views/backend/settings.php +++ b/src/application/views/backend/settings.php @@ -66,36 +66,45 @@ -
-
- - - - lang->line('company_name_hint'); ?> - +
+
+
+ + + + lang->line('company_name_hint'); ?> + +
+ +
+ + + + lang->line('company_email_hint'); ?> + +
+ +
+ + + + lang->line('company_link_hint'); ?> + +
+ + + + lang->line('go_to_booking_page'); ?> +
- -
- - - - lang->line('company_email_hint'); ?> - +
+
+ + +
- -
- - - - lang->line('company_link_hint'); ?> - -
- - - - - lang->line('go_to_booking_page'); ?> -