footer.php 1.5 KB

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