footer-content.php 1.1 KB

12345678910111213141516171819202122
  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. get_template_part( 'template-parts/footer/privacy', 'policy' );
  13. get_template_part( 'template-parts/header/social', 'navigation' );
  14. get_template_part( 'template-parts/footer/footer', 'navigation' );
  15. endif;
  16. ?>
  17. <?php endif; ?>
  18. <div class="site-info">
  19. <?php get_template_part( 'template-parts/footer/site', 'name' ); ?>
  20. </div><!-- .site-info -->
  21. </footer><!-- #colophon -->