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
// Wenn kein Titel übergeben wurde, Standard-Titel nutzen
$pageTitle = $pageTitle ?? 'SG 07 St. Leon | Sportgemeinschaft';
// Welcher Menüpunkt ist aktiv?
$activePage = $activePage ?? '';
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= htmlspecialchars($pageTitle) ?></title>
<!-- Das zentrale Stylesheet laden -->
<link rel="stylesheet" href="style.css">
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//sg07-stleon.de/analytics/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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);
})();
</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>
<!-- End Matomo Code -->
</head>
<body>
<header>
<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">
<span>SG 07 St. Leon</span>
</div>
<button class="mobile-menu-btn" id="menuToggle">☰</button>
<nav>
<ul id="navMenu">
<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="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="vereinsheim.php" class="<?= ($activePage == 'vereinsheim') ? 'active' : '' ?>">Vereinsheim</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="freundeskreis.php" class="<?= ($activePage == 'freundeskreis') ? 'active' : '' ?>">Freundeskreis</a></li>
<!-- 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>
</ul>
</nav>
<?php
// Wenn kein Titel übergeben wurde, Standard-Titel nutzen
$pageTitle = $pageTitle ?? 'SG 07 St. Leon | Sportgemeinschaft';
// Welcher Menüpunkt ist aktiv?
$activePage = $activePage ?? '';
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= htmlspecialchars($pageTitle) ?></title>
<!-- Das zentrale Stylesheet laden -->
<link rel="stylesheet" href="style.css">
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//sg07-stleon.de/analytics/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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);
})();
</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>
<!-- End Matomo Code -->
</head>
<body>
<header>
<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">
<span>SG 07 St. Leon</span>
</div>
<button class="mobile-menu-btn" id="menuToggle">☰</button>
<nav>
<ul id="navMenu">
<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="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="vereinsheim.php" class="<?= ($activePage == 'vereinsheim') ? 'active' : '' ?>">Vereinsheim</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="freundeskreis.php" class="<?= ($activePage == 'freundeskreis') ? 'active' : '' ?>">Freundeskreis</a></li>
<!-- 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>
</ul>
</nav>
</header>