footer.php 1.6 KB

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