[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwenty/classes/ -> class-twentytwenty-svg-icons.php (summary)

Custom icons for this theme.

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

Defines 1 class

TwentyTwenty_SVG_Icons:: (2 methods):
  get_svg()
  get_social_link_svg()


Class: TwentyTwenty_SVG_Icons  - X-Ref

SVG ICONS CLASS
Retrieve the SVG code for the specified icon. Based on a solution in Twenty Nineteen.

get_svg( $icon, $group = 'ui', $color = ')   X-Ref
GET SVG CODE
Get the SVG code for the specified icon

param: string $icon  Icon name.
param: string $group Icon group.
param: string $color Color.

get_social_link_svg( $uri )   X-Ref
GET SOCIAL LINK SVG
Detects the social network from a URL and returns the SVG code for its icon.

param: string $uri The URL to retrieve SVG for.



Generated : Fri Apr 19 08:20:01 2024 Cross-referenced by PHPXref