-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
48 lines (44 loc) · 1.75 KB
/
header.php
File metadata and controls
48 lines (44 loc) · 1.75 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
<?php
/** Man, procedural PHP? What a bummer. Feels like the 90s. Oh well, it'll
get the framework treamtment next time I guess **/
// Array of pages
$pages = array (
'Home' => 'index.html',
'Community' => 'community.html',
'About' => 'about.html',
'Get Started' => 'get_started.html',
'Who?' => 'who.html',
'Code' => 'code.html',
);
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Thimbl - Free Open Source Distributed Micro-blogging</title>
<meta name="description" content="Welcome to thimbl, the free, open source, distributed micro-blogging platform. If you're tired of being locked in to one micro-blogging platform, or a single social network. Or you're weary of corporations hi-jacking your updates in the pursuit of money, then thimbl is for you." />
<link rel="image_src" type="image/png" href="presentation.png" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css">
<link rel="stylesheet" type="text/css" href="base.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body id="sub-page">
<header>
<nav>
<div class="wrapper">
<ul>
<?php
foreach($pages AS $name => $url):
echo '<li class="'. ($name == $page ? 'active' : '') .'">';
echo '<a href="'. $url .'">'. $name .'</a>';
echo '</li>';
endforeach;
?>
</ul>
</div>
</nav>
</header>