From d02c71a0e241bb925c333153809772d0cef87275 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sun, 16 Oct 2022 18:02:47 +0300 Subject: [PATCH] Add page title to the account pages --- application/controllers/Login.php | 1 + application/controllers/Logout.php | 1 + application/controllers/Recovery.php | 1 + application/views/layouts/account_layout.php | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/application/controllers/Login.php b/application/controllers/Login.php index ccc83b4a..8cb50972 100644 --- a/application/controllers/Login.php +++ b/application/controllers/Login.php @@ -40,6 +40,7 @@ class Login extends EA_Controller { public function index() { html_vars([ + 'page_title' => lang('login'), 'base_url' => config('base_url'), 'dest_url' => session('dest_url', site_url('calendar')), 'company_name' => setting('company_name') diff --git a/application/controllers/Logout.php b/application/controllers/Logout.php index c882ed02..079147b7 100644 --- a/application/controllers/Logout.php +++ b/application/controllers/Logout.php @@ -29,6 +29,7 @@ class Logout extends EA_Controller { $company_name = setting('company_name'); html_vars([ + 'page_title' => lang('log_out'), 'company_name' => $company_name ]); diff --git a/application/controllers/Recovery.php b/application/controllers/Recovery.php index f8ad893a..dbfa53bf 100644 --- a/application/controllers/Recovery.php +++ b/application/controllers/Recovery.php @@ -38,6 +38,7 @@ class Recovery extends EA_Controller { $company_name = setting('company_name'); html_vars([ + 'page_title' => lang('forgot_your_password'), 'dest_url' => session('dest_url', site_url('backend')), 'company_name' => $company_name ]); diff --git a/application/views/layouts/account_layout.php b/application/views/layouts/account_layout.php index 729adf1b..21c1386a 100644 --- a/application/views/layouts/account_layout.php +++ b/application/views/layouts/account_layout.php @@ -8,7 +8,7 @@ - <?= lang('account') ?> | Easy!Appointments + <?= vars('page_title') ?? lang('account') ?> | Easy!Appointments