/
main.phtml
31 lines (25 loc) · 828 Bytes
/
main.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang="zxx">
<head>
<?= View::partial('meta/metadata') ?>
<?= View::partial('meta/stylesheets') ?>
<?= View::yield('head') ?>
</head>
<body>
<?= View::yield('body') ?>
<header class="header">
<?= View::partial('page/header') ?>
</header>
<main class="main">
<?= View::yield(Config::get('view.defaultSectionName')) ?>
</main>
<footer class="footer">
<?= View::partial('page/footer') ?>
</footer>
<?= stripos(Config::get('global.env'), 'PROD') === false
? HTML::div('Website is in development mode!', ['class' => 'has-background-warning p-2 has-text-centered'])
: ''
?>
<?= View::partial('meta/scripts') ?>
</body>
</html>