[ Index ]

PHP Cross Reference of WordPress




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

SVG icons related functions and filters

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

Defines 5 functions


Functions that are not part of a class:

twentyseventeen_include_svg_icons()   X-Ref
Add SVG definitions to the footer.

twentyseventeen_get_svg( $args = array()   X-Ref
Return SVG markup.

return: string SVG markup.
param: array $args {

twentyseventeen_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.

twentyseventeen_dropdown_icon_to_menu_link( $title, $item, $args, $depth )   X-Ref
Add dropdown icon if menu item has children.

return: string The menu item's title with dropdown icon.
param: string   $title The menu item's title.
param: WP_Post  $item  The current menu item.
param: stdClass $args  An object of wp_nav_menu() arguments.
param: int      $depth Depth of menu item. Used for padding.

twentyseventeen_social_links_icons()   X-Ref
Returns an array of supported social links (URL and icon name).

return: array Array of social links icons.

Generated: Mon Jun 27 01:00:02 2022 Cross-referenced by PHPXref 0.7.1