GEX website at gex.ondrovo.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gex-website/_header.php

40 lines
827 B

7 years ago
<?php
$cli = defined('STDIN');
$suf = $cli ? '.html' : '.php';
list($curpage, ) = explode('.', basename($curpage));
$pages = [
"index" => 'What is GEX',
"features" => 'Features',
"platforms" => 'Platforms',
"downloads" => 'Downloads',
"contact" => 'Get Involved',
];
?><!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>GEX - <?= $pages[$curpage] ?></title>
<link rel="stylesheet" href="css/application.css">
</head>
<body>
<header id="PageHeader">
<div>
<span id="top"></span>
<span class="Title">GEX</span><br>
<span class="Subtitle">...the GPIO header for your PC</span>
</div>
</header>
<section>
<nav>
<?php
foreach ($pages as $page => $label) {
echo "<a href=\"$page$suf\"";
if ($curpage == $page) echo ' class="active"';
echo ">$label</a>";
}
?>
</nav>
</section>