footer.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. * If the full site editing plugin is active then remove the widgets section,
  8. * privacy policy, and navigation area in place of the footer template part
  9. * that can be edited directly in the block editor.
  10. *
  11. * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  12. *
  13. * @package WordPress
  14. * @subpackage Twenty_Nineteen
  15. * @since 1.0.0
  16. */
  17. ?>
  18. </div><!-- #content -->
  19. <footer id="colophon" class="site-footer">
  20. <?php get_template_part( 'template-parts/footer/footer', 'widgets' ); ?>
  21. <div class="site-info">
  22. <?php $blog_info = get_bloginfo( 'name' ); ?>
  23. <?php if ( ! empty( $blog_info ) ) : ?>
  24. <a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>,
  25. <?php endif; ?>
  26. <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentynineteen' ) ); ?>" class="imprint">
  27. <?php
  28. /* translators: %s: WordPress. */
  29. printf( __( 'Proudly powered by %s.', 'twentynineteen' ), 'WordPress' );
  30. ?>
  31. </a>
  32. <?php
  33. if ( function_exists( 'the_privacy_policy_link' ) ) {
  34. the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
  35. }
  36. ?>
  37. <?php if ( has_nav_menu( 'footer' ) ) : ?>
  38. <nav class="footer-navigation" aria-label="<?php esc_attr_e( 'Footer Menu', 'twentynineteen' ); ?>">
  39. <?php
  40. wp_nav_menu(
  41. array(
  42. 'theme_location' => 'footer',
  43. 'menu_class' => 'footer-menu',
  44. 'depth' => 1,
  45. )
  46. );
  47. ?>
  48. </nav><!-- .footer-navigation -->
  49. <?php endif; ?>
  50. </div><!-- .site-info -->
  51. </footer><!-- #colophon -->
  52. </div><!-- #page -->
  53. <?php wp_footer(); ?>
  54. </body>
  55. </html>