[ Index ]

WordPress 5.4.1

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

title

Body

[close]

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

Custom icons for this theme.

File Size: 262 lines (64 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: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1