<?php
/**
 * Sample implementation of the Custom Header feature
 * @package Spa Parlor
 */

/**
 * Set up the WordPress core custom header feature.
 *
 * @uses spa_parlor_header_style()
 */
function spa_parlor_custom_header_setup()
{
    add_theme_support('custom-header',
        array(
			'default-image' => get_parent_theme_file_uri( '/assets/images/default-header-image.png' ),
			'width' => 1920,
			'flex-width' => true,
			'height' => 400,
			'flex-height' => true,
			'header-text' => false,
	));
    register_default_headers( array(
        'default-image' => array(
            'url'           => '%s/assets/images/default-header-image.png',
            'thumbnail_url' => '%s/assets/images/default-header-image.png',
            'description'   => __( 'Default Header Image', 'spa-parlor' ),
        ),
    ) );
}

add_action('after_setup_theme', 'spa_parlor_custom_header_setup');