[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentytwenty/ -> footer.php (source)

   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" class="header-footer-group">
  16  
  17                  <div class="section-inner">
  18  
  19                      <div class="footer-credits">
  20  
  21                          <p class="footer-copyright">&copy;
  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                          <?php
  32                          if ( function_exists( 'the_privacy_policy_link' ) ) {
  33                              the_privacy_policy_link( '<p class="privacy-policy">', '</p>' );
  34                          }
  35                          ?>
  36  
  37                          <p class="powered-by-wordpress">
  38                              <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwenty' ) ); ?>">
  39                                  <?php _e( 'Powered by WordPress', 'twentytwenty' ); ?>
  40                              </a>
  41                          </p><!-- .powered-by-wordpress -->
  42  
  43                      </div><!-- .footer-credits -->
  44  
  45                      <a class="to-the-top" href="#site-header">
  46                          <span class="to-the-top-long">
  47                              <?php
  48                              /* translators: %s: HTML character for up arrow. */
  49                              printf( __( 'To the top %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">&uarr;</span>' );
  50                              ?>
  51                          </span><!-- .to-the-top-long -->
  52                          <span class="to-the-top-short">
  53                              <?php
  54                              /* translators: %s: HTML character for up arrow. */
  55                              printf( __( 'Up %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">&uarr;</span>' );
  56                              ?>
  57                          </span><!-- .to-the-top-short -->
  58                      </a><!-- .to-the-top -->
  59  
  60                  </div><!-- .section-inner -->
  61  
  62              </footer><!-- #site-footer -->
  63  
  64          <?php wp_footer(); ?>
  65  
  66      </body>
  67  </html>


Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1