<?php
/**
 * @package Classic Wedding
 * Setup the WordPress core custom header feature.
 *
 * @uses classic_wedding_header_style()
 */
function classic_wedding_custom_header_setup() {
	add_theme_support( 'custom-header', apply_filters( 'classic_wedding_custom_header_args', array(		
		'default-text-color'     => 'fff',
		'width'                  => 300,
		'height'                 => 2000,
		'wp-head-callback'       => 'classic_wedding_header_style',		
	) ) );
}
add_action( 'after_setup_theme', 'classic_wedding_custom_header_setup' );

if ( ! function_exists( 'classic_wedding_header_style' ) ) :
/**
 * Styles the header image and text displayed on the blog
 *
 * @see classic_wedding_custom_header_setup().
 */
function classic_wedding_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() ) :
	?>
		.bg-color {
			background: url(<?php echo esc_url( get_header_image() ); ?>) no-repeat;
			background-position: center top;
		}
	<?php endif; ?>	


	h1.site-title a, p.site-title a {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_sitetitle_col')); ?>;
	}

	span.site-description {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_sitetagline_col')); ?>;
	}


	.rsvp_button a{
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_header_btntextcol')); ?>;
	}

	.rsvp_button a{
		border-color: <?php echo esc_attr(get_theme_mod('classic_wedding_header_btnbordercol')); ?>;
	}

	.rsvp_button a:hover{
		background: <?php echo esc_attr(get_theme_mod('classic_wedding_header_btnhovercol')); ?> !important;
	}

	.rsvp_button a:hover{
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_header_btntexthovercol')); ?>;
	}

	.rsvp_text p {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_header_leftsdbtxtcol')); ?>;
	}

	.rsvp_text hr {
		border-color: <?php echo esc_attr(get_theme_mod('classic_wedding_header_bordercol')); ?> !important;
	}

	.bg-color {
		background: <?php echo esc_attr(get_theme_mod('classic_wedding_header_bgcol')); ?>;
	}

	.main-nav a {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_header_menucol')); ?>;
	}

	.main-nav a:hover {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_header_menuhovercol')); ?>;

	}

	.main-nav ul ul a {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_header_menusubcol')); ?>;
	}

	.main-nav ul ul a:hover {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_header_menusubhovercol')); ?>;
	}

	.main-nav ul ul {
		background: <?php echo esc_attr(get_theme_mod('classic_wedding_header_submenubgcol')); ?>;
	}

	.main-nav ul ul li {
		border-color: <?php echo esc_attr(get_theme_mod('classic_wedding_header_submenubordercol')); ?> !important;
	}

	.header::-webkit-scrollbar-thumb{
		background: <?php echo esc_attr(get_theme_mod('classic_wedding_header_scrollbarcol')); ?> !important;
	}

	.slide-btn a {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_slider_btntxt_col')); ?>;
	}

	.slide-btn a {
		border-color: <?php echo esc_attr(get_theme_mod('classic_wedding_slider_btnbor_col')); ?>;
	}

	.slide-btn a:hover {
		background: <?php echo esc_attr(get_theme_mod('classic_wedding_slider_btnhover_col')); ?> !important; 
	}

	.slide-btn a:hover {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_slider_btntexthover_col')); ?> !important; 
	}

	.slider-box h1 {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_slider_title_col')); ?>;
	}

	.slider-box p {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_slider_description_col')); ?>;
	}

	.slidesection {
		background: <?php echo esc_attr(get_theme_mod('classic_wedding_slider_opacity_col')); ?>;
	}

	.about_us {
		background: <?php echo esc_attr(get_theme_mod('classic_wedding_about_bg_col')); ?>;
	}

	.img-inner-box img {
		border-color: <?php echo esc_attr(get_theme_mod('classic_wedding_about_imgborder_col')); ?>;
	}

	.content-inner-box {
		background: <?php echo esc_attr(get_theme_mod('classic_wedding_about_box_col')); ?>;
	}

	.content-inner-box {
		border-bottom-color: <?php echo esc_attr(get_theme_mod('classic_wedding_about_boxborderbottom_col')); ?>!important;
	}

	.content-inner-box span {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_about_heading_col')); ?>;
	}

	.content-inner-box span:before, .content-inner-box span:after {
		border-bottom-color: <?php echo esc_attr(get_theme_mod('classic_wedding_about_headingborder_col')); ?> !important;
		border-top-color: <?php echo esc_attr(get_theme_mod('classic_wedding_about_headingborder_col')); ?>!important;

	}

	.about_us .content-inner-box a {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_about_title_col')); ?>;
	}

	.content-inner-box p {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_about_description_col')); ?>;
	}

	.copywrap, .copywrap p, .copywrap p a, #footer .copywrap a {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_footer_copyrightText_col')); ?> !important;
	}

	.copywrap {
		background-color: <?php echo esc_attr(get_theme_mod('classic_wedding_footer_copyrightbg_col')); ?> !important;
	}

	#footer {
		background-color: <?php echo esc_attr(get_theme_mod('classic_wedding_footer_bg_col')); ?>;
	}

	#footer h3 {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_footer_heading_col')); ?>;
	}

	#footer p {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_footer_text_col')); ?>;
	}

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

	#footer a:hover  {
		color: <?php echo esc_attr(get_theme_mod('classic_wedding_footer_listhover_col')); ?>;
	}

	</style>
	<?php 
}
endif;