populate nav

This commit is contained in:
DrMaxNix 2024-07-24 18:46:10 +02:00
parent 4233419ab9
commit c1770fb738
3 changed files with 23 additions and 23 deletions

View File

@ -16,7 +16,7 @@
<div class="width-governor">
<div class="branding">
<div class="button-list">
<a href="/" class="button tertiary">
<a href="<?= $dict->get("nav_start_link") ?>" class="button tertiary">
<img src="<?= File::file("./asset/logo-256.png") ?>" alt="Logo" />
<span><?= $dict->get("nav_branding_name") ?></span>
</a>
@ -32,19 +32,14 @@
</div>
<div id="nav-menu" class="menu button-list">
<a href="#" class="button tertiary <?= (Nav::$active === "button_1" ? "active" : "") ?>">
<span class="icon ti ti-circle-off"></span>
<span class="text"><?= $dict->get("nav_button_1") ?></span>
<a href="<?= $dict->get("nav_start_link") ?>" class="button tertiary <?= (Nav::$active === "start" ? "active" : "") ?>">
<span class="icon ti ti-home"></span>
<span class="text"><?= $dict->get("nav_start_button") ?></span>
</a>
<a href="#" class="button tertiary <?= (Nav::$active === "button_2" ? "active" : "") ?>">
<span class="icon ti ti-circle-off"></span>
<span class="text"><?= $dict->get("nav_button_2") ?></span>
</a>
<a href="#" class="button tertiary <?= (Nav::$active === "button_3" ? "active" : "") ?>">
<span class="icon ti ti-circle-off"></span>
<span class="text"><?= $dict->get("nav_button_3") ?></span>
<a href="<?= $dict->get("nav_timeline_link") ?>" class="button tertiary <?= (Nav::$active === "timeline" ? "active" : "") ?>">
<span class="icon ti ti-clock"></span>
<span class="text"><?= $dict->get("nav_timeline_button") ?></span>
</a>
</div>
</div>

View File

@ -51,7 +51,7 @@
<?php
Nav::$active = "button_1";
Nav::$active = "start";
require("./page/nav.php");
?>

View File

@ -19,20 +19,25 @@
"nav_branding_name" => [
"de" => "SBGG.jetzt",
"en" => "SBGG.jetzt"
"en" => "SBGG.jetzt",
],
"nav_button_1" => [
"de" => "Knopf 1",
"en" => "Button 1"
"nav_start_link" => [
"de" => "/",
"en" => "/en",
],
"nav_button_2" => [
"de" => "Knopf 2",
"en" => "Button 2"
"nav_start_button" => [
"de" => "Startseite",
"en" => "Home",
],
"nav_button_3" => [
"de" => "Knopf 3",
"en" => "Button 3"
"nav_timeline_link" => [
"de" => "/timeline",
"en" => "/en/timeline",
],
"nav_timeline_button" => [
"de" => "Timeline",
"en" => "Timeline",
],