footer.php 2.1 KB

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