website/public/internal/menu.php
2021-03-24 23:22:09 +01:00

58 lines
2.7 KiB
PHP

<?php
function getMenu($page){
$startpage = $page == "home" ? "class=\"menueSelected\"" : "";
$projects = $page == "projekte" ? "class=\"menueSelected\"" : "";
$status = $page == "status" ? "class=\"menueSelected\"" : "";
return <<<EOF
<div id="burgerMenu">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<div id="mainMenuContainer">
<a href="/" $startpage>Startseite</a>
<div class="dropdown">
<a href="#" $projects>Projekte</a>
<div class="dropdown-content">
<a href="/Projekte/proxdroid.php">Proxdroid - Proxmox Android App</a><br>
<a href="/Projekte/websitecloner.php">Website Cloner</a><br>
<a href="/Projekte/youtubedownloader.php">YouTube Downloader</a><br>
<a href="/Projekte/mqttpush.php">MQTT Push</a><br>
<a href="/Projekte/gclogLink.php">Geocaching Premium Log link Generator</a><br>
<a href="/Projekte/ledtisch1.php">LED Tisch Version 1</a><br>
<a href="/Projekte/ledtisch2.php">LED Tisch Version 2</a><br>
<a href="/Projekte/regensensor.php">Regensensor</a><br>
<a href="/Projekte/blitzortung.php">Blitzortung</a><br>
<a href="/Projekte/insecam.php">Insecam</a><br>
<a href="/Projekte/URLkuerzer1.php">URL K&uuml;rzer V1</a><br>
<a href="/Projekte/URLkuerzer2.php">URL K&uuml;rzer V2</a><br>
<a href="/Projekte/smartmirror.php">Smart Mirror</a><br>
<a href="/Projekte/snowboy.php">Installation von Snowboy</a><br>
</div>
</div>
<div class="dropdown">
<a href="#">Services</a>
<div class="dropdown-content">
<a href="//kuerzer.ml">URL K&uuml;rzer</a><br>
<a href="//privnote.jonasled.de">Privnote</a><br>
<a href="//paste.jonasled.de">Hastebin</a><br>
<a href="//gitlab.jonasled.de">Gitlab</a><br>
<a href="//apt.jonasled.de">APT mirror</a><br>
<a href="//speed.jonasled.de">Speedtest</a><br>
<a href="//matrix.jonasled.de">Matrix</a><br>
<a href="//xmltv.jonasled.de">XMLTV TV Programm</a><br>
</div>
</div>
<div class="dropdown">
<a href="#" $status>Status</a>
<div class="dropdown-content">
<a href="//status.jonasled.de">Server</a><br>
<a href="//discordstatus.jonasled.de">Discord Bots</a><br>
<a href="/ntpstatus.php">NTP Server</a><br>
</div>
</div>
</div>
EOF;
}
?>