footer.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 Canard
  8. */
  9. ?>
  10. </div><!-- #content -->
  11. <?php get_sidebar( 'footer' ); ?>
  12. <?php if ( has_nav_menu( 'footer' ) ) : ?>
  13. <nav class="footer-navigation" role="navigation">
  14. <?php
  15. wp_nav_menu( array(
  16. 'theme_location' => 'footer',
  17. 'depth' => 1,
  18. ) );
  19. ?>
  20. </nav><!-- .footer-navigation -->
  21. <?php endif; ?>
  22. <?php if ( has_nav_menu( 'secondary' ) ) : ?>
  23. <nav class="bottom-navigation" role="navigation">
  24. <?php
  25. wp_nav_menu( array(
  26. 'theme_location' => 'secondary',
  27. 'depth' => 1,
  28. ) );
  29. ?>
  30. </nav><!-- .bottom-navigation -->
  31. <?php endif; ?>
  32. <?php if ( has_nav_menu( 'social' ) ) : ?>
  33. <nav class="social-navigation bottom-social" role="navigation">
  34. <?php
  35. wp_nav_menu( array(
  36. 'theme_location' => 'social',
  37. 'link_before' => '<span class="screen-reader-text">',
  38. 'link_after' => '</span>',
  39. 'depth' => 1,
  40. ) );
  41. ?>
  42. </nav><!-- .social-navigation -->
  43. <?php endif; ?>
  44. <footer id="colophon" class="site-footer" role="contentinfo">
  45. <div id="site-info" class="site-info">
  46. <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'canard' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'canard' ), 'WordPress' ); ?></a>
  47. <span class="genericon genericon-wordpress sep"></span>
  48. <?php printf( __( 'Theme: %1$s by %2$s.', 'canard' ), 'Canard', '<a href="https://wordpress.com/themes/" rel="designer">Automattic</a>' ); ?>
  49. </div><!-- #site-info -->
  50. </footer><!-- #colophon -->
  51. </div><!-- #page -->
  52. <?php wp_footer(); ?>
  53. </body>
  54. </html>