- Timestamp:
- 06/20/2020 11:20:25 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/inc/template-tags.php
r48102 r48103 500 500 * styling of sub levels in the fallback. Only applied if the match_menu_classes argument is set. 501 501 * 502 * @param array $css_class CSS Class names.503 * @param string $item Comment.504 * @param int $depth Depth of the current comment.505 * @param array $argsAn array of arguments.506 * @param string $current_page Whether or not the item is the current item.507 * @return array $css_class CSS Class names.508 */ 509 function twentytwenty_filter_wp_list_pages_item_classes( $css_class, $ item, $depth, $args, $current_page ) {502 * @param string[] $css_class An array of CSS classes to be applied to each list item. 503 * @param WP_Post $page Page data object. 504 * @param int $depth Depth of page, used for padding. 505 * @param array $args An array of arguments. 506 * @param int $current_page ID of the current page. 507 * @return array CSS class names. 508 */ 509 function twentytwenty_filter_wp_list_pages_item_classes( $css_class, $page, $depth, $args, $current_page ) { 510 510 511 511 // Only apply to wp_list_pages() calls with match_menu_classes set to true. … … 535 535 * Adds a Sub Nav Toggle to the Expanded Menu and Mobile Menu. 536 536 * 537 * @param stdClass $args An array ofarguments.538 * @param string $item Menu item.539 * @param int $depth Depth of the current menu item.540 * @return stdClass $argsAn object of wp_nav_menu() arguments.537 * @param stdClass $args An object of wp_nav_menu() arguments. 538 * @param WP_Post $item Menu item data object. 539 * @param int $depth Depth of menu item. Used for padding. 540 * @return stdClass An object of wp_nav_menu() arguments. 541 541 */ 542 542 function twentytwenty_add_sub_toggles_to_main_menu( $args, $item, $depth ) { … … 581 581 * Displays SVG icons in social links menu. 582 582 * 583 * @param string $item_output The menu itemoutput.584 * @param WP_Post $item Menu itemobject.585 * @param int $depth Depth of the menu.586 * @param array $argswp_nav_menu() arguments.587 * @return string $item_outputThe menu item output with social icon.583 * @param string $item_output The menu item's starting HTML output. 584 * @param WP_Post $item Menu item data object. 585 * @param int $depth Depth of the menu. Used for padding. 586 * @param stdClass $args An object of wp_nav_menu() arguments. 587 * @return string The menu item output with social icon. 588 588 */ 589 589 function twentytwenty_nav_menu_social_icons( $item_output, $item, $depth, $args ) {
Note: See TracChangeset
for help on using the changeset viewer.