Changeset 46445 for trunk/src/wp-content/themes/twentytwenty/template-parts/footer-menus-widgets.php
- Timestamp:
- 10/08/2019 07:05:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/template-parts/footer-menus-widgets.php
r46357 r46445 30 30 $footer_top_classes .= $has_social_menu ? ' has-social-menu' : ''; 31 31 32 $footer_social_wrapper_class = $has_footer_menu ? 'footer-social-wrapper' : '';33 34 32 if ( $has_footer_menu || $has_social_menu ) { 35 33 ?> 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 ?>"> 37 35 <?php if ( $has_footer_menu ) { ?> 38 36 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"> 40 38 41 39 <ul class="footer-menu reset-list-style"> … … 57 55 <?php if ( $has_social_menu ) { ?> 58 56 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"> 60 58 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"> 62 60 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 ?> 64 77 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 --> 81 79 82 </ul> 83 84 </nav><!-- .social-menu --> 85 86 </div><!-- .footer-social-wrapper --> 80 </nav><!-- .footer-social-wrapper --> 87 81 88 82 <?php } ?>
Note: See TracChangeset
for help on using the changeset viewer.