footer.php 2.0 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. <footer id="colophon" class="site-footer <?php echo class_exists( 'A8C\FSE\WP_Template' ) ? 'entry-content' : 'responsive-max-width'; ?>">
  16. <?php
  17. if ( class_exists( 'A8C\FSE\WP_Template' ) ) : // If the FSE plugin is active, use the Header template for content.
  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. get_template_part( 'template-parts/footer/footer', 'widgets' );
  22. if ( has_nav_menu( 'menu-2' ) ) : ?>
  23. <nav class="footer-navigation" aria-label="<?php esc_attr_e( 'Footer Menu', 'varia' ); ?>">
  24. <?php
  25. wp_nav_menu(
  26. array(
  27. 'theme_location' => 'menu-2',
  28. 'menu_class' => 'footer-menu',
  29. 'depth' => 1,
  30. )
  31. );
  32. ?>
  33. </nav><!-- .footer-navigation -->
  34. <?php endif;
  35. endif;
  36. ?>
  37. <div class="site-info">
  38. <?php $blog_info = get_bloginfo( 'name' ); ?>
  39. <?php if ( ! empty( $blog_info ) ) : ?>
  40. <a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a><span class="comma">,</span>
  41. <?php endif; ?>
  42. <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'varia' ) ); ?>" class="imprint">
  43. <?php
  44. /* translators: %s: WordPress. */
  45. printf( __( 'proudly powered by %s.', 'varia' ), 'WordPress' );
  46. ?>
  47. </a>
  48. <?php if ( function_exists( 'the_privacy_policy_link' ) ) {
  49. the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
  50. } ?>
  51. </div><!-- .site-info -->
  52. </footer><!-- #colophon -->
  53. </div><!-- #page -->
  54. <?php wp_footer(); ?>
  55. </body>
  56. </html>