[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    




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

SVG icons related functions and filters

File Size: 220 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.

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

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

param: string  $item_output The menu item output.
param: WP_Post $item        Menu item object.
param: int     $depth       Depth of the menu.
param: array   $args        wp_nav_menu() arguments.
return: string  $item_output The menu item output with social icon.

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

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

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

return: array $social_links_icons

Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1