footer.php 2.0 KB

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