Hallo Rolf,
klar doch:
<?php
// n a v . i n c
function beginNav() { ?>
<nav id="page">
<?php }
function endNav() { ?>
</nav>
<?php }
function game() { if (!empty($_GET['subpage'])) { $current = $_GET['subpage']; } ?>
<a class="<?= $current === null || $current === 'game' ? 'current' : ''; ?>" href="game">Spiel</a>
<?php }
function releases() { if (!empty($_GET['subpage'])) { $current = $_GET['subpage']; } ?>
<a class="<?= $current === 'releases' ? 'current' : ''; ?>" href="releases">Releases</a>
<?php }
function merchandise() { if (!empty($_GET['subpage'])) { $current = $_GET['subpage']; } ?>
<a class="<?= $current === 'merchandise' ? 'current' : ''; ?>" href="merchandise">Me<span style="letter-spacing: .115em;">r</span>cha<span style="letter-spacing: .105em;">n</span>dise</a>
<?php }
function guides() { if (!empty($_GET['subpage'])) { $current = $_GET['subpage']; } ?>
<a class="<?= $current === 'guides' ? 'current' : ''; ?>" href="guides"><span style="letter-spacing: .105em;">Gu</span>ides</a>
<?php }
function emulation() { if (!empty($_GET['subpage'])) { $current = $_GET['subpage']; } ?>
<a class="<?= $current === 'emulation' ? 'current' : ''; ?>" href="emulation">Emula<span style="letter-spacing: .115em;">t</span>ion</a>
<?php }
function mods() { if (!empty($_GET['subpage'])) { $current = $_GET['subpage']; } ?>
<a class="<?= $current === 'mods' ? 'current' : ''; ?>" href="mods">Mods</a>
<?php }
function maps() { if (!empty($_GET['subpage'])) { $current = $_GET['subpage']; } ?>
<a class="<?= $current === 'maps' ? 'current' : ''; ?>" href="maps">Maps</a>
<?php }
function savegame() { if (!empty($_GET['subpage'])) { $current = $_GET['subpage']; } ?>
<a class="<?= $current === 'savegame' ? 'current' : ''; ?>" href="savegame">S<span style="letter-spacing: .105em;">a</span>vegame</a>
<?php }