| [ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
SVG Icons class
| File Size: | 241 lines (52 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Twenty_Twenty_One_SVG_Icons:: (2 methods):
get_svg()
get_social_link_svg()
Class: Twenty_Twenty_One_SVG_Icons - X-Ref
This class is in charge of displaying SVG icons across the site.| get_svg( $group, $icon, $size ) X-Ref |
| Gets the SVG code for a given icon. return: string since: Twenty Twenty-One 1.0 param: string $group The icon group. param: string $icon The icon. param: int $size The icon-size in pixels. |
| get_social_link_svg( $uri, $size ) X-Ref |
| Detects the social network from a URL and returns the SVG code for its icon. return: string|null since: Twenty Twenty-One 1.0 param: string $uri Social link. param: int $size The icon-size in pixels. |
| Generated: Sat Nov 8 01:00:02 2025 | Cross-referenced by PHPXref 0.7.1 |