-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
53 lines (44 loc) · 1.58 KB
/
index.php
File metadata and controls
53 lines (44 loc) · 1.58 KB
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
class page {
public $ext_link;
public $square_image='transparent_square.png';
public $link_text;
public $content_title;
public $content_image;
public $content_page;
public $link_in_sidebar;
}
$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$page_no = parse_url($url, PHP_URL_QUERY);
$pages = array();
include ('content.inc');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Magnetic - Stunning Responsive HTML5/CSS3 Photography Wensite Template</title>
<meta charset="utf-8">
<meta name="author" content="pixelhint.com">
<meta name="description" content="Magnetic is a stunning responsive HTML5/CSS3 photography/portfolio website template"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<?php
include('template_sidebar.inc');
?>
<section class="main clearfix">
<?php
if ($page_no != null && $page_no < count($pages) && $pages[$page_no]->content_page != null) {
require_once('template_subpage.inc');
}
else {
require_once('template_frontpage.inc');
}
?>
</section><!-- end main -->
</body>
</html>