[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   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 Twenty_Twenty_One
  11   * @since Twenty Twenty-One 1.0
  12   */
  13  
  14  ?>
  15              </main><!-- #main -->
  16          </div><!-- #primary -->
  17      </div><!-- #content -->
  18  
  19      <?php get_template_part( 'template-parts/footer/footer-widgets' ); ?>
  20  
  21      <footer id="colophon" class="site-footer">
  22  
  23          <?php if ( has_nav_menu( 'footer' ) ) : ?>
  24              <nav aria-label="<?php esc_attr_e( 'Secondary menu', 'twentytwentyone' ); ?>" class="footer-navigation">
  25                  <ul class="footer-navigation-wrapper">
  26                      <?php
  27                      wp_nav_menu(
  28                          array(
  29                              'theme_location' => 'footer',
  30                              'items_wrap'     => '%3$s',
  31                              'container'      => false,
  32                              'depth'          => 1,
  33                              'link_before'    => '<span>',
  34                              'link_after'     => '</span>',
  35                              'fallback_cb'    => false,
  36                          )
  37                      );
  38                      ?>
  39                  </ul><!-- .footer-navigation-wrapper -->
  40              </nav><!-- .footer-navigation -->
  41          <?php endif; ?>
  42          <div class="site-info">
  43              <div class="site-name">
  44                  <?php if ( has_custom_logo() ) : ?>
  45                      <div class="site-logo"><?php the_custom_logo(); ?></div>
  46                  <?php else : ?>
  47                      <?php if ( get_bloginfo( 'name' ) && get_theme_mod( 'display_title_and_tagline', true ) ) : ?>
  48                          <?php if ( is_front_page() && ! is_paged() ) : ?>
  49                              <?php bloginfo( 'name' ); ?>
  50                          <?php else : ?>
  51                              <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
  52                          <?php endif; ?>
  53                      <?php endif; ?>
  54                  <?php endif; ?>
  55              </div><!-- .site-name -->
  56  
  57              <?php
  58              if ( function_exists( 'the_privacy_policy_link' ) ) {
  59                  the_privacy_policy_link( '<div class="privacy-policy">', '</div>' );
  60              }
  61              ?>
  62  
  63              <div class="powered-by">
  64                  <?php
  65                  printf(
  66                      /* translators: %s: WordPress. */
  67                      esc_html__( 'Proudly powered by %s.', 'twentytwentyone' ),
  68                      '<a href="' . esc_url( __( 'https://wordpress.org/', 'twentytwentyone' ) ) . '">WordPress</a>'
  69                  );
  70                  ?>
  71              </div><!-- .powered-by -->
  72  
  73          </div><!-- .site-info -->
  74      </footer><!-- #colophon -->
  75  
  76  </div><!-- #page -->
  77  
  78  <?php wp_footer(); ?>
  79  
  80  </body>
  81  </html>


Generated: Wed Dec 1 01:00:03 2021 Cross-referenced by PHPXref 0.7.1