Webseite-Freund-des-Spessarts/theme/friends-spessart/footer.php

45 lines
3.0 KiB
PHP

<?php
/**
* Fusszeile nach verhandeltem Design (docs/Input/Home Seite.pdf):
* CTA-Leiste, Social-Icons, Impressum auf salbeigruenem Grund.
*/
$fds_ctas = array(
array( 'Kontakt', home_url( '/kontakt/' ), 'orange' ),
array( 'Mitglied werden', home_url( '/beitrittsformular/' ), 'forest' ),
array( 'Newsletter', home_url( '/kontakt/' ), 'rose' ),
array( 'Spenden', home_url( '/spenden/' ), 'forest' ),
);
?>
<footer class="site-footer">
<div class="site-footer__inner">
<ul class="footer-ctas">
<?php foreach ( $fds_ctas as $cta ) : ?>
<li><a class="footer-cta footer-cta--<?php echo esc_attr( $cta[2] ); ?>" href="<?php echo esc_url( $cta[1] ); ?>"><?php echo esc_html( $cta[0] ); ?></a></li>
<?php endforeach; ?>
</ul>
<ul class="footer-social">
<li>
<a href="<?php echo esc_url( FDS_FACEBOOK_URL ); ?>" target="_blank" rel="noopener" aria-label="Freunde des Spessarts auf Facebook">
<svg viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M24 12.07C24 5.4 18.63 0 12 0S0 5.4 0 12.07C0 18.1 4.39 23.1 10.13 24v-8.44H7.08v-3.49h3.05V9.41c0-3.02 1.79-4.69 4.53-4.69 1.31 0 2.68.23 2.68.23v2.97h-1.51c-1.49 0-1.96.93-1.96 1.89v2.26h3.33l-.53 3.49h-2.8V24C19.61 23.1 24 18.1 24 12.07Z"/></svg>
</a>
</li>
<?php if ( FDS_INSTAGRAM_URL ) : ?>
<li>
<a href="<?php echo esc_url( FDS_INSTAGRAM_URL ); ?>" target="_blank" rel="noopener" aria-label="Freunde des Spessarts auf Instagram">
<svg viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12 2.16c3.2 0 3.58.01 4.85.07 1.17.05 1.8.25 2.23.41.56.22.96.48 1.38.9.42.42.68.82.9 1.38.16.42.36 1.06.41 2.23.06 1.27.07 1.65.07 4.85s-.01 3.58-.07 4.85c-.05 1.17-.25 1.8-.41 2.23-.22.56-.48.96-.9 1.38-.42.42-.82.68-1.38.9-.42.16-1.06.36-2.23.41-1.27.06-1.65.07-4.85.07s-3.58-.01-4.85-.07c-1.17-.05-1.8-.25-2.23-.41a3.72 3.72 0 0 1-1.38-.9 3.72 3.72 0 0 1-.9-1.38c-.16-.42-.36-1.06-.41-2.23C2.17 15.58 2.16 15.2 2.16 12s.01-3.58.07-4.85c.05-1.17.25-1.8.41-2.23.22-.56.48-.96.9-1.38.42-.42.82-.68 1.38-.9.42-.16 1.06-.36 2.23-.41C8.42 2.17 8.8 2.16 12 2.16ZM12 0C8.74 0 8.33.01 7.05.07 5.78.13 4.9.33 4.14.63c-.79.3-1.46.72-2.13 1.38A5.88 5.88 0 0 0 .63 4.14C.33 4.9.13 5.78.07 7.05.01 8.33 0 8.74 0 12s.01 3.67.07 4.95c.06 1.27.26 2.15.56 2.91.3.79.72 1.46 1.38 2.13a5.88 5.88 0 0 0 2.13 1.38c.76.3 1.64.5 2.91.56C8.33 23.99 8.74 24 12 24s3.67-.01 4.95-.07c1.27-.06 2.15-.26 2.91-.56.79-.3 1.46-.72 2.13-1.38a5.88 5.88 0 0 0 1.38-2.13c.3-.76.5-1.64.56-2.91.06-1.28.07-1.69.07-4.95s-.01-3.67-.07-4.95c-.06-1.27-.26-2.15-.56-2.91a5.88 5.88 0 0 0-1.38-2.13A5.88 5.88 0 0 0 19.86.63C19.1.33 18.22.13 16.95.07 15.67.01 15.26 0 12 0Zm0 5.84a6.16 6.16 0 1 0 0 12.32 6.16 6.16 0 0 0 0-12.32ZM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm6.4-11.85a1.44 1.44 0 1 0 0 2.88 1.44 1.44 0 0 0 0-2.88Z"/></svg>
</a>
</li>
<?php endif; ?>
</ul>
<p class="footer-legal">
<a href="<?php echo esc_url( home_url( '/impressum/' ) ); ?>">Impressum</a>
<a href="<?php echo esc_url( home_url( '/datenschutz/' ) ); ?>">Datenschutz</a>
</p>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>