Changeset 48264
- Timestamp:
- 07/01/2020 01:50:28 PM (5 years ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/functions.php
r48103 r48264 145 145 // Setup the WordPress core custom background feature. 146 146 147 /**148 * Filter Twenty Fifteen custom-header support arguments.149 *150 * @since Twenty Fifteen 1.0151 *152 * @param array $args {153 * An array of custom-header support arguments.154 *155 * @type string $default-color Default color of the header.156 * @type string $default-attachment Default attachment of the header.157 * }158 */159 147 add_theme_support( 160 148 'custom-background', 149 /** 150 * Filter Twenty Fifteen custom-background support arguments. 151 * 152 * @since Twenty Fifteen 1.0 153 * 154 * @param array $args { 155 * An array of custom-background support arguments. 156 * 157 * @type string $default-color Default color of the background. 158 * @type string $default-attachment Default attachment of the background. 159 * } 160 */ 161 161 apply_filters( 162 162 'twentyfifteen_custom_background_args', -
trunk/src/wp-content/themes/twentyfifteen/inc/custom-header.php
r47122 r48264 17 17 $default_text_color = trim( $color_scheme[4], '#' ); 18 18 19 /**20 * Filter Twenty Fifteen custom-header support arguments.21 *22 * @since Twenty Fifteen 1.023 *24 * @param array $args {25 * An array of custom-header support arguments.26 *27 * @type string $default_text_color Default color of the header text.28 * @type int $width Width in pixels of the custom header image. Default 954.29 * @type int $height Height in pixels of the custom header image. Default 1300.30 * @type string $wp-head-callback Callback function used to styles the header image and text31 * displayed on the blog.32 * }33 */34 19 add_theme_support( 35 20 'custom-header', 21 /** 22 * Filter Twenty Fifteen custom-header support arguments. 23 * 24 * @since Twenty Fifteen 1.0 25 * 26 * @param array $args { 27 * An array of custom-header support arguments. 28 * 29 * @type string $default_text_color Default color of the header text. 30 * @type int $width Width in pixels of the custom header image. Default 954. 31 * @type int $height Height in pixels of the custom header image. Default 1300. 32 * @type string $wp-head-callback Callback function used to styles the header image and text 33 * displayed on the blog. 34 * } 35 */ 36 36 apply_filters( 37 37 'twentyfifteen_custom_header_args', -
trunk/src/wp-content/themes/twentyfourteen/functions.php
r47808 r48264 170 170 add_theme_support( 171 171 'custom-background', 172 /** 173 * Filter Twenty Fourteen custom-background support arguments. 174 * 175 * @since Twenty Fourteen 1.0 176 * 177 * @param array $args { 178 * An array of custom-background support arguments. 179 * 180 * @type string $default-color Default color of the background. 181 * } 182 */ 172 183 apply_filters( 173 184 'twentyfourteen_custom_background_args', -
trunk/src/wp-content/themes/twentyfourteen/inc/custom-header.php
r47219 r48264 18 18 */ 19 19 function twentyfourteen_custom_header_setup() { 20 /**21 * Filter Twenty Fourteen custom-header support arguments.22 *23 * @since Twenty Fourteen 1.024 *25 * @param array $args {26 * An array of custom-header support arguments.27 *28 * @type bool $header_text Whether to display custom header text. Default false.29 * @type int $width Width in pixels of the custom header image. Default 1260.30 * @type int $height Height in pixels of the custom header image. Default 240.31 * @type bool $flex_height Whether to allow flexible-height header images. Default true.32 * @type string $admin_head_callback Callback function used to style the image displayed in33 * the Appearance > Header screen.34 * @type string $admin_preview_callback Callback function used to create the custom header markup in35 * the Appearance > Header screen.36 * }37 */38 20 add_theme_support( 39 21 'custom-header', 22 /** 23 * Filter Twenty Fourteen custom-header support arguments. 24 * 25 * @since Twenty Fourteen 1.0 26 * 27 * @param array $args { 28 * An array of custom-header support arguments. 29 * 30 * @type bool $header_text Whether to display custom header text. Default false. 31 * @type int $width Width in pixels of the custom header image. Default 1260. 32 * @type int $height Height in pixels of the custom header image. Default 240. 33 * @type bool $flex_height Whether to allow flexible-height header images. Default true. 34 * @type string $admin_head_callback Callback function used to style the image displayed in 35 * the Appearance > Header screen. 36 * @type string $admin_preview_callback Callback function used to create the custom header markup in 37 * the Appearance > Header screen. 38 * } 39 */ 40 40 apply_filters( 41 41 'twentyfourteen_custom_header_args', -
trunk/src/wp-content/themes/twentyseventeen/inc/custom-header.php
r47122 r48264 17 17 function twentyseventeen_custom_header_setup() { 18 18 19 /**20 * Filter Twenty Seventeen custom-header support arguments.21 *22 * @since Twenty Seventeen 1.023 *24 * @param array $args {25 * An array of custom-header support arguments.26 *27 * @type string $default-image Default image of the header.28 * @type int $width Width in pixels of the custom header image. Default 954.29 * @type int $height Height in pixels of the custom header image. Default 1300.30 * @type string $flex-height Flex support for height of header.31 * @type string $video Video support for header.32 * @type string $wp-head-callback Callback function used to styles the header image and text33 * displayed on the blog.34 * }35 */36 19 add_theme_support( 37 20 'custom-header', 21 /** 22 * Filter Twenty Seventeen custom-header support arguments. 23 * 24 * @since Twenty Seventeen 1.0 25 * 26 * @param array $args { 27 * An array of custom-header support arguments. 28 * 29 * @type string $default-image Default image of the header. 30 * @type int $width Width in pixels of the custom header image. Default 954. 31 * @type int $height Height in pixels of the custom header image. Default 1300. 32 * @type string $flex-height Flex support for height of header. 33 * @type string $video Video support for header. 34 * @type string $wp-head-callback Callback function used to styles the header image and text 35 * displayed on the blog. 36 * } 37 */ 38 38 apply_filters( 39 39 'twentyseventeen_custom_header_args', -
trunk/src/wp-content/themes/twentysixteen/inc/customizer.php
r48067 r48264 20 20 $default_text_color = trim( $color_scheme[3], '#' ); 21 21 22 /**23 * Filter the arguments used when adding 'custom-background' support in Twenty Sixteen.24 *25 * @since Twenty Sixteen 1.026 *27 * @param array $args {28 * An array of custom-background support arguments.29 *30 * @type string $default-color Default color of the background.31 * }32 */33 22 add_theme_support( 34 23 'custom-background', 24 /** 25 * Filter the arguments used when adding 'custom-background' support in Twenty Sixteen. 26 * 27 * @since Twenty Sixteen 1.0 28 * 29 * @param array $args { 30 * An array of custom-background support arguments. 31 * 32 * @type string $default-color Default color of the background. 33 * } 34 */ 35 35 apply_filters( 36 36 'twentysixteen_custom_background_args', … … 41 41 ); 42 42 43 /**44 * Filter the arguments used when adding 'custom-header' support in Twenty Sixteen.45 *46 * @since Twenty Sixteen 1.047 *48 * @param array $args {49 * An array of custom-header support arguments.50 *51 * @type string $default-text-color Default color of the header text.52 * @type int $width Width in pixels of the custom header image. Default 1200.53 * @type int $height Height in pixels of the custom header image. Default 280.54 * @type bool $flex-height Whether to allow flexible-height header images. Default true.55 * @type callable $wp-head-callback Callback function used to style the header image and text56 * displayed on the blog.57 * }58 */59 43 add_theme_support( 60 44 'custom-header', 45 /** 46 * Filter the arguments used when adding 'custom-header' support in Twenty Sixteen. 47 * 48 * @since Twenty Sixteen 1.0 49 * 50 * @param array $args { 51 * An array of custom-header support arguments. 52 * 53 * @type string $default-text-color Default color of the header text. 54 * @type int $width Width in pixels of the custom header image. Default 1200. 55 * @type int $height Height in pixels of the custom header image. Default 280. 56 * @type bool $flex-height Whether to allow flexible-height header images. Default true. 57 * @type callable $wp-head-callback Callback function used to style the header image and text 58 * displayed on the blog. 59 * } 60 */ 61 61 apply_filters( 62 62 'twentysixteen_custom_header_args', -
trunk/src/wp-content/themes/twentytwenty/template-parts/entry-header.php
r47122 r48264 21 21 22 22 <?php 23 24 25 26 27 28 29 23 /** 24 * Allow child themes and plugins to filter the display of the categories in the entry header. 25 * 26 * @since Twenty Twenty 1.0 27 * 28 * @param bool Whether to show the categories in header, Default true. 29 */ 30 30 $show_categories = apply_filters( 'twentytwenty_show_categories_in_entry_header', true ); 31 31
Note: See TracChangeset
for help on using the changeset viewer.