Webseite-Freund-des-Spessarts/theme/friends-spessart/section-nav.php

79 lines
3.9 KiB
PHP

<?php
/**
* Template-Teil: linke Spalte aller Innenseiten.
*
* Enthaelt (von oben nach unten):
* - Bereichsnavigation (dasselbe Hauptmenue wie die Kopfzeile, vertikal)
* - CTA-Badges (Kontakt / Spenden / Aktiv werden / Mitglied werden / Facebook);
* der "Kontakt"-Badge fuehrt auf die eigene Seite /kontakt/
*
* Auf Mobil ist nur die Navigations-Liste per CSS ausgeblendet (dort fuehrt das
* Hamburger-Menue im Header); die Badges bleiben sichtbar und rutschen unter den
* Inhalt (siehe .content-layout--nav-left in main.css).
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="content-sidebar content-sidebar--left">
<nav class="section-nav" aria-label="Bereichsnavigation">
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
'container' => false,
'fallback_cb' => false,
) );
?>
</nav>
<div class="cta-badges">
<a class="cta-badge cta-badge--dark" href="<?php echo esc_url( home_url( '/kontakt/' ) ); ?>">
<span class="cta-badge__icon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="5" width="18" height="14" rx="2" stroke="#fff" stroke-width="1.6"/><path d="m4 7 8 6 8-6" stroke="#fff" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
<span class="cta-badge__text">
<strong>Kontakt</strong>
Schreiben Sie uns &uuml;ber das Formular
</span>
</a>
<a class="cta-badge cta-badge--orange" href="<?php echo esc_url( home_url( '/spenden/' ) ); ?>">
<span class="cta-badge__icon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 21s-7.5-4.6-10-9.1C.5 8.4 2 4.5 5.8 4.1 8 3.9 10 5 12 7c2-2 4-3.1 6.2-2.9 3.8.4 5.3 4.3 3.8 7.8C19.5 16.4 12 21 12 21Z" stroke="#fff" stroke-width="1.6" stroke-linejoin="round"/><path d="M12 10.5v4M10.2 12.3h3.6" stroke="#fff" stroke-width="1.6" stroke-linecap="round"/></svg>
</span>
<span class="cta-badge__text">
<strong>Spenden</strong>
Helfen Sie, die Natur im Spessart zu bewahren
</span>
</a>
<a class="cta-badge cta-badge--accent" href="<?php echo esc_url( home_url( '/aktiv-werden/' ) ); ?>">
<span class="cta-badge__icon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 21V10" stroke="#fff" stroke-width="1.6" stroke-linecap="round"/><path d="M12 10c0-4 3-7 7-7 0 4-3 7-7 7Z" stroke="#fff" stroke-width="1.6" stroke-linejoin="round"/><path d="M12 14c0-3-2.5-5-6-5 0 3 2.5 5 6 5Z" stroke="#fff" stroke-width="1.6" stroke-linejoin="round"/></svg>
</span>
<span class="cta-badge__text">
<strong>Aktiv werden</strong>
Gemeinsam k&ouml;nnen wir mehr bewegen
</span>
</a>
<a class="cta-badge cta-badge--primary" href="<?php echo esc_url( home_url( '/beitrittsformular/' ) ); ?>">
<span class="cta-badge__icon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 20c0-3 2.5-5 5-5h1c2.5 0 5 2 5 5" stroke="#fff" stroke-width="1.6" stroke-linecap="round"/><circle cx="9.5" cy="9" r="3" stroke="#fff" stroke-width="1.6"/><path d="M16 4v6M13 7h6" stroke="#fff" stroke-width="1.6" stroke-linecap="round"/></svg>
</span>
<span class="cta-badge__text">
<strong>Mitglied werden</strong>
Treten Sie ein f&uuml;r Mensch und Natur
</span>
</a>
<a class="cta-badge cta-badge--blue" href="https://facebook.com/NP3Spessart" target="_blank" rel="noopener">
<span class="cta-badge__icon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.5h2V5.3c-.3 0-1.5-.1-2.8-.1-2.8 0-4.7 1.7-4.7 4.9v2.6H6.8v3.5h2.7V21h3.6v-4.8h2.7l.4-3.5h-3.1v-2.3c0-1 .3-1.9 1.9-1.9Z" fill="#fff"/></svg>
</span>
<span class="cta-badge__text">
<strong>Facebook</strong>
Folgen Sie uns f&uuml;r aktuelle Neuigkeiten
</span>
</a>
</div>
</div>