-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskeleton.php
33 lines (33 loc) · 853 Bytes
/
skeleton.php
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
32
33
<?php
if (file_exists('views/' . $view . '_headers.php'))
include 'views/' . $view . '_headers.php';
?>
<html>
<head>
<?php include 'partials/head.php'; ?>
<?php if (file_exists("css/$view.css")): ?>
<link rel="stylesheet" type="text/css" href="/css/<?= $view ?>.css">
<?php endif; ?>
</head>
<body>
<header>
<?php include 'partials/header.php'; ?>
</header>
<hr>
<nav>
<?php include 'partials/nav.php'; ?>
</nav>
<hr>
<aside>
<?php include 'partials/aside.php'; ?>
</aside>
<section>
<?php include 'views/' . $view . '.php'; ?>
</section>
<hr>
<footer>
<?php include 'partials/footer.php'; ?>
</footer>
<hr>
</body>
</html>