<?php

$boxing_martial_arts_tp_theme_css = '';

//theme-color
$boxing_martial_arts_tp_color_option = get_theme_mod('boxing_martial_arts_tp_color_option');

// 1st color
$boxing_martial_arts_tp_color_option = get_theme_mod('boxing_martial_arts_tp_color_option', '#D72323');
if ($boxing_martial_arts_tp_color_option) {
	$boxing_martial_arts_tp_theme_css .= ':root {';
	$boxing_martial_arts_tp_theme_css .= '--color-primary1: ' . esc_attr($boxing_martial_arts_tp_color_option) . ';';
	$boxing_martial_arts_tp_theme_css .= '}';
}
//preloader

$boxing_martial_arts_tp_preloader_color1_option = get_theme_mod('boxing_martial_arts_tp_preloader_color1_option');
$boxing_martial_arts_tp_preloader_color2_option = get_theme_mod('boxing_martial_arts_tp_preloader_color2_option');
$boxing_martial_arts_tp_preloader_bg_color_option = get_theme_mod('boxing_martial_arts_tp_preloader_bg_color_option');

if($boxing_martial_arts_tp_preloader_color1_option != false){
$boxing_martial_arts_tp_theme_css .='.center1{';
	$boxing_martial_arts_tp_theme_css .='border-color: '.esc_attr($boxing_martial_arts_tp_preloader_color1_option).' !important;';
$boxing_martial_arts_tp_theme_css .='}';
}
if($boxing_martial_arts_tp_preloader_color1_option != false){
$boxing_martial_arts_tp_theme_css .='.center1 .ring::before{';
	$boxing_martial_arts_tp_theme_css .='background: '.esc_attr($boxing_martial_arts_tp_preloader_color1_option).' !important;';
$boxing_martial_arts_tp_theme_css .='}';
}
if($boxing_martial_arts_tp_preloader_color2_option != false){
$boxing_martial_arts_tp_theme_css .='.center2{';
	$boxing_martial_arts_tp_theme_css .='border-color: '.esc_attr($boxing_martial_arts_tp_preloader_color2_option).' !important;';
$boxing_martial_arts_tp_theme_css .='}';
}
if($boxing_martial_arts_tp_preloader_color2_option != false){
$boxing_martial_arts_tp_theme_css .='.center2 .ring::before{';
	$boxing_martial_arts_tp_theme_css .='background: '.esc_attr($boxing_martial_arts_tp_preloader_color2_option).' !important;';
$boxing_martial_arts_tp_theme_css .='}';
}
if($boxing_martial_arts_tp_preloader_bg_color_option != false){
$boxing_martial_arts_tp_theme_css .='.loader{';
	$boxing_martial_arts_tp_theme_css .='background: '.esc_attr($boxing_martial_arts_tp_preloader_bg_color_option).';';
$boxing_martial_arts_tp_theme_css .='}';
}

// footer-bg-color
$boxing_martial_arts_tp_footer_bg_color_option = get_theme_mod('boxing_martial_arts_tp_footer_bg_color_option');

if($boxing_martial_arts_tp_footer_bg_color_option != false){
$boxing_martial_arts_tp_theme_css .='#footer{';
	$boxing_martial_arts_tp_theme_css .='background: '.esc_attr($boxing_martial_arts_tp_footer_bg_color_option).' !important;';
$boxing_martial_arts_tp_theme_css .='}';
}

// logo tagline color
$boxing_martial_arts_site_tagline_color = get_theme_mod('boxing_martial_arts_site_tagline_color');

if($boxing_martial_arts_site_tagline_color != false){
$boxing_martial_arts_tp_theme_css .='.logo h1 a, .logo p a{';
$boxing_martial_arts_tp_theme_css .='color: '.esc_attr($boxing_martial_arts_site_tagline_color).';';
$boxing_martial_arts_tp_theme_css .='}';
}

$boxing_martial_arts_logo_tagline_color = get_theme_mod('boxing_martial_arts_logo_tagline_color');
if($boxing_martial_arts_logo_tagline_color != false){
$boxing_martial_arts_tp_theme_css .='p.site-description{';
$boxing_martial_arts_tp_theme_css .='color: '.esc_attr($boxing_martial_arts_logo_tagline_color).';';
$boxing_martial_arts_tp_theme_css .='}';
}

// footer widget title color
$boxing_martial_arts_footer_widget_title_color = get_theme_mod('boxing_martial_arts_footer_widget_title_color');
if($boxing_martial_arts_footer_widget_title_color != false){
$boxing_martial_arts_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
$boxing_martial_arts_tp_theme_css .='color: '.esc_attr($boxing_martial_arts_footer_widget_title_color).';';
$boxing_martial_arts_tp_theme_css .='}';
}

// copyright text color
$boxing_martial_arts_footer_copyright_text_color = get_theme_mod('boxing_martial_arts_footer_copyright_text_color');
if($boxing_martial_arts_footer_copyright_text_color != false){
$boxing_martial_arts_tp_theme_css .='#footer .site-info p, #footer .site-info a {';
$boxing_martial_arts_tp_theme_css .='color: '.esc_attr($boxing_martial_arts_footer_copyright_text_color).';';
$boxing_martial_arts_tp_theme_css .='}';
}

// header image title color
$boxing_martial_arts_header_image_title_text_color = get_theme_mod('boxing_martial_arts_header_image_title_text_color');
if($boxing_martial_arts_header_image_title_text_color != false){
$boxing_martial_arts_tp_theme_css .='.box-text h2{';
$boxing_martial_arts_tp_theme_css .='color: '.esc_attr($boxing_martial_arts_header_image_title_text_color).';';
$boxing_martial_arts_tp_theme_css .='}';
}

// menu color
$boxing_martial_arts_menu_color = get_theme_mod('boxing_martial_arts_menu_color');
if($boxing_martial_arts_menu_color != false){
$boxing_martial_arts_tp_theme_css .='.main-navigation a{';
$boxing_martial_arts_tp_theme_css .='color: '.esc_attr($boxing_martial_arts_menu_color).';';
$boxing_martial_arts_tp_theme_css .='}';
}