forked from rolex9799/vipdent_ver2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
68 lines (51 loc) · 1.75 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
include_once('./partials/page.php');
$pgname = isset($_GET['pg']) ? trim(strip_tags($_GET['pg'])) : 'index';
$title = $pgdata[$pgname]['title'];
$desc = $pgdata[$pgname]['description'];
$key = $pgdata[$pgname]['keywords'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="<?php echo $desc; ?>">
<meta name="keywords" content="<?php echo $key; ?>">
<meta name="format-detection" content="telephone=no">
<style>
<?php include './style/style.css'; ?><?php include './style/navbar.css'; ?><?php include './style/navbar-bottom.css'; ?><?php include './style/forma.css'; ?><?php include './style/contacts.css'; ?><?php include './style/prices.css'; ?><?php include './style/services.css'; ?>
</style>
<title>
<?php echo $title; ?>
</title>
</head>
<body>
<?php include('./partials/nav-top.php') ?>
<?php
if ($pgname == 'index') {
include_once('./page/index.php');
}
if ($pgname == 'services') {
include_once('./page/services.php');
} elseif ($pgname == 'prices') {
include_once('./page/prices.php');
} elseif ($pgname == 'booking') {
include_once('./page/booking.php');
} elseif ($pgname == 'contacts') {
include_once('./page/contacts.php');
} elseif ($pgname == 'after-message') {
include_once('./page/after-message.php');
} elseif ($pgname == 'stom') {
include_once('./page/stom.php');
} elseif ($pgname == 'ozon') {
include_once('./page/ozon.php');
} else {
file_get_contents('./page/' . $pgname . '.php');
}
?>
<?php include('./partials/nav-bottom.php') ?>
<!-- <script src="scripts.js"></script> -->
<script src="navbar-top.js"></script>
</body>
</html>