Skip to content

Commit

Permalink
Twenty Nineteen: Add more missing documentation for helper function p…
Browse files Browse the repository at this point in the history
…arameters.

Follow-up to [59090].

Props viralsampat.
See #62112.

git-svn-id: https://develop.svn.wordpress.org/trunk@59102 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Sep 27, 2024
1 parent 2952e56 commit 0edee27
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/wp-content/themes/twentynineteen/inc/icon-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,29 @@

/**
* 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 );
}

/**
* 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 );
}

/**
* 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 );
Expand Down

0 comments on commit 0edee27

Please sign in to comment.