| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
SVG icons related functions
| File Size: | 116 lines (4 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| twentynineteen_get_icon_svg( $icon, $size = 24 ) X-Ref |
| Gets the SVG code for a given icon. param: string $icon The specific icon to retrieve. param: int $size The desired width and height for the SVG icon. |
| twentynineteen_get_social_icon_svg( $icon, $size = 24 ) X-Ref |
| Gets the SVG code for a given social icon. param: string $icon The specific icon to retrieve. param: int $size The desired width and height for the SVG icon. |
| twentynineteen_get_social_link_svg( $uri, $size = 24 ) X-Ref |
| Detects the social network from a URL and returns the SVG code for its icon. param: string $uri The URL of the social network link. param: int $size The desired width and height for the SVG icon. |
| twentynineteen_nav_menu_social_icons( $item_output, $item, $depth, $args ) X-Ref |
| Displays SVG icons in social links menu. param: string $item_output The menu item's starting HTML output. param: WP_Post $item Menu item data object. param: int $depth Depth of the menu. Used for padding. param: stdClass $args An object of wp_nav_menu() arguments. return: string The menu item output with social icon. |
| twentynineteen_add_dropdown_icons( $item_output, $item, $depth, $args ) X-Ref |
| Adds a dropdown icon to top-level menu items. param: string $item_output The menu item's starting HTML output. param: WP_Post $item Menu item data object. param: int $depth Depth of the menu. Used for padding. param: stdClass $args An object of wp_nav_menu() arguments. return: string Nav menu item start element. |
| Generated : Thu Oct 30 08:20:06 2025 | Cross-referenced by PHPXref |