Fix indentation & space usage
This commit is contained in:
parent
b653d6f2ce
commit
7ee9cfd18e
|
@ -11,7 +11,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
|
||||||
add_action( 'after_setup_theme', 'understrap_custom_header_setup' );
|
add_action( 'after_setup_theme', 'understrap_custom_header_setup' );
|
||||||
|
|
||||||
if ( ! function_exists ( 'understrap_custom_header_setup' ) ) {
|
if ( ! function_exists( 'understrap_custom_header_setup' ) ) {
|
||||||
function understrap_custom_header_setup() {
|
function understrap_custom_header_setup() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -22,28 +22,36 @@ if ( ! function_exists ( 'understrap_custom_header_setup' ) ) {
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
* An array of custom-header support arguments.
|
* An array of custom-header support arguments.
|
||||||
*
|
*
|
||||||
* @type string $default-image Default image of the header.
|
* @type string $default-image Default image of the header.
|
||||||
* @type string $default_text_color Default color of the header text.
|
* @type string $default_text_color Default color of the header text.
|
||||||
* @type int $width Width in pixels of the custom header image. Default 954.
|
* @type int $width Width in pixels of the custom header image. Default 954.
|
||||||
* @type int $height Height in pixels of the custom header image. Default 1300.
|
* @type int $height Height in pixels of the custom header image. Default 1300.
|
||||||
* @type string $wp-head-callback Callback function used to styles the header image and text
|
* @type string $wp-head-callback Callback function used to styles the header image and text
|
||||||
* displayed on the blog.
|
* displayed on the blog.
|
||||||
* @type string $flex-height Flex support for height of header.
|
* @type string $flex-height Flex support for height of header.
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
add_theme_support( 'custom-header', apply_filters( 'understrap_custom_header_args', array(
|
add_theme_support(
|
||||||
'default-image' => get_parent_theme_file_uri( '/img/header.jpg' ),
|
'custom-header',
|
||||||
'width' => 2000,
|
apply_filters(
|
||||||
'height' => 1200,
|
'understrap_custom_header_args',
|
||||||
'flex-height' => true,
|
array(
|
||||||
) ) );
|
'default-image' => get_parent_theme_file_uri( '/img/header.jpg' ),
|
||||||
|
'width' => 2000,
|
||||||
|
'height' => 1200,
|
||||||
|
'flex-height' => true,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
register_default_headers( array(
|
register_default_headers(
|
||||||
'default-image' => array(
|
array(
|
||||||
'url' => '%s/img/header.jpg',
|
'default-image' => array(
|
||||||
'thumbnail_url' => '%s/img/header.jpg',
|
'url' => '%s/img/header.jpg',
|
||||||
'description' => __( 'Default Header Image', 'understrap' ),
|
'thumbnail_url' => '%s/img/header.jpg',
|
||||||
),
|
'description' => __( 'Default Header Image', 'understrap' ),
|
||||||
) );
|
),
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue