footer-content.php 1.2 KB

123456789101112131415161718192021222324252627
  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">
  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. endif;
  13. ?>
  14. <div id="footer-info-wrapper">
  15. <?php
  16. 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.
  17. get_template_part( 'template-parts/footer/privacy-policy', '' );
  18. get_template_part( 'template-parts/footer/footer', 'navigation' );
  19. endif;
  20. get_template_part( 'template-parts/footer/footer', 'info' );
  21. ?>
  22. </div>
  23. <?php endif; ?>
  24. </footer><!-- #colophon -->