[ Index ]

WordPress 5.4.1

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




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

SVG Icons class

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

Defines 1 class

TwentyNineteen_SVG_Icons:: (2 methods):

Class: TwentyNineteen_SVG_Icons  - X-Ref

This class is in charge of displaying SVG icons across the site.

Place each <svg> source on its own array key, without adding the
both `width` and `height` attributes, since these are added dynamically,
before rendering the SVG code.

All icons are assumed to have equal width and height, hence the option
to only specify a `$size` parameter in the svg methods.

get_svg( $group, $icon, $size )   X-Ref
Gets the SVG code for a given icon.

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

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