footer.php (1849B)
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 ?> 15 <footer id="site-footer" role="contentinfo" class="header-footer-group"> 16 17 <div class="section-inner"> 18 19 <div class="footer-credits"> 20 21 <p class="footer-copyright">© 22 <?php 23 echo date_i18n( 24 /* translators: Copyright date format, see https://www.php.net/manual/datetime.format.php */ 25 _x( 'Y', 'copyright date format', 'twentytwenty' ) 26 ); 27 ?> 28 <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a> 29 </p><!-- .footer-copyright --> 30 31 <p class="powered-by-wordpress"> 32 <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwenty' ) ); ?>"> 33 <?php _e( 'Powered by WordPress', 'twentytwenty' ); ?> 34 </a> 35 </p><!-- .powered-by-wordpress --> 36 37 </div><!-- .footer-credits --> 38 39 <a class="to-the-top" href="#site-header"> 40 <span class="to-the-top-long"> 41 <?php 42 /* translators: %s: HTML character for up arrow. */ 43 printf( __( 'To the top %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">↑</span>' ); 44 ?> 45 </span><!-- .to-the-top-long --> 46 <span class="to-the-top-short"> 47 <?php 48 /* translators: %s: HTML character for up arrow. */ 49 printf( __( 'Up %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">↑</span>' ); 50 ?> 51 </span><!-- .to-the-top-short --> 52 </a><!-- .to-the-top --> 53 54 </div><!-- .section-inner --> 55 56 </footer><!-- #site-footer --> 57 58 <?php wp_footer(); ?> 59 60 </body> 61 </html>