[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentynineteen/inc/ -> icon-functions.php (summary)

SVG icons related functions

File Size: 107 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  twentynineteen_get_icon_svg()
  twentynineteen_get_social_icon_svg()
  twentynineteen_get_social_link_svg()
  twentynineteen_nav_menu_social_icons()
  twentynineteen_add_dropdown_icons()

Functions
Functions that are not part of a class:

twentynineteen_get_icon_svg( $icon, $size = 24 )   X-Ref
Gets the SVG code for a given icon.


twentynineteen_get_social_icon_svg( $icon, $size = 24 )   X-Ref
Gets the SVG code for a given social 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.


twentynineteen_nav_menu_social_icons( $item_output, $item, $depth, $args )   X-Ref
Display SVG icons in social links menu.

return: string The menu item output with social icon.
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.

twentynineteen_add_dropdown_icons( $item_output, $item, $depth, $args )   X-Ref
Add a dropdown icon to top-level menu items.

return: string Nav menu item start element.
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.



Generated: Tue Dec 24 01:00:02 2024 Cross-referenced by PHPXref 0.7.1