| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
SVG Icons class
| File Size: | 466 lines (62 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
TwentyNineteen_SVG_Icons:: (2 methods):
get_svg()
get_social_link_svg()
Class: TwentyNineteen_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. param: string $group The group of icons ('ui' or 'social'). param: string $icon The specific icon to retrieve. param: int $size The desired width and height for the SVG icon. return: string|null SVG code for the icon, or null if not found. |
| get_social_link_svg( $uri, $size ) X-Ref |
| Detects the social network from a URL and returns the SVG code for its icon. param: string $uri The URL of the social network link. param: int $size The desired width and height for the SVG icon. return: string|null SVG code for the social link icon, or null if not found. |
| Generated : Sat Apr 18 08:20:10 2026 | Cross-referenced by PHPXref |