footer.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 Twenty_Nineteen
  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. <div class="site-info">
  18. <?php $blog_info = get_bloginfo( 'name' ); ?>
  19. <?php if ( ! empty( $blog_info ) ) : ?>
  20. <a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>,
  21. <?php endif; ?>
  22. <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentynineteen' ) ); ?>" class="imprint">
  23. <?php
  24. /* translators: %s: WordPress. */
  25. printf( __( 'Proudly powered by %s.', 'twentynineteen' ), 'WordPress' );
  26. ?>
  27. </a>
  28. <?php
  29. if ( function_exists( 'the_privacy_policy_link' ) ) {
  30. the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
  31. }
  32. ?>
  33. <?php if ( has_nav_menu( 'footer' ) ) : ?>
  34. <nav class="footer-navigation" aria-label="<?php esc_attr_e( 'Footer Menu', 'twentynineteen' ); ?>">
  35. <?php
  36. wp_nav_menu(
  37. array(
  38. 'theme_location' => 'footer',
  39. 'menu_class' => 'footer-menu',
  40. 'depth' => 1,
  41. )
  42. );
  43. ?>
  44. </nav><!-- .footer-navigation -->
  45. <?php endif; ?>
  46. </div><!-- .site-info -->
  47. </footer><!-- #colophon -->
  48. </div><!-- #page -->
  49. <?php wp_footer(); ?>
  50. </body>
  51. </html>