Skip to content

Commit

Permalink
Fix indentation & space usage
Browse files Browse the repository at this point in the history
  • Loading branch information
IanDelMar committed Nov 18, 2018
1 parent b653d6f commit 7ee9cfd
Showing 1 changed file with 25 additions and 17 deletions.
42 changes: 25 additions & 17 deletions inc/custom-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

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() {

/**
Expand All @@ -22,28 +22,36 @@ function understrap_custom_header_setup() {
* @param array $args {
* 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 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 string $wp-head-callback Callback function used to styles the header image and text
* 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(
'default-image' => get_parent_theme_file_uri( '/img/header.jpg' ),
'width' => 2000,
'height' => 1200,
'flex-height' => true,
) ) );
add_theme_support(
'custom-header',
apply_filters(
'understrap_custom_header_args',
array(
'default-image' => get_parent_theme_file_uri( '/img/header.jpg' ),
'width' => 2000,
'height' => 1200,
'flex-height' => true,
)
)
);

register_default_headers( array(
'default-image' => array(
'url' => '%s/img/header.jpg',
'thumbnail_url' => '%s/img/header.jpg',
'description' => __( 'Default Header Image', 'understrap' ),
),
) );
register_default_headers(
array(
'default-image' => array(
'url' => '%s/img/header.jpg',
'thumbnail_url' => '%s/img/header.jpg',
'description' => __( 'Default Header Image', 'understrap' ),
),
)
);
}
}
}

0 comments on commit 7ee9cfd

Please sign in to comment.