Skip to content

Commit

Permalink
[ADD] Wrapper of content
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahi2 committed Dec 9, 2019
1 parent bf74bb5 commit 19c0aa3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions views/wrapper.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
<?php defined('ALTUMCODE') || die() ?>

<!DOCTYPE html>
<html lang="<?= $language->language_code ?>" class="<?= $language->direction ?>" dir="<?= $language->direction ?>">
<?php require VIEWS_ROUTE . $route . 'shared_includes/head.php' ?>

<body <?= $controller == 'index' ? 'class="index-body"' : null ?>>
<?php require VIEWS_ROUTE . $route . 'shared_includes/menu.php' ?>

<?php if($controller_has_container): ?>
<main class="container">
<?php display_notifications() ?>
<?php endif ?>


<?php require VIEWS_ROUTE . $route . $controller . '.php' ?>


<?php if($controller_has_container): ?>
</main>
<?php endif ?>

<?php require VIEWS_ROUTE . $route . 'shared_includes/footer.php' ?>

<?php perform_event('footer') ?>
</body>
</html>

0 comments on commit 19c0aa3

Please sign in to comment.