2020-01-14 22:25:43 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once (__DIR__ . '/../internals/website.php');
|
|
|
|
|
|
|
|
/** @var PageFrameOptions $FRAME_OPTIONS */ global $FRAME_OPTIONS;
|
|
|
|
/** @var URLRoute $ROUTE */ global $ROUTE;
|
|
|
|
/** @var Website $SITE */ global $SITE;
|
|
|
|
?>
|
|
|
|
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2020-01-16 11:34:01 +01:00
|
|
|
<?php
|
|
|
|
if ($FRAME_OPTIONS->title !== '' && $FRAME_OPTIONS->title !== null)
|
|
|
|
echo '<title>' . htmlspecialchars('Mikescher.com - ' . $FRAME_OPTIONS->title) . '</title>';
|
|
|
|
else if ($FRAME_OPTIONS->title === '')
|
|
|
|
echo '<title>Mikescher.com</title>';
|
|
|
|
else
|
|
|
|
echo '';
|
|
|
|
?>
|
2020-01-14 22:25:43 +01:00
|
|
|
<meta name="google-site-verification" content="pZOhmjeJcQbRMNa8xRLam4dwJ2oYwMwISY1lRKreSSs"/>
|
|
|
|
<link rel="icon" type="image/png" href="/data/images/favicon.png"/>
|
2020-01-15 01:46:31 +01:00
|
|
|
<?php
|
2020-01-20 21:13:26 +01:00
|
|
|
if ($FRAME_OPTIONS->canonical_url !== null) echo '<link rel="canonical" href="'.$FRAME_OPTIONS->canonical_url.'"/>' . "\n";
|
|
|
|
if ($FRAME_OPTIONS->alternative_url !== null) echo '<link rel="alternate" href="'.$FRAME_OPTIONS->alternative_url.'"/>' . "\n";
|
|
|
|
|
2020-01-16 11:05:38 +01:00
|
|
|
foreach ($FRAME_OPTIONS->stylesheets as $cssfile) echo '<link rel="stylesheet" href="' . $cssfile . '"/>' . "\n";
|
2020-01-15 01:46:31 +01:00
|
|
|
foreach ($FRAME_OPTIONS->scripts as $scriptfile)
|
|
|
|
{
|
2020-01-16 11:05:38 +01:00
|
|
|
if ($scriptfile[1]) echo '<script src="' . $scriptfile[0] . '" defer></script>' . "\n";
|
|
|
|
else echo '<script src="' . $scriptfile[0] . '" type="text/javascript" ></script>' . "\n";
|
2020-01-15 01:46:31 +01:00
|
|
|
}
|
|
|
|
?>
|
2020-01-14 22:25:43 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="mastercontainer">
|
|
|
|
|
|
|
|
<div id="headerdiv">
|
|
|
|
<div class="logowrapper">
|
|
|
|
<a href="/"><img class="logo" src="/data/images/logo.png" alt="Mikescher.com Logo" /></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tabrow">
|
2020-01-20 21:13:26 +01:00
|
|
|
|
2020-01-14 22:25:43 +01:00
|
|
|
<a class="tab <?php if ($FRAME_OPTIONS->activeHeader === 'home') echo 'tab_active'; ?>" href="/">Home</a>
|
2020-01-20 21:13:26 +01:00
|
|
|
|
2020-01-14 22:25:43 +01:00
|
|
|
<a class="tab <?php if ($FRAME_OPTIONS->activeHeader === 'euler') echo 'tab_active'; ?>" href="/blog/1/Project_Euler_with_Befunge">Project Euler</a>
|
2020-01-20 21:13:26 +01:00
|
|
|
|
2020-01-14 22:25:43 +01:00
|
|
|
<a class="tab <?php if ($FRAME_OPTIONS->activeHeader === 'blog') echo 'tab_active'; ?>" href="/blog">Blog</a>
|
2020-01-20 21:13:26 +01:00
|
|
|
|
2020-01-14 22:25:43 +01:00
|
|
|
<a class="tab <?php if ($FRAME_OPTIONS->activeHeader === 'programs') echo 'tab_active'; ?>" href="/programs">Programs</a>
|
2020-01-20 21:13:26 +01:00
|
|
|
|
|
|
|
<?php if ($FRAME_OPTIONS->activeHeader === 'aoc' || intval(date('m')) === 12): ?>
|
|
|
|
<a class="tab <?php if ($FRAME_OPTIONS->activeHeader === 'aoc') echo 'tab_active'; ?>" href="/adventofcode">Advent of Code</a>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if ($FRAME_OPTIONS->activeHeader === 'books'): ?>
|
|
|
|
<a class="tab <?php if ($FRAME_OPTIONS->activeHeader === 'books') echo 'tab_active'; ?>" href="/books">Books</a>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2020-01-14 22:25:43 +01:00
|
|
|
<a class="tab <?php if ($FRAME_OPTIONS->activeHeader === 'webapps') echo 'tab_active'; ?>" href="/webapps">Tools</a>
|
2020-01-20 21:13:26 +01:00
|
|
|
|
|
|
|
<?php if ($SITE->isLoggedInByCookie()): ?>
|
|
|
|
<a class="tab tab_admin" href="/admin">Admin</a>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2020-01-14 22:25:43 +01:00
|
|
|
<a class="tab <?php if ($FRAME_OPTIONS->activeHeader === 'about') echo 'tab_active'; ?>" href="/about">About</a>
|
2020-01-20 21:13:26 +01:00
|
|
|
|
2020-01-14 22:25:43 +01:00
|
|
|
<div class="tab_split" ></div>
|
2020-01-20 21:13:26 +01:00
|
|
|
|
|
|
|
<?php if ($SITE->isLoggedInByCookie()): ?>
|
|
|
|
<a class="tab tab_logout" href="/logout"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="-8 0 40 32"><path d="m 18,24 0,4 -14,0 0,-24 14,0 0,4 4,0 0,-8 -22,0 0,32 22,0 0,-8 z m -6,-4.003 0,-8 12,0 0,-4 8,8 -8,8 0,-4 z"></path></svg></a>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2020-01-14 22:25:43 +01:00
|
|
|
<a class="tab tab_github" href="https://github.com/Mikescher/">Github</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2020-01-15 01:46:31 +01:00
|
|
|
<div id="content" class="<?php echo join(' ', $FRAME_OPTIONS->contentCSSClasses); ?>">
|
|
|
|
<?php echo $FRAME_OPTIONS->raw; ?>
|
|
|
|
</div>
|
2020-01-14 22:25:43 +01:00
|
|
|
|
|
|
|
<div id="footerdiv" class="content-responsive">
|
|
|
|
<hr />
|
|
|
|
made with vanilla PHP and MySQL<span class="footerspan2">, no frameworks, no bootstrap, no unnecessary* javascript</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|