[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

SVG icons related functions and filters

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

Defines 5 functions

  twentyseventeen_include_svg_icons()
  twentyseventeen_get_svg()
  twentyseventeen_nav_menu_social_icons()
  twentyseventeen_dropdown_icon_to_menu_link()
  twentyseventeen_social_links_icons()

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

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: stdClass $args  An object of wp_nav_menu() arguments.
param: int      $depth Depth of menu item. Used for padding.
return: string 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 Array of social links icons.



Generated : Fri Sep 25 08:20:01 2020 Cross-referenced by PHPXref