<?php
/**
 * @package Classic Tour Booking
 * Setup the WordPress core custom header feature.
 *
 * @uses classic_tour_booking_header_style()
 */
function classic_tour_booking_custom_header_setup() {
	add_theme_support( 'custom-header', apply_filters( 'classic_tour_booking_custom_header_args', array(		
		'default-text-color'     => 'fff',
		'width'                  => 2000,
		'height'                 => 280,
		'wp-head-callback'       => 'classic_tour_booking_header_style',		
	) ) );
}
add_action( 'after_setup_theme', 'classic_tour_booking_custom_header_setup' );

if ( ! function_exists( 'classic_tour_booking_header_style' ) ) :
/**
 * Styles the header image and text displayed on the blog
 *
 * @see classic_tour_booking_custom_header_setup().
 */
function classic_tour_booking_header_style() {
	$header_text_color = get_header_textcolor();
	?>
	<style type="text/css">
	<?php
		//Check if user has defined any header image.
		if ( get_header_image() || get_header_textcolor() ) :
	?>
		.header {
			background: url(<?php echo esc_url( get_header_image() ); ?>) no-repeat !important;
			background-position: center top; background-size:cover !important;
		}
	<?php endif; ?>	

	.header .site-title a {
		color: <?php echo esc_attr(get_theme_mod('classic_tour_booking_sitetitle_color')); ?>;
	}

	.header .site-description {
		color: <?php echo esc_attr(get_theme_mod('classic_tour_booking_siteTagline_color')); ?>;
	}
	#footer h3 {
		color: <?php echo esc_attr(get_theme_mod('classic_tour_booking_footertitle_color')); ?> !important;

	}
	#footer ul li a {
		color: <?php echo esc_attr(get_theme_mod('classic_tour_booking_footerlist_color')); ?>;

	}
	.footer-widget {
		background-color: <?php echo esc_attr(get_theme_mod('classic_tour_booking_footerbg_color')); ?>;
	}
	</style>
	<?php
}
endif;