footer-content.php 939 B

123456789101112131415161718
  1. <footer id="colophon" class="site-footer responsive-max-width">
  2. <?php
  3. if ( class_exists( 'A8C\FSE\WP_Template' ) ) : // If the FSE plugin is active, use the Header template for content.
  4. $template = new A8C\FSE\WP_Template();
  5. $template->output_template_content( A8C\FSE\WP_Template::FOOTER );
  6. else : // Otherwise we'll fallback to the default footer below.
  7. if ( ! ( true === get_theme_mod( 'hide_site_footer', false ) && is_front_page() && is_page() ) ) : // If this is the homepage and the footer elements are set to hide, don't load this part.
  8. get_template_part( 'template-parts/footer/footer', 'widgets' );
  9. get_template_part( 'template-parts/footer/privacy', 'policy' );
  10. get_template_part( 'template-parts/header/social', 'navigation' );
  11. endif;
  12. endif;
  13. ?>
  14. <div class="site-info">
  15. <?php get_template_part( 'template-parts/footer/site', 'name' ); ?>
  16. </div><!-- .site-info -->
  17. </footer><!-- #colophon -->