Changeset 46357 for trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-page.php
- Timestamp:
- 09/30/2019 05:40:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-page.php
r46271 r46357 129 129 130 130 $toggle_target_string = '.menu-modal .page-item-' . $page->ID . ' > ul'; 131 $toggle_duration = twentytwenty_toggle_duration(); 131 132 132 133 // Add the sub menu toggle. 133 $args['list_item_after'] .= '<button class="toggle sub-menu-toggle fill-children-current-color" data-toggle-target="' . $toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration=" 250"><span class="screen-reader-text">' . __( 'Show sub menu', 'twentytwenty' ) . '</span>' . twentytwenty_get_theme_svg( 'chevron-down' ) . '</button>';134 $args['list_item_after'] .= '<button class="toggle sub-menu-toggle fill-children-current-color" data-toggle-target="' . $toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration="' . absint( $toggle_duration ) . '"><span class="screen-reader-text">' . __( 'Show sub menu', 'twentytwenty' ) . '</span>' . twentytwenty_get_theme_svg( 'chevron-down' ) . '</button>'; 134 135 135 136 }
Note: See TracChangeset
for help on using the changeset viewer.