footer.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. * @package WordPress
  8. * @subpackage Twenty_Sixteen
  9. * @since Twenty Sixteen 1.0
  10. */
  11. ?>
  12. </div><!-- .site-content -->
  13. <footer id="colophon" class="site-footer" role="contentinfo">
  14. <?php if ( has_nav_menu( 'primary' ) ) : ?>
  15. <nav class="main-navigation" role="navigation" aria-label="<?php _e( 'Footer Primary Menu', 'twentysixteen' ); ?>">
  16. <?php
  17. wp_nav_menu( array(
  18. 'theme_location' => 'primary',
  19. 'menu_class' => 'primary-menu',
  20. ) );
  21. ?>
  22. </nav><!-- .main-navigation -->
  23. <?php endif; ?>
  24. <?php if ( has_nav_menu( 'social' ) ) : ?>
  25. <nav class="social-navigation" role="navigation" aria-label="<?php _e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
  26. <?php
  27. wp_nav_menu( array(
  28. 'theme_location' => 'social',
  29. 'menu_class' => 'social-links-menu',
  30. 'depth' => 1,
  31. 'link_before' => '<span class="screen-reader-text">',
  32. 'link_after' => '</span>',
  33. ) );
  34. ?>
  35. </nav><!-- .social-navigation -->
  36. <?php endif; ?>
  37. <div class="site-info">
  38. <?php
  39. /**
  40. * Fires before the twentysixteen footer text for footer customization.
  41. *
  42. * @since Twenty Sixteen 1.0
  43. */
  44. do_action( 'twentysixteen_credits' );
  45. ?>
  46. <span class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span>
  47. <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentysixteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' ); ?></a>
  48. </div><!-- .site-info -->
  49. </footer><!-- .site-footer -->
  50. </div><!-- .site-inner -->
  51. </div><!-- .site -->
  52. <?php wp_footer(); ?>
  53. </body>
  54. </html>