diff --git src/wp-content/themes/twentynineteen/inc/icon-functions.php src/wp-content/themes/twentynineteen/inc/icon-functions.php
index 76dba55094..d6f5722181 100644
|
|
|
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Gets the SVG code for a given icon. |
| | 12 | * |
| | 13 | * @param string $icon The specific icon to retrieve. |
| | 14 | * @param int $size The desired width and height for the SVG icon. |
| 12 | 15 | */ |
| 13 | 16 | function twentynineteen_get_icon_svg( $icon, $size = 24 ) { |
| 14 | 17 | return TwentyNineteen_SVG_Icons::get_svg( 'ui', $icon, $size ); |
| … |
… |
function twentynineteen_get_icon_svg( $icon, $size = 24 ) { |
| 16 | 19 | |
| 17 | 20 | /** |
| 18 | 21 | * Gets the SVG code for a given social icon. |
| | 22 | * |
| | 23 | * @param string $icon The specific icon to retrieve. |
| | 24 | * @param int $size The desired width and height for the SVG icon. |
| 19 | 25 | */ |
| 20 | 26 | function twentynineteen_get_social_icon_svg( $icon, $size = 24 ) { |
| 21 | 27 | return TwentyNineteen_SVG_Icons::get_svg( 'social', $icon, $size ); |
| … |
… |
function twentynineteen_get_social_icon_svg( $icon, $size = 24 ) { |
| 23 | 29 | |
| 24 | 30 | /** |
| 25 | 31 | * Detects the social network from a URL and returns the SVG code for its icon. |
| | 32 | * |
| | 33 | * @param string $icon The specific icon to retrieve. |
| | 34 | * @param int $size The desired width and height for the SVG icon. |
| 26 | 35 | */ |
| 27 | 36 | function twentynineteen_get_social_link_svg( $uri, $size = 24 ) { |
| 28 | 37 | return TwentyNineteen_SVG_Icons::get_social_link_svg( $uri, $size ); |
| … |
… |
function twentynineteen_get_social_link_svg( $uri, $size = 24 ) { |
| 33 | 42 | * |
| 34 | 43 | * @param string $item_output The menu item's starting HTML output. |
| 35 | 44 | * @param WP_Post $item Menu item data object. |
| 36 | | * @param int $depth Depth of the menu. Used for padding. |
| 37 | 45 | * @param stdClass $args An object of wp_nav_menu() arguments. |
| 38 | 46 | * @return string The menu item output with social icon. |
| 39 | 47 | */ |
| … |
… |
add_filter( 'walker_nav_menu_start_el', 'twentynineteen_nav_menu_social_icons', |
| 56 | 64 | * |
| 57 | 65 | * @param string $item_output The menu item's starting HTML output. |
| 58 | 66 | * @param WP_Post $item Menu item data object. |
| 59 | | * @param int $depth Depth of the menu. Used for padding. |
| 60 | 67 | * @param stdClass $args An object of wp_nav_menu() arguments. |
| 61 | 68 | * @return string Nav menu item start element. |
| 62 | 69 | */ |