footer.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * The template for displaying the footer
  4. *
  5. * Contains the closing of the #content div and all content after.
  6. *
  7. * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  8. *
  9. * @package WordPress
  10. * @subpackage Varia
  11. * @since 1.0.0
  12. */
  13. ?>
  14. </div><!-- #content -->
  15. <?php if ( class_exists( 'A8C\FSE\WP_Template' ) ) : // If the FSE plugin is active, use the Header template for content. ?>
  16. <footer class="fse-template-part fse-footer entry-content">
  17. <?php
  18. $template = new A8C\FSE\WP_Template();
  19. $template->output_template_content( A8C\FSE\WP_Template::FOOTER );
  20. else : // Otherwise we'll fallback to the default Varia footer below. ?>
  21. <footer id="colophon" class="site-footer responsive-max-width">
  22. <?php
  23. get_template_part( 'template-parts/footer/footer', 'widgets' );
  24. if ( has_nav_menu( 'menu-2' ) ) : ?>
  25. <nav class="footer-navigation" aria-label="<?php esc_attr_e( 'Footer Menu', 'varia' ); ?>">
  26. <?php
  27. wp_nav_menu(
  28. array(
  29. 'theme_location' => 'menu-2',
  30. 'menu_class' => 'footer-menu',
  31. 'depth' => 1,
  32. )
  33. );
  34. ?>
  35. </nav><!-- .footer-navigation -->
  36. <?php endif;
  37. endif; ?>
  38. <div class="site-info">
  39. <?php $blog_info = get_bloginfo( 'name' ); ?>
  40. <?php if ( ! empty( $blog_info ) ) : ?>
  41. <a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a><span class="comma">,</span>
  42. <?php endif; ?>
  43. <?php /* translators: 1: WordPress link, 2: WordPress. */
  44. printf( '<a href="%1$s" class="imprint">proudly powered by %2$s</a>.',
  45. esc_url( __( 'https://wordpress.org/', 'varia' ) ),
  46. 'WordPress'
  47. ); ?>
  48. <?php if ( function_exists( 'the_privacy_policy_link' ) ) {
  49. the_privacy_policy_link();
  50. } ?>
  51. </div><!-- .site-info -->
  52. </footer><!-- #colophon -->
  53. </div><!-- #page -->
  54. <?php wp_footer(); ?>
  55. </body>
  56. </html>