forked from namecoin/namecoin.info
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
95 lines (89 loc) · 4.4 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
// active page handling
$page = 'home.php';
if (isset($_GET['p'])) {
if ($_GET['p'] == 'download') $page = 'download.php';
if ($_GET['p'] == 'exchanges') $page = 'exchanges.php';
if ($_GET['p'] == 'team') $page = 'team.php';
if ($_GET['p'] == 'video') $page = 'video.php';
}
$home = $page == 'home.php' ? 'active' : '';
$download = $page == 'download.php' ? 'active' : '';
$exchanges = $page == 'exchanges.php' ? 'active' : '';
$team = $page == 'team.php' ? 'active' : '';
$video = $page == 'video.php' ? 'active' : '';
// tag lines
$header = array('<strong>In information</strong><br />we <strong>trust</strong>.',
'A <strong>trust anchor</strong><br />for the Internet.',
'<strong>Against<br />censorship.</strong>',
'<strong>Supporting<br />free speech.</strong>',
'Decentralized<br /><strong>secure</strong> names.',
'<b>Decentralize</b><br>all the things!',
'<b>Freedom</b><br>of information.'
);
?>
<!DOCTYPE html>
<html lang="en">
<!-- Work in progress, created by Ben <[email protected]>. -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Namecoin</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<!--<link href="css/font-awesome.css" rel="stylesheet">-->
<link href="css/style.css" rel="stylesheet">
<link rel="shortcut icon" href="images/favicon.ico">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="js/jquery-1.11.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/script.js"></script>
</head>
<body>
<header>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/"><img src="images/logo.png" alt="Namecoin" /></a>
</div>
<div class="navbar-collapse collapse" id="navbar-collapse">
<ul class="nav navbar-nav navbar-left">
<li class="<?=$home?>"><a href=".">Home</a></li>
<li class="<?=$video?>"><a href="?p=video">Video</a></li>
<li class="<?=$exchanges?>"><a href="?p=exchanges">Exchanges</a></li>
<li class="<?=$team?>"><a href="?p=team">Team</a></li>
<li class="<?=$download?>"><a href="?p=download"><!--span class="glyphicon glyphicon-download-alt"></span--> Download</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="http://forum.namecoin.info">Forum➚</a></li>
<li><a href="https://wiki.namecoin.info">Wiki➚</a></li>
<li><a href="https://wiki.namecoin.info/index.php?title=FAQ">FAQ➚</a></li>
</ul>
</div>
</div>
</nav>
</header>
<div id="fancy-graphic"><div class="container"><p><?=$header[array_rand($header)]?></p></div></div>
<div id="content"><div class="container"><?php include $page; ?></div></div>
<footer>
<div class="container">
<ul class="list-inline">
<li><a href="https://github.com/namecoin/namecoin"><i class="fa fa-github fa-2x" title="GitHub"></i></a></li>
<li><a href="https://twitter.com/NamecoinDotInfo"><i class="fa fa-twitter fa-2x" title="Twitter"></i></a></li>
<li><a href="https://www.facebook.com/Namecoin.NMC"><i class="fa fa-facebook fa-2x" title="Facebook"></i></a></li>
<li><a href="https://pay.reddit.com/r/namecoin"><i class="fa fa-users fa-2x" title="Reddit"></i></a></li>
</ul>
</div>
</footer>
</body>
</html>