-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
53 lines (41 loc) · 1.56 KB
/
index.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
include('functions.php');
$data = grindXML('data.xml', true);
$site = $settings->site;
$is_responsive = (bool)(string)$site->isResponsive;
$has_fontawesome = (bool)(string)$site->fontawesome;
if(isset($_GET['page']) && file_exists('templates/pages/'.$_GET['page'].'.php')) { $page = $_GET['page']; }
$include = isset($page) ? 'templates/pages/'.$page.'.php' : 'templates/__index.php';
?>
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title><?=$site->title?></title>
<?php if($is_responsive): ?>
<!--<meta name="viewport" content="initial-scale=1, user-scalable=no, maximum-scale=1">-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<?php endif; ?>
<meta name="description" content="<?=$site->desc?>">
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-theme.min.css" />
<?php if($has_fontawesome): ?>
<link rel="stylesheet" href="css/font-awesome.min.css" />
<?php endif; ?>
<link rel="stylesheet" href="css/theme.css" />
<script src="js/jquery.min.js"></script>
<script src="js/hammer.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/moment.js"></script>
<script src="js/bootstrap-datetimepicker.js"></script>
<script src="js/bootstrap-slider.min.js"></script>
<script src="js/main.js"></script>
</head>
<body class="page-<?=isset($page) ? ($page == 'home' ? 'home' : $page . ' not-home') : 'error'?>">
<?php
include('templates/_header.php');
include($include);
include('templates/_footer.php');
?>
</body>
</html>