footer.php 1.8 KB

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