Added the language script in the layout templates
This commit is contained in:
parent
530422608a
commit
4f9fbc05e3
5 changed files with 8 additions and 1 deletions
|
@ -4,6 +4,6 @@
|
|||
*/
|
||||
?>
|
||||
<script <?= $attributes ?>>
|
||||
const EALang = <?= json_encode($this->lang->language) ?>
|
||||
window.App.Lang = <?= json_encode($this->lang->language) ?>
|
||||
</script>
|
||||
|
||||
|
|
|
@ -54,6 +54,8 @@
|
|||
<script src="<?= asset_url('assets/js/layouts/account_layout.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/utils/general_functions.js') ?>"></script>
|
||||
|
||||
<?php component('language_script') ?>
|
||||
|
||||
<script>
|
||||
const GlobalVariables = {
|
||||
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||
|
|
|
@ -60,6 +60,8 @@
|
|||
<script src="<?= asset_url('assets/js/layouts/backend_layout.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/utils/general_functions.js') ?>"></script>
|
||||
|
||||
<?php component('language_script') ?>
|
||||
|
||||
<?php slot('scripts') ?>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -105,6 +105,7 @@
|
|||
<script src="<?= asset_url('assets/js/layouts/booking_layout.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/utils/general_functions.js') ?>"></script>
|
||||
|
||||
<?php component('language_script') ?>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
|
|
|
@ -63,6 +63,8 @@
|
|||
<script src="<?= asset_url('assets/js/layouts/message_layout.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/utils/general_functions.js') ?>"></script>
|
||||
|
||||
<?php component('language_script') ?>
|
||||
|
||||
<?php google_analytics_script() ?>
|
||||
|
||||
<?php slot('scripts') ?>
|
||||
|
|
Loading…
Reference in a new issue