Changeset 59090
- Timestamp:
- 09/25/2024 06:06:27 PM (16 months ago)
- Location:
- trunk/src/wp-content/themes/twentynineteen
- Files:
-
- 3 edited
-
classes/class-twentynineteen-svg-icons.php (modified) (2 diffs)
-
header.php (modified) (1 diff)
-
inc/helper-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php
r56547 r59090 24 24 /** 25 25 * Gets the SVG code for a given icon. 26 * 27 * @param string $group The group of icons ('ui' or 'social'). 28 * @param string $icon The specific icon to retrieve. 29 * @param int $size The desired width and height for the SVG icon. 26 30 */ 27 31 public static function get_svg( $group, $icon, $size ) { … … 45 49 /** 46 50 * Detects the social network from a URL and returns the SVG code for its icon. 51 * 52 * @param string $uri The URL of the social network link. 53 * @param int $size The desired width and height for the SVG icon. 47 54 */ 48 55 public static function get_social_link_svg( $uri, $size ) { -
trunk/src/wp-content/themes/twentynineteen/header.php
r59026 r59090 11 11 * @since Twenty Nineteen 1.0 12 12 */ 13 13 14 ?><!doctype html> 14 15 <html <?php language_attributes(); ?>> -
trunk/src/wp-content/themes/twentynineteen/inc/helper-functions.php
r49602 r59090 33 33 * 34 34 * @see get_comment_class() 35 * 36 * @param WP_Comment|null $comment The comment object to check. Defaults to the current comment. 37 * @return bool True if the comment is by the author of the post, false otherwise. 35 38 */ 36 39 function twentynineteen_is_comment_by_post_author( $comment = null ) { … … 83 86 84 87 /** 85 * Converts HSL to HEX colors. 88 * Converts HSL to HEX or RGB colors. 89 * 90 * @param float $h The hue component (0-360). 91 * @param float $s The saturation component (0-100). 92 * @param float $l The lightness component (0-100). 93 * @param bool $to_hex Whether to convert to HEX format (true) or RGB (false). Default true. 86 94 */ 87 95 function twentynineteen_hsl_hex( $h, $s, $l, $to_hex = true ) {
Note: See TracChangeset
for help on using the changeset viewer.