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" role="contentinfo"> 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 <div class="powered-by"> 57 <?php 58 printf( 59 /* translators: %s: WordPress. */ 60 esc_html__( 'Proudly powered by %s.', 'twentytwentyone' ), 61 '<a href="' . esc_url( __( 'https://wordpress.org/', 'twentytwentyone' ) ) . '">WordPress</a>' 62 ); 63 ?> 64 </div><!-- .powered-by --> 65 66 </div><!-- .site-info --> 67 </footer><!-- #colophon --> 68 69</div><!-- #page --> 70 71<?php wp_footer(); ?> 72 73</body> 74</html> 75