updated theme Twenty Nineteen
version 3.1
This commit is contained in:
@ -9,6 +9,9 @@
|
||||
|
||||
/**
|
||||
* Gets the SVG code for a given icon.
|
||||
*
|
||||
* @param string $icon The specific icon to retrieve.
|
||||
* @param int $size The desired width and height for the SVG icon.
|
||||
*/
|
||||
function twentynineteen_get_icon_svg( $icon, $size = 24 ) {
|
||||
return TwentyNineteen_SVG_Icons::get_svg( 'ui', $icon, $size );
|
||||
@ -16,6 +19,9 @@ function twentynineteen_get_icon_svg( $icon, $size = 24 ) {
|
||||
|
||||
/**
|
||||
* Gets the SVG code for a given social icon.
|
||||
*
|
||||
* @param string $icon The specific icon to retrieve.
|
||||
* @param int $size The desired width and height for the SVG icon.
|
||||
*/
|
||||
function twentynineteen_get_social_icon_svg( $icon, $size = 24 ) {
|
||||
return TwentyNineteen_SVG_Icons::get_svg( 'social', $icon, $size );
|
||||
@ -23,6 +29,9 @@ function twentynineteen_get_social_icon_svg( $icon, $size = 24 ) {
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
function twentynineteen_get_social_link_svg( $uri, $size = 24 ) {
|
||||
return TwentyNineteen_SVG_Icons::get_social_link_svg( $uri, $size );
|
||||
|
Reference in New Issue
Block a user