footer.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * The template for displaying the footer
  4. *
  5. * Contains the opening of the #site-footer div and all content after.
  6. *
  7. * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  8. *
  9. * @package WordPress
  10. * @subpackage Twenty_Twenty
  11. * @since Twenty Twenty 1.0
  12. */
  13. ?>
  14. <footer id="site-footer" role="contentinfo" class="header-footer-group">
  15. <div class="section-inner">
  16. <div class="footer-credits">
  17. <p class="footer-copyright">&copy;
  18. <?php
  19. echo date_i18n(
  20. /* translators: Copyright date format, see https://www.php.net/date */
  21. _x( 'Y', 'copyright date format', 'twentytwenty' )
  22. );
  23. ?>
  24. <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
  25. </p><!-- .footer-copyright -->
  26. <p class="powered-by-wordpress">
  27. <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwenty' ) ); ?>">
  28. <?php _e( 'Powered by WordPress', 'twentytwenty' ); ?>
  29. </a>
  30. </p><!-- .powered-by-wordpress -->
  31. </div><!-- .footer-credits -->
  32. <a class="to-the-top" href="#site-header">
  33. <span class="to-the-top-long">
  34. <?php
  35. /* translators: %s: HTML character for up arrow. */
  36. printf( __( 'To the top %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">&uarr;</span>' );
  37. ?>
  38. </span><!-- .to-the-top-long -->
  39. <span class="to-the-top-short">
  40. <?php
  41. /* translators: %s: HTML character for up arrow. */
  42. printf( __( 'Up %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">&uarr;</span>' );
  43. ?>
  44. </span><!-- .to-the-top-short -->
  45. </a><!-- .to-the-top -->
  46. </div><!-- .section-inner -->
  47. </footer><!-- #site-footer -->
  48. <?php wp_footer(); ?>
  49. </body>
  50. </html>