From 5119e757f6a2eb2f676b4c4bba14ef1081ff14d4 Mon Sep 17 00:00:00 2001 From: alext Date: Fri, 8 Sep 2017 14:06:37 +0200 Subject: [PATCH] Integrated "lang" helper in view files. --- src/application/config/autoload.php | 2 +- src/application/views/appointments/book.php | 66 +++--- .../views/appointments/book_success.php | 10 +- src/application/views/backend/calendar.php | 92 ++++---- src/application/views/backend/customers.php | 38 ++-- src/application/views/backend/footer.php | 6 +- src/application/views/backend/header.php | 24 +-- src/application/views/backend/services.php | 66 +++--- src/application/views/backend/settings.php | 150 ++++++------- src/application/views/backend/users.php | 198 +++++++++--------- src/application/views/general/error404.php | 12 +- .../views/user/forgot_password.php | 18 +- src/application/views/user/login.php | 18 +- src/application/views/user/logout.php | 10 +- src/application/views/user/no_privileges.php | 8 +- 15 files changed, 359 insertions(+), 359 deletions(-) diff --git a/src/application/config/autoload.php b/src/application/config/autoload.php index a97e139f..07f35f65 100644 --- a/src/application/config/autoload.php +++ b/src/application/config/autoload.php @@ -64,7 +64,7 @@ $autoload['libraries'] = array('database'); | $autoload['helper'] = array('url', 'file'); */ -$autoload['helper'] = array('custom_exceptions', 'url', 'file'); +$autoload['helper'] = array('custom_exceptions', 'url', 'file', 'language'); /* diff --git a/src/application/views/appointments/book.php b/src/application/views/appointments/book.php index f44a375a..261df2e8 100644 --- a/src/application/views/appointments/book.php +++ b/src/application/views/appointments/book.php @@ -5,7 +5,7 @@ - <?php echo $this->lang->line('page_title') . ' ' . $company_name; ?> + <?php echo lang('page_title') . ' ' . $company_name; ?> @@ -28,17 +28,17 @@
-
+
1
-
+
2
-
+
3
-
+
4
@@ -50,7 +50,7 @@

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

@@ -59,7 +59,7 @@ + lang('cancel') . '
'; @@ -69,7 +69,7 @@ '; - echo '

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

'; + echo '

' . lang('unexpected_issues') . '

'; foreach($exceptions as $exception) { echo exceptionToHtml($exception); } @@ -81,12 +81,12 @@
-

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

+

@@ -161,7 +161,7 @@
@@ -172,7 +172,7 @@