| [ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
File primary-navigation.js. Required to open and close the mobile navigation.
| File Size: | 204 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| twentytwentyoneToggleAriaExpanded( el, withListeners ) X-Ref |
| Toggle an attribute's value since: Twenty Twenty-One 1.0 param: {Element} el - The element. param: {boolean} withListeners - Whether we want to add/remove listeners or not. |
| twentytwentyoneCollapseMenuOnClickOutside( event ) X-Ref |
| No description |
| twentytwentyoneSubmenuPosition( li ) X-Ref |
| Changes the position of submenus so they always fit the screen horizontally. since: Twenty Twenty-One 1.0 param: {Element} li - The li element. |
| twentytwentyoneExpandSubMenu( el ) X-Ref |
| Handle clicks on submenu toggles. since: Twenty Twenty-One 1.0 param: {Element} el - The element. |
| Generated: Tue Nov 18 01:00:02 2025 | Cross-referenced by PHPXref 0.7.1 |