[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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                              /* translators: Copyright date format, see https://www.php.net/manual/datetime.format.php */
  24                              $date_format = _x( 'Y', 'copyright date format', 'twentytwenty' );
  25                              if ( function_exists( 'wp_date' ) ) {
  26                                  echo wp_date( $date_format );
  27                              } else {
  28                                  echo date_i18n( $date_format );
  29                              }
  30                              ?>
  31                              <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
  32                          </p><!-- .footer-copyright -->
  33  
  34                          <?php
  35                          if ( function_exists( 'the_privacy_policy_link' ) ) {
  36                              the_privacy_policy_link( '<p class="privacy-policy">', '</p>' );
  37                          }
  38                          ?>
  39  
  40                          <p class="powered-by-wordpress">
  41                              <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwenty' ) ); ?>">
  42                                  <?php _e( 'Powered by WordPress', 'twentytwenty' ); ?>
  43                              </a>
  44                          </p><!-- .powered-by-wordpress -->
  45  
  46                      </div><!-- .footer-credits -->
  47  
  48                      <a class="to-the-top" href="#site-header">
  49                          <span class="to-the-top-long">
  50                              <?php
  51                              /* translators: %s: HTML character for up arrow. */
  52                              printf( __( 'To the top %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">&uarr;</span>' );
  53                              ?>
  54                          </span><!-- .to-the-top-long -->
  55                          <span class="to-the-top-short">
  56                              <?php
  57                              /* translators: %s: HTML character for up arrow. */
  58                              printf( __( 'Up %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">&uarr;</span>' );
  59                              ?>
  60                          </span><!-- .to-the-top-short -->
  61                      </a><!-- .to-the-top -->
  62  
  63                  </div><!-- .section-inner -->
  64  
  65              </footer><!-- #site-footer -->
  66  
  67          <?php wp_footer(); ?>
  68  
  69      </body>
  70  </html>


Generated : Fri Nov 15 08:20:01 2024 Cross-referenced by PHPXref