footer.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 Rivington
  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 footer below.
  21. get_template_part( 'template-parts/footer/footer', 'widgets' );
  22. if ( function_exists( 'the_privacy_policy_link' ) ) {
  23. the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
  24. }
  25. if ( has_nav_menu( 'social' ) ) : ?>
  26. <nav class="social-navigation" aria-label="<?php esc_attr_e( 'Social Links Menu', 'rockfield' ); ?>">
  27. <?php
  28. wp_nav_menu(
  29. array(
  30. 'theme_location' => 'social',
  31. 'menu_class' => 'social-links-menu',
  32. 'link_before' => '<span class="screen-reader-text">',
  33. 'link_after' => '</span>' . varia_get_icon_svg( 'link' ),
  34. 'depth' => 1,
  35. )
  36. );
  37. ?>
  38. </nav><!-- .social-navigation -->
  39. <?php endif;
  40. endif;
  41. ?>
  42. <div class="site-info">
  43. <?php $blog_info = get_bloginfo( 'name' ); ?>
  44. <?php if ( ! empty( $blog_info ) ) : ?>
  45. <a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a><span class="comma">,</span>
  46. <?php endif; ?>
  47. <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'rivington' ) ); ?>" class="imprint">
  48. <?php
  49. /* translators: %s: WordPress. */
  50. printf( __( 'proudly powered by %s.', 'rivington' ), 'WordPress' );
  51. ?>
  52. </a>
  53. </div><!-- .site-info -->
  54. </footer><!-- #colophon -->
  55. </div><!-- #page -->
  56. <?php wp_footer(); ?>
  57. </body>
  58. </html>