Make WordPress Core


Ignore:
Timestamp:
10/08/2019 07:05:53 PM (6 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 [46357], see https://github.com/WordPress/twentytwenty/compare/7157870...7246fd6.

Props anlino, ianbelanger, poena, williampatton, nielslange, acosmin, netweb, joyusly, luminuu, itowhid06, cbravobernal, intimez, glauberglauber, ocean90, amolv, briceduclos, aristath, mukesh27, garrett-eclipse, audrasjb, afercia, dianeco, utsav72640, mahesh901122, tobifjellner.
See #48110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/template-parts/footer-menus-widgets.php

    r46357 r46445  
    3030            $footer_top_classes .= $has_social_menu ? ' has-social-menu' : '';
    3131
    32             $footer_social_wrapper_class = $has_footer_menu ? 'footer-social-wrapper' : '';
    33 
    3432            if ( $has_footer_menu || $has_social_menu ) {
    3533                ?>
    36                 <div class="footer-top<?php echo esc_attr( $footer_top_classes ); ?>">
     34                <div class="footer-top<?php echo $footer_top_classes; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?>">
    3735                    <?php if ( $has_footer_menu ) { ?>
    3836
    39                         <nav aria-label="<?php esc_attr_e( 'Footer', 'twentytwenty' ); ?>" role="navigation">
     37                        <nav aria-label="<?php esc_attr_e( 'Footer', 'twentytwenty' ); ?>" role="navigation" class="footer-menu-wrapper">
    4038
    4139                            <ul class="footer-menu reset-list-style">
     
    5755                    <?php if ( $has_social_menu ) { ?>
    5856
    59                         <div class="<?php echo esc_attr( $footer_social_wrapper_class ); ?>">
     57                        <nav aria-label="<?php esc_attr_e( 'Social links', 'twentytwenty' ); ?>" class="footer-social-wrapper">
    6058
    61                             <nav aria-label="<?php esc_attr_e( 'Social links', 'twentytwenty' ); ?>">
     59                            <ul class="social-menu footer-social reset-list-style social-icons fill-children-current-color">
    6260
    63                                 <ul class="social-menu footer-social reset-list-style social-icons s-icons">
     61                                <?php
     62                                wp_nav_menu(
     63                                    array(
     64                                        'theme_location'  => 'social',
     65                                        'container'       => '',
     66                                        'container_class' => '',
     67                                        'items_wrap'      => '%3$s',
     68                                        'menu_id'         => '',
     69                                        'menu_class'      => '',
     70                                        'depth'           => 1,
     71                                        'link_before'     => '<span class="screen-reader-text">',
     72                                        'link_after'      => '</span>',
     73                                        'fallback_cb'     => '',
     74                                    )
     75                                );
     76                                ?>
    6477
    65                                     <?php
    66                                     wp_nav_menu(
    67                                         array(
    68                                             'theme_location' => 'social',
    69                                             'container'   => '',
    70                                             'container_class' => '',
    71                                             'items_wrap'  => '%3$s',
    72                                             'menu_id'     => '',
    73                                             'menu_class'  => '',
    74                                             'depth'       => 1,
    75                                             'link_before' => '<span class="screen-reader-text">',
    76                                             'link_after'  => '</span>',
    77                                             'fallback_cb' => '',
    78                                         )
    79                                     );
    80                                     ?>
     78                            </ul><!-- .footer-social -->
    8179
    82                                 </ul>
    83 
    84                             </nav><!-- .social-menu -->
    85 
    86                         </div><!-- .footer-social-wrapper -->
     80                        </nav><!-- .footer-social-wrapper -->
    8781
    8882                    <?php } ?>
Note: See TracChangeset for help on using the changeset viewer.