Twenty Nineteen: Adjust markup in twentynineteen_add_ellipses_to_nav()
for better readability.
See #47067. git-svn-id: https://develop.svn.wordpress.org/trunk@45595 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5fea17ba03
commit
2aeab4216e
@ -202,24 +202,25 @@ function twentynineteen_add_ellipses_to_nav( $nav_menu, $args ) {
|
|||||||
|
|
||||||
if ( 'menu-1' === $args->theme_location ) :
|
if ( 'menu-1' === $args->theme_location ) :
|
||||||
|
|
||||||
$nav_menu .= '<div class="main-menu-more">';
|
$nav_menu .= '
|
||||||
$nav_menu .= '<ul class="main-menu">';
|
<div class="main-menu-more">
|
||||||
$nav_menu .= '<li class="menu-item menu-item-has-children">';
|
<ul class="main-menu">
|
||||||
$nav_menu .= '<button class="submenu-expand main-menu-more-toggle is-empty" tabindex="-1" aria-label="More" aria-haspopup="true" aria-expanded="false">';
|
<li class="menu-item menu-item-has-children">
|
||||||
$nav_menu .= '<span class="screen-reader-text">' . esc_html__( 'More', 'twentynineteen' ) . '</span>';
|
<button class="submenu-expand main-menu-more-toggle is-empty" tabindex="-1" aria-label="More" aria-haspopup="true" aria-expanded="false">
|
||||||
$nav_menu .= twentynineteen_get_icon_svg( 'arrow_drop_down_ellipsis' );
|
<span class="screen-reader-text">' . esc_html__( 'More', 'twentynineteen' ) . '</span>' .
|
||||||
$nav_menu .= '</button>';
|
twentynineteen_get_icon_svg( 'arrow_drop_down_ellipsis' ) . '
|
||||||
$nav_menu .= '<ul class="sub-menu hidden-links">';
|
</button>
|
||||||
$nav_menu .= '<li id="menu-item--1" class="mobile-parent-nav-menu-item menu-item--1">';
|
<ul class="sub-menu hidden-links">
|
||||||
$nav_menu .= '<button class="menu-item-link-return">';
|
<li id="menu-item--1" class="mobile-parent-nav-menu-item menu-item--1">
|
||||||
$nav_menu .= twentynineteen_get_icon_svg( 'chevron_left' );
|
<button class="menu-item-link-return">' .
|
||||||
$nav_menu .= esc_html__( 'Back', 'twentynineteen' );
|
twentynineteen_get_icon_svg( 'chevron_left' ) .
|
||||||
$nav_menu .= '</button>';
|
esc_html__( 'Back', 'twentynineteen' ) . '
|
||||||
$nav_menu .= '</li>';
|
</button>
|
||||||
$nav_menu .= '</ul>';
|
</li>
|
||||||
$nav_menu .= '</li>';
|
</ul>
|
||||||
$nav_menu .= '</ul>';
|
</li>
|
||||||
$nav_menu .= '</div>';
|
</ul>
|
||||||
|
</div>';
|
||||||
|
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user