header.php aktualisiert

This commit is contained in:
2026-07-28 11:39:24 +02:00
parent 59c19141b8
commit c26cc867a6

View File

@@ -1,59 +1,59 @@
<?php <?php
// Wenn kein Titel übergeben wurde, Standard-Titel nutzen // Wenn kein Titel übergeben wurde, Standard-Titel nutzen
$pageTitle = $pageTitle ?? 'SG 07 St. Leon | Sportgemeinschaft'; $pageTitle = $pageTitle ?? 'SG 07 St. Leon | Sportgemeinschaft';
// Welcher Menüpunkt ist aktiv? // Welcher Menüpunkt ist aktiv?
$activePage = $activePage ?? ''; $activePage = $activePage ?? '';
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="de"> <html lang="de">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= htmlspecialchars($pageTitle) ?></title> <title><?= htmlspecialchars($pageTitle) ?></title>
<!-- Das zentrale Stylesheet laden --> <!-- Das zentrale Stylesheet laden -->
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
<!-- Matomo --> <!-- Matomo -->
<script> <script>
var _paq = window._paq = window._paq || []; var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]); _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setDoNotTrack", true]); _paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]); _paq.push(["disableCookies"]);
_paq.push(['trackPageView']); _paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']); _paq.push(['enableLinkTracking']);
(function() { (function() {
var u="//sg07-stleon.de/analytics/"; var u="//sg07-stleon.de/analytics/";
_paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']); _paq.push(['setSiteId', '2']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})(); })();
</script> </script>
<noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="//sg07-stleon.de/analytics/matomo.php?idsite=2&amp;rec=1" style="border:0;" alt="" /></p></noscript> <noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="//sg07-stleon.de/analytics/matomo.php?idsite=2&amp;rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code --> <!-- End Matomo Code -->
</head> </head>
<body> <body>
<header> <header>
<div class="logo"> <div class="logo">
<img src=".\img\SG07-Logo_2.png' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='%23d32f2f'/%3E%3Ctext x='50' y='55' font-size='28' fill='white' text-anchor='middle' font-family='sans-serif' font-weight='bold'%3ESG%3C/text%3E%3C/svg%3E" alt="SG 07 Logo"> <img src="\img\SG07-Logo_2.png' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='%23d32f2f'/%3E%3Ctext x='50' y='55' font-size='28' fill='white' text-anchor='middle' font-family='sans-serif' font-weight='bold'%3ESG%3C/text%3E%3C/svg%3E" alt="SG 07 Logo">
<span>SG 07 St. Leon</span> <span>SG 07 St. Leon</span>
</div> </div>
<button class="mobile-menu-btn" id="menuToggle">☰</button> <button class="mobile-menu-btn" id="menuToggle">☰</button>
<nav> <nav>
<ul id="navMenu"> <ul id="navMenu">
<li><a href="index.php" class="<?= ($activePage == 'home') ? 'active' : '' ?>">Startseite</a></li> <li><a href="index.php" class="<?= ($activePage == 'home') ? 'active' : '' ?>">Startseite</a></li>
<li><a href="aktuelles.php" class="<?= ($activePage == 'aktuelles') ? 'active' : '' ?>">Aktuelles</a></li> <li><a href="aktuelles.php" class="<?= ($activePage == 'aktuelles') ? 'active' : '' ?>">Aktuelles</a></li>
<li><a href="turnen.php" class="<?= ($activePage == 'turnen') ? 'active' : '' ?>">Turnen & Fitness</a></li> <li><a href="turnen.php" class="<?= ($activePage == 'turnen') ? 'active' : '' ?>">Turnen & Fitness</a></li>
<li><a href="kinderturnen.php" class="<?= ($activePage == 'kinderturnen') ? 'active' : '' ?>">Kinderturnen</a></li> <li><a href="kinderturnen.php" class="<?= ($activePage == 'kinderturnen') ? 'active' : '' ?>">Kinderturnen</a></li>
<li><a href="vereinsheim.php" class="<?= ($activePage == 'vereinsheim') ? 'active' : '' ?>">Vereinsheim</a></li> <li><a href="vereinsheim.php" class="<?= ($activePage == 'vereinsheim') ? 'active' : '' ?>">Vereinsheim</a></li>
<li><a href="verein.php" class="<?= ($activePage == 'verein') ? 'active' : '' ?>">Vorstand</a></li> <li><a href="verein.php" class="<?= ($activePage == 'verein') ? 'active' : '' ?>">Vorstand</a></li>
<li><a href="chronik.php" class="<?= ($activePage == 'chronik') ? 'active' : '' ?>">Chronik</a></li> <li><a href="chronik.php" class="<?= ($activePage == 'chronik') ? 'active' : '' ?>">Chronik</a></li>
<li><a href="freundeskreis.php" class="<?= ($activePage == 'freundeskreis') ? 'active' : '' ?>">Freundeskreis</a></li> <li><a href="freundeskreis.php" class="<?= ($activePage == 'freundeskreis') ? 'active' : '' ?>">Freundeskreis</a></li>
<!-- NEU: Prominenter Link zur Mitgliedschaft --> <!-- NEU: Prominenter Link zur Mitgliedschaft -->
<li><a href="mitgliedschaft.php" class="<?= ($activePage == 'mitgliedschaft') ? 'active' : '' ?>" style="color: var(--primary); font-weight: 800;">Mitglied werden</a></li> <li><a href="mitgliedschaft.php" class="<?= ($activePage == 'mitgliedschaft') ? 'active' : '' ?>" style="color: var(--primary); font-weight: 800;">Mitglied werden</a></li>
</ul> </ul>
</nav> </nav>
</header> </header>