mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-27 03:27:46 +01:00
3ea8930f37
Welcome to the bundled themes family! Twenty Twenty-One is a blank canvas for your ideas, making the block editor your best brush. Theme development to this point has taken place on GitHub. See: https://github.com/WordPress/twentytwentyone/. Props poena, melchoyce, luminuu, elmastudio, bethsoderberg, williampatton, aristath, jffng, kjellr, jeffikus, audrasjb, fabiankaegy, mukesh27, dingo_d, kellylawrence, acosmin, whyisjake, metodiew, ryelle, nielslange, littlebigthing, mahesh901122, zebulan, kishanjasani, lukecavanagh, scruffian, abhijitrakas, utz119, sudoshreyansh, kau-boy, justinahinon, joostdevalk, bduclos, hareesh-pillai, mager19, rolfsiebers, webmigrates, sresok, guidooffermans, francina, marybaum, hareshlive, navanathbhosale, afercia, richtabor, joyously, sarahricker, nrqsnchz, glauberglauber, sabernhardt, kraftbj, ItsJonQ, joen, CTMartin0, decrecementofeliz, bhautikvirani. See #51526. Built from https://develop.svn.wordpress.org/trunk@49216 git-svn-id: http://core.svn.wordpress.org/trunk@48978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
74 lines
2.0 KiB
PHP
74 lines
2.0 KiB
PHP
<?php
|
|
/**
|
|
* The template for displaying the footer
|
|
*
|
|
* Contains the closing of the #content div and all content after.
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty_Twenty_One
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
?>
|
|
</main><!-- #main -->
|
|
</section><!-- #primary -->
|
|
</div><!-- #content -->
|
|
|
|
<?php get_template_part( 'template-parts/footer/footer-widgets' ); ?>
|
|
|
|
<footer id="colophon" class="site-footer" role="contentinfo">
|
|
|
|
<?php if ( has_nav_menu( 'footer' ) ) : ?>
|
|
<nav aria-label="<?php esc_attr_e( 'Secondary menu', 'twentytwentyone' ); ?>" class="footer-navigation">
|
|
<ul class="footer-navigation-wrapper">
|
|
<?php
|
|
wp_nav_menu(
|
|
array(
|
|
'theme_location' => 'footer',
|
|
'items_wrap' => '%3$s',
|
|
'container' => 'false',
|
|
'depth' => 1,
|
|
'link_before' => '<span>',
|
|
'link_after' => '</span>',
|
|
)
|
|
);
|
|
?>
|
|
</ul><!-- .footer-navigation-wrapper -->
|
|
</nav><!-- .footer-navigation -->
|
|
<?php endif; ?>
|
|
<div class="site-info">
|
|
<div class="site-name">
|
|
<?php if ( has_custom_logo() ) : ?>
|
|
<div class="site-logo"><?php the_custom_logo(); ?></div>
|
|
<?php else : ?>
|
|
<?php if ( get_bloginfo( 'name' ) && get_theme_mod( 'display_title_and_tagline', true ) ) : ?>
|
|
<?php if ( is_front_page() && ! is_paged() ) : ?>
|
|
<?php bloginfo( 'name' ); ?>
|
|
<?php else : ?>
|
|
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</div><!-- .site-name -->
|
|
<div class="powered-by">
|
|
<?php
|
|
printf(
|
|
/* translators: %s: WordPress. */
|
|
esc_html__( 'Proudly powered by %s.', 'twentytwentyone' ),
|
|
'<a href="' . esc_attr__( 'https://wordpress.org/', 'twentytwentyone' ) . '">WordPress</a>'
|
|
);
|
|
?>
|
|
</div><!-- .powered-by -->
|
|
|
|
</div><!-- .site-info -->
|
|
</footer><!-- #colophon -->
|
|
|
|
</div><!-- #page -->
|
|
|
|
<?php wp_footer(); ?>
|
|
|
|
</body>
|
|
</html>
|