[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

Custom icons for this theme.

File Size: 328 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.
since: Twenty Twenty 1.0

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.
since: Twenty Twenty 1.0



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1