footer-content.php 924 B

12345678910111213141516171819
  1. <?php if ( class_exists( 'A8C\FSE\WP_Template' ) ) : // If the FSE plugin is active, use the Header template for content. ?>
  2. <footer class="fse-template-part fse-footer entry-content">
  3. <?php
  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 Varia footer below.
  7. ?>
  8. <footer id="colophon" class="site-footer responsive-max-width">
  9. <?php
  10. 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.
  11. get_template_part( 'template-parts/footer/footer', 'widgets' );
  12. get_template_part( 'template-parts/footer/footer', 'navigation' );
  13. endif;
  14. ?>
  15. <?php endif; ?>
  16. <?php get_template_part( 'template-parts/footer/footer', 'info' ); ?>
  17. </footer><!-- #colophon -->