footer.php 1.5 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. * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  8. *
  9. * @package Seedlet
  10. * @since 1.0.0
  11. */
  12. ?>
  13. </div><!-- #content -->
  14. <footer id="colophon" class="site-footer default-max-width">
  15. <?php get_template_part( 'template-parts/footer/footer-widgets' ); ?>
  16. <?php if ( has_nav_menu( 'footer' ) ) : ?>
  17. <nav class="footer-navigation" aria-label="<?php esc_attr_e( 'Footer Menu', 'seedlet' ); ?>">
  18. <?php
  19. wp_nav_menu(
  20. array(
  21. 'theme_location' => 'footer',
  22. 'menu_class' => 'footer-menu',
  23. 'depth' => 1,
  24. )
  25. );
  26. ?>
  27. </nav><!-- .footer-navigation -->
  28. <?php endif; ?>
  29. <div class="site-info">
  30. <?php $blog_info = get_bloginfo( 'name' ); ?>
  31. <?php if ( ! empty( $blog_info ) ) : ?>
  32. <a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a><span class="comma">,</span>
  33. <?php endif; ?>
  34. <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'seedlet' ) ); ?>" class="imprint">
  35. <?php
  36. /* translators: %s: WordPress. */
  37. printf( __( 'Proudly powered by %s.', 'seedlet' ), 'WordPress' );
  38. ?>
  39. </a>
  40. <?php
  41. if ( function_exists( 'the_privacy_policy_link' ) ) {
  42. the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
  43. }
  44. ?>
  45. </div><!-- .site-info -->
  46. </footer><!-- #colophon -->
  47. </div><!-- #page -->
  48. <?php wp_footer(); ?>
  49. </body>
  50. </html>