footer.php 1.6 KB

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