mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-25 16:13:17 +03:00
Added slots to the layouts
This commit is contained in:
parent
ae408c4bfb
commit
79d2460b2a
4 changed files with 24 additions and 25 deletions
|
@ -48,7 +48,8 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="login-frame" class="frame-container">
|
||||
<?php require $page_path ?>
|
||||
|
||||
<?php slot('content') ?>
|
||||
|
||||
<div class="mt-4">
|
||||
<small>
|
||||
|
|
|
@ -46,11 +46,11 @@
|
|||
<script src="<?= asset_url('assets/js/backend.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
|
||||
<?php require __DIR__ . '/backend_header.php' ?>
|
||||
<?php require 'backend_header.php' ?>
|
||||
|
||||
<?php require $page_path ?>
|
||||
<?php slot('content') ?>
|
||||
|
||||
<?php require __DIR__ . '/backend_footer.php' ?>
|
||||
<?php require 'backend_footer.php' ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -47,26 +47,26 @@
|
|||
<div class="row wrapper">
|
||||
<div id="book-appointment-wizard" class="col-12 col-lg-10 col-xl-8">
|
||||
|
||||
<?php require __DIR__ . '/booking_header.php' ?>
|
||||
<?php require 'booking_header.php' ?>
|
||||
|
||||
<?php slot('content') ?>
|
||||
|
||||
<?php require 'booking_footer.php' ?>
|
||||
|
||||
<?php require $page_path ?>
|
||||
|
||||
<?php require __DIR__ . '/booking_footer.php' ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($display_cookie_notice === '1'): ?>
|
||||
<?php require __DIR__ . '/../modals/cookie_notice_modal.php' ?>
|
||||
<?php component('cooking_notice_modal') ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($display_terms_and_conditions === '1'): ?>
|
||||
<?php require __DIR__ . '/../modals/terms_and_conditions_modal.php' ?>
|
||||
<?php component('terms_and_conditions_modal') ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($display_privacy_policy === '1'): ?>
|
||||
<?php require __DIR__ . '/../modals/privacy_policy_modal.php' ?>
|
||||
<?php component('privacy_policy_modal') ?>
|
||||
<?php endif ?>
|
||||
|
||||
<script>
|
||||
|
@ -91,7 +91,6 @@
|
|||
var availableLanguages = <?= json_encode(config('available_languages')) ?>;
|
||||
</script>
|
||||
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/jquery/jquery.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/jquery-ui-dist/jquery-ui.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/cookieconsent/cookieconsent.min.js') ?>"></script>
|
||||
|
@ -101,6 +100,7 @@
|
|||
<script src="<?= asset_url('assets/vendor/datejs/date.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/moment/moment.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/moment-timezone/moment-timezone-with-data.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/frontend_book_api.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/frontend_book.js') ?>"></script>
|
||||
|
||||
|
@ -111,6 +111,7 @@
|
|||
});
|
||||
</script>
|
||||
|
||||
<?php google_analytics_script(); ?>
|
||||
<?php google_analytics_script() ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* @var string $title
|
||||
* @var array $styles
|
||||
* @var string $template
|
||||
* @var array $scripts
|
||||
* @var array $global_variables
|
||||
*/
|
||||
?>
|
||||
|
@ -19,16 +16,17 @@
|
|||
<title><?= $page_title ?> | Easy!Appointments</title>
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.css') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/frontend.css') ?>">
|
||||
<?php foreach ($styles as $style): ?>
|
||||
<link rel="stylesheet" type="text/css" href="<?= $style ?>">
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php slot('meta') ?>
|
||||
|
||||
<?php slot('styles') ?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main" class="container">
|
||||
<div class="row wrapper">
|
||||
<div id="message-frame" class="col-12 border my-auto frame-container">
|
||||
|
||||
<?php require $page_path ?>
|
||||
<?php slot('content') ?>
|
||||
|
||||
<div class="mt-2">
|
||||
<small>
|
||||
|
@ -50,10 +48,9 @@
|
|||
<script src="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
|
||||
<?php foreach ($scripts as $script): ?>
|
||||
<script src="<?= $script ?>"></script>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php google_analytics_script() ?>
|
||||
|
||||
<?php slot('scripts') ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue