Make WordPress Core


Ignore:
Timestamp:
09/30/2019 05:40:14 PM (7 years ago)
Author:
desrosj
Message:

Bundled Themes: Update Twenty Twenty.

This brings trunk’s version of Twenty Twenty in-sync with GitHub.

For a complete list of changes since [46271], see https://github.com/WordPress/twentytwenty/compare/932b16248...dd7032f

Props anlino, ianbelanger, nielslange, acosmin, netweb, williampatton, adhitya03, phpdocs, acalfieri, itowhid06, littlebigthing, aristath, karmatosed, poena.
See #48110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/footer.php

    r46283 r46357  
    1212 */
    1313
    14 ?>
     14?>             
     15                        <footer id="site-footer" role="contentinfo" class="header-footer-group">
    1516
    16                 <footer id="site-footer" role="contentinfo" class="header-footer-group">
    17 
    18                         <div class="footer-inner section-inner">
    19 
    20                                 <?php
    21 
    22                                 $has_footer_menu = has_nav_menu( 'footer' );
    23                                 $has_social_menu = has_nav_menu( 'social' );
    24 
    25                                 $footer_top_classes = '';
    26 
    27                                 $footer_top_classes .= $has_footer_menu ? ' has-footer-menu' : '';
    28                                 $footer_top_classes .= $has_social_menu ? ' has-social-menu' : '';
    29 
    30                                 $footer_social_wrapper_class = $has_footer_menu ? 'footer-social-wrapper' : '';
    31 
    32                                 if ( $has_footer_menu || $has_social_menu ) {
    33                                         ?>
    34                                         <div class="footer-top<?php echo esc_attr( $footer_top_classes ); ?>">
    35                                                 <?php if ( $has_footer_menu ) { ?>
    36 
    37                                                         <nav aria-label="<?php esc_attr_e( 'Footer menu', 'twentytwenty' ); ?>">
    38 
    39                                                                 <ul class="footer-menu reset-list-style">
    40                                                                         <?php
    41                                                                         wp_nav_menu(
    42                                                                                 array(
    43                                                                                         'container'  => '',
    44                                                                                         'depth'      => 1,
    45                                                                                         'items_wrap' => '%3$s',
    46                                                                                         'theme_location' => 'footer',
    47                                                                                 )
    48                                                                         );
    49                                                                         ?>
    50                                                                 </ul>
    51 
    52                                                         </nav><!-- .site-nav -->
    53 
    54                                                 <?php } ?>
    55                                                 <?php if ( $has_social_menu ) { ?>
    56 
    57                                                         <div class="<?php esc_attr( $footer_social_wrapper_class ); ?>">
    58 
    59                                                                 <nav aria-label="<?php esc_attr_e( 'Social links', 'twentytwenty' ); ?>">
    60 
    61                                                                         <ul class="social-menu footer-social reset-list-style social-icons s-icons">
    62 
    63                                                                                 <?php
    64                                                                                 wp_nav_menu(
    65                                                                                         array(
    66                                                                                                 'theme_location' => 'social',
    67                                                                                                 'container' => '',
    68                                                                                                 'container_class' => '',
    69                                                                                                 'items_wrap' => '%3$s',
    70                                                                                                 'menu_id' => '',
    71                                                                                                 'menu_class' => '',
    72                                                                                                 'depth'   => 1,
    73                                                                                                 'link_before' => '<span class="screen-reader-text">',
    74                                                                                                 'link_after' => '</span>',
    75                                                                                                 'fallback_cb' => '',
    76                                                                                         )
    77                                                                                 );
    78                                                                                 ?>
    79 
    80                                                                         </ul>
    81 
    82                                                                 </nav><!-- .social-menu -->
    83 
    84                                                         </div><!-- .footer-social-wrapper -->
    85 
    86                                                 <?php } ?>
    87                                         </div><!-- .footer-top -->
    88 
    89                                 <?php } ?>
    90 
    91 
    92                                 <?php if ( is_active_sidebar( 'sidebar-1' ) || is_active_sidebar( 'sidebar-2' ) ) { ?>
    93 
    94                                         <div class="footer-widgets-outer-wrapper">
    95 
    96                                                 <div class="footer-widgets-wrapper">
    97 
    98                                                         <?php if ( is_active_sidebar( 'sidebar-1' ) ) { ?>
    99 
    100                                                                 <div class="footer-widgets column-one grid-item">
    101                                                                         <?php dynamic_sidebar( 'sidebar-1' ); ?>
    102                                                                 </div>
    103 
    104                                                         <?php } ?>
    105 
    106                                                         <?php if ( is_active_sidebar( 'sidebar-2' ) ) { ?>
    107 
    108                                                                 <div class="footer-widgets column-two grid-item">
    109                                                                         <?php dynamic_sidebar( 'sidebar-2' ); ?>
    110                                                                 </div>
    111 
    112                                                         <?php } ?>
    113 
    114                                                 </div><!-- .footer-widgets-wrapper -->
    115 
    116                                         </div><!-- .footer-widgets-outer-wrapper -->
    117 
    118                                 <?php } ?>
    119 
    120                                 <div class="footer-bottom">
     17                                <div class="section-inner">
    12118
    12219                                        <div class="footer-credits">
     
    13128                                                        );
    13229                                                        ?>
    133                                                         <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo bloginfo( 'name' ); ?></a></a>
     30                                                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo bloginfo( 'name' ); ?></a>
    13431                                                </p>
    13532
    13633                                                <p class="powered-by-wordpress">
    137                                                         <?php
    138                                                         /* Translators: %s = Link to WordPress.org */
    139                                                         printf( _x( 'Powered by %s', 'Translators: %s = Link to WordPress.org', 'twentytwenty' ), '<a href="https://wordpress.org">' . __( 'WordPress', 'twentytwenty' ) . '</a>' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- core trusts translations
    140                                                         ?>
     34                                                        <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwenty' ) ); ?>">
     35                                                                <?php
     36                                                                _e( 'Powered by WordPress', 'twentytwenty' ); // phpcs:ignore WordPress.Security.EscapeOutput.UnsafePrintingFunction -- core trusts translations
     37                                                                ?>
     38                                                        </a>
    14139                                                </p><!-- .theme-credits -->
    14240
     
    15856                                        </a>
    15957
    160                                 </div><!-- .footer-bottom -->
     58                                </div><!-- .section-inner -->
    16159
    162                         </div><!-- .footer-inner -->
    163 
    164                 </footer><!-- #site-footer -->
     60                        </footer><!-- #site-footer -->
    16561
    16662                <?php wp_footer(); ?>
Note: See TracChangeset for help on using the changeset viewer.