footer.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 Varia
  11. * @since 1.0.0
  12. */
  13. ?>
  14. </div><!-- #content -->
  15. <footer id="colophon" class="site-footer responsive-max-width">
  16. <?php
  17. if ( class_exists( 'A8C\FSE\WP_Template' ) ) : // If the FSE plugin is active, use the Header template for content.
  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 Balasana footer below.
  21. get_template_part( 'template-parts/footer/footer', 'widgets' );
  22. if ( has_nav_menu( 'menu-2' ) || has_nav_menu( 'social' ) ) : ?>
  23. <div class="footer-menus">
  24. <?php if ( has_nav_menu( 'menu-2' ) ) : ?>
  25. <nav class="footer-navigation" aria-label="<?php esc_attr_e( 'Footer Menu', 'balasana' ); ?>">
  26. <?php
  27. wp_nav_menu(
  28. array(
  29. 'theme_location' => 'menu-2',
  30. 'menu_class' => 'footer-menu',
  31. 'depth' => 1,
  32. )
  33. );
  34. ?>
  35. </nav><!-- .footer-navigation -->
  36. <?php endif;
  37. if ( has_nav_menu( 'social' ) ) : ?>
  38. <nav class="social-navigation" aria-label="<?php esc_attr_e( 'Social Links Menu', 'balasana' ); ?>">
  39. <?php
  40. wp_nav_menu(
  41. array(
  42. 'theme_location' => 'social',
  43. 'menu_class' => 'social-links-menu',
  44. 'link_before' => '<span class="screen-reader-text">',
  45. 'link_after' => '</span>' . varia_get_icon_svg( 'link' ),
  46. 'depth' => 1,
  47. )
  48. );
  49. ?>
  50. </nav><!-- .social-navigation -->
  51. <?php endif; ?>
  52. </div><!-- .footer-menus -->
  53. <?php endif;
  54. endif;
  55. ?>
  56. <div class="site-info">
  57. <?php
  58. if ( function_exists( 'the_privacy_policy_link' ) ) {
  59. the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
  60. }
  61. ?>
  62. <?php $blog_info = get_bloginfo( 'name' ); ?>
  63. <?php if ( ! empty( $blog_info ) ) : ?>
  64. <a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a><span class="comma">,</span>
  65. <?php endif; ?>
  66. <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'balasana' ) ); ?>" class="imprint">
  67. <?php
  68. /* translators: %s: WordPress. */
  69. printf( __( 'proudly powered by %s.', 'balasana' ), 'WordPress' );
  70. ?>
  71. </a>
  72. </div><!-- .site-info -->
  73. </footer><!-- #colophon -->
  74. </div><!-- #page -->
  75. <?php wp_footer(); ?>
  76. </body>
  77. </html>