<?php

$food_blogger_hub_tp_theme_css = '';

$food_blogger_hub_tp_color_option = get_theme_mod('food_blogger_hub_tp_color_option');

// 1st color
$food_blogger_hub_tp_color_option = get_theme_mod('food_blogger_hub_tp_color_option', '#ff5c29');
if ($food_blogger_hub_tp_color_option) {
	$food_blogger_hub_tp_theme_css .= ':root {';
	$food_blogger_hub_tp_theme_css .= '--color-primary1: ' . esc_attr($food_blogger_hub_tp_color_option) . ';';
	$food_blogger_hub_tp_theme_css .= '}';
}

//preloader

$food_blogger_hub_tp_preloader_color1_option = get_theme_mod('food_blogger_hub_tp_preloader_color1_option');
$food_blogger_hub_tp_preloader_color2_option = get_theme_mod('food_blogger_hub_tp_preloader_color2_option');
$food_blogger_hub_tp_preloader_bg_color_option = get_theme_mod('food_blogger_hub_tp_preloader_bg_color_option');

if($food_blogger_hub_tp_preloader_color1_option != false){
$food_blogger_hub_tp_theme_css .='.center1{';
	$food_blogger_hub_tp_theme_css .='border-color: '.esc_attr($food_blogger_hub_tp_preloader_color1_option).' !important;';
$food_blogger_hub_tp_theme_css .='}';
}
if($food_blogger_hub_tp_preloader_color1_option != false){
$food_blogger_hub_tp_theme_css .='.center1 .ring::before{';
	$food_blogger_hub_tp_theme_css .='background: '.esc_attr($food_blogger_hub_tp_preloader_color1_option).' !important;';
$food_blogger_hub_tp_theme_css .='}';
}
if($food_blogger_hub_tp_preloader_color2_option != false){
$food_blogger_hub_tp_theme_css .='.center2{';
	$food_blogger_hub_tp_theme_css .='border-color: '.esc_attr($food_blogger_hub_tp_preloader_color2_option).' !important;';
$food_blogger_hub_tp_theme_css .='}';
}
if($food_blogger_hub_tp_preloader_color2_option != false){
$food_blogger_hub_tp_theme_css .='.center2 .ring::before{';
	$food_blogger_hub_tp_theme_css .='background: '.esc_attr($food_blogger_hub_tp_preloader_color2_option).' !important;';
$food_blogger_hub_tp_theme_css .='}';
}
if($food_blogger_hub_tp_preloader_bg_color_option != false){
$food_blogger_hub_tp_theme_css .='.loader{';
	$food_blogger_hub_tp_theme_css .='background: '.esc_attr($food_blogger_hub_tp_preloader_bg_color_option).';';
$food_blogger_hub_tp_theme_css .='}';
}

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

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

// slider
$food_blogger_hub_slider = get_theme_mod('food_blogger_hub_slider', true);
if($food_blogger_hub_slider != true){
$food_blogger_hub_tp_theme_css .='.page-template-front-page .headerbox{';
	$food_blogger_hub_tp_theme_css .='position:static;';
$food_blogger_hub_tp_theme_css .='}';
}

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

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

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

// footer widget title color
$food_blogger_hub_footer_widget_title_color = get_theme_mod('food_blogger_hub_footer_widget_title_color');
if($food_blogger_hub_footer_widget_title_color != false){
$food_blogger_hub_tp_theme_css .='#footer h3{';
$food_blogger_hub_tp_theme_css .='color: '.esc_attr($food_blogger_hub_footer_widget_title_color).';';
$food_blogger_hub_tp_theme_css .='}';
}

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

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

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