div > ul,button,input[type="button"],input[type="submit"],.prev.page-numbers:focus,.prev.page-numbers:hover,.scrollup i,.page-numbers,.tags p a,.post-navigation .nav-previous a,.post-navigation .nav-next a,.comment-reply-link ,.social-icon i:hover{'; $custom_css .='background-color: '.esc_html($tanawul_bakery_theme_color_first).';'; $custom_css .='}'; } if($tanawul_bakery_theme_color_first != false){ $custom_css .=' .contact-detail i, span.carousel-control-prev-icon i:hover,span.carousel-control-next-icon i:hover, #we-offer p, .logo-text h1 a, a, .woocommerce-MyAccount-content a,#sidebox ul li a:hover,.text code{'; $custom_css .='color: '.esc_html($tanawul_bakery_theme_color_first).';'; $custom_css .='}'; } if($tanawul_bakery_theme_color_first != false){ $custom_css .='.readbutton a:hover, .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .post-link a:hover,.scrollup i{'; $custom_css .='border-color: '.esc_html($tanawul_bakery_theme_color_first).';'; $custom_css .='}'; } if($tanawul_bakery_theme_color_first != false){ $custom_css .='.site-footer ul li a:hover{'; $custom_css .='color: '.esc_html($tanawul_bakery_theme_color_first).'!important;'; $custom_css .='}'; } if($tanawul_bakery_theme_color_first != false){ $custom_css .='.woocommerce button.button:hover{'; $custom_css .='background-color: '.esc_html($tanawul_bakery_theme_color_first).'!important;'; $custom_css .='}'; } /*---------------------------Theme color option-------------------*/ $tanawul_bakery_theme_color_second = get_theme_mod('tanawul_bakery_theme_color_second'); if($tanawul_bakery_theme_color_second != false){ $custom_css .='button:hover,button:focus,input[type="button"]:hover,input[type="button"]:focus,input[type="submit"]:hover,input[type="submit"]:focus, .site-footer,.main-navigation li li a.focus, button:hover,#masthead,.comment-reply-link:hover,.page-numbers:hover, .prev.page-numbers:hover,.post-navigation .nav-next a:hover, .post-navigation .nav-previous a:hover,.tags p a:hover{'; $custom_css .='background-color: '.esc_html($tanawul_bakery_theme_color_second).';'; $custom_css .='}'; } if($tanawul_bakery_theme_color_second != false){ $custom_css .='#we-offer h3, #we-offer h4 a, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .blogger h2 a, .post-link a, .main-navigation li li:focus > a,h2.woocommerce-loop-product__title,.woocommerce div.product .product_title, #slider .inner_carousel h2, .readbutton a,#slider .inner_carousel h2, h1, h2, h3, h4, h5, h6, .page .panel-content .entry-title, .page-title, body.page:not(.tanawul-bakery-front-page) .entry-title, .main-navigation li li:focus > a, .main-navigation li li:hover > a,.main-navigation ul ul li a,#slider .inner_carousel h1,#we-offer h2,#we-offer h3 a{'; $custom_css .='color: '.esc_html($tanawul_bakery_theme_color_second).';'; $custom_css .='}'; } if($tanawul_bakery_theme_color_second != false){ $custom_css .='.main-navigation ul ul,.post-link a, #sidebox .widget, .readbutton a{'; $custom_css .='border-color: '.esc_html($tanawul_bakery_theme_color_second).';'; $custom_css .='}'; } if($tanawul_bakery_theme_color_second != false){ $custom_css .='.main-navigation ul ul li:hover{'; $custom_css .='border-left-color: '.esc_html($tanawul_bakery_theme_color_second).';'; $custom_css .='}'; } /*---------------------------Width Layout -------------------*/ $theme_lay = get_theme_mod( 'tanawul_bakery_theme_options','Default'); if($theme_lay == 'Default'){ $custom_css .='body{'; $custom_css .='max-width: 100%;'; $custom_css .='}'; $custom_css .='.page-template-custom-home-page .middle-header{'; $custom_css .='width: 97.3%'; $custom_css .='}'; }else if($theme_lay == 'Wide Layout'){ $custom_css .='body{'; $custom_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;'; $custom_css .='}'; $custom_css .='.page-template-custom-home-page .middle-header{'; $custom_css .='width: 97.7%'; $custom_css .='}'; }else if($theme_lay == 'Box Layout'){ $custom_css .='body{'; $custom_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;'; $custom_css .='}'; } /*--------------------------- Slider Opacity -------------------*/ $slider_layout = get_theme_mod( 'tanawul_bakery_slider_opacity_color','0.6'); if($slider_layout == '0'){ $custom_css .='#slider img{'; $custom_css .='opacity:0'; $custom_css .='}'; }else if($slider_layout == '0.1'){ $custom_css .='#slider img{'; $custom_css .='opacity:0.1'; $custom_css .='}'; }else if($slider_layout == '0.2'){ $custom_css .='#slider img{'; $custom_css .='opacity:0.2'; $custom_css .='}'; }else if($slider_layout == '0.3'){ $custom_css .='#slider img{'; $custom_css .='opacity:0.3'; $custom_css .='}'; }else if($slider_layout == '0.4'){ $custom_css .='#slider img{'; $custom_css .='opacity:0.4'; $custom_css .='}'; }else if($slider_layout == '0.5'){ $custom_css .='#slider img{'; $custom_css .='opacity:0.5'; $custom_css .='}'; }else if($slider_layout == '0.6'){ $custom_css .='#slider img{'; $custom_css .='opacity:0.6'; $custom_css .='}'; }else if($slider_layout == '0.7'){ $custom_css .='#slider img{'; $custom_css .='opacity:0.7'; $custom_css .='}'; }else if($slider_layout == '0.8'){ $custom_css .='#slider img{'; $custom_css .='opacity:0.8'; $custom_css .='}'; }else if($slider_layout == '0.9'){ $custom_css .='#slider img{'; $custom_css .='opacity:0.9'; $custom_css .='}'; } /*---------------------------Slider Content Layout -------------------*/ $slider_layout = get_theme_mod( 'tanawul_bakery_slider_content_option','Left'); if($slider_layout == 'Left'){ $custom_css .='#slider .carousel-caption, #slider .inner_carousel, #slider .inner_carousel h1, #slider .inner_carousel p, #slider .readbutton{'; $custom_css .='text-align:left; left:15%; right:45%;'; $custom_css .='}'; $custom_css .=' @media screen and (max-width: 320px){ .readbutton span{'; $custom_css .='padding:12px;'; $custom_css .='} }'; $custom_css .=' @media screen and (max-width: 1024px){ #slider .inner_carousel p{'; $custom_css .='display:none;'; $custom_css .='} }'; }else if($slider_layout == 'Center'){ $custom_css .='#slider .carousel-caption, #slider .inner_carousel, #slider .inner_carousel h1, #slider .inner_carousel p, #slider .readbutton{'; $custom_css .='text-align:center; left:20%; right:20%;'; $custom_css .='}'; }else if($slider_layout == 'Right'){ $custom_css .='#slider .carousel-caption, #slider .inner_carousel, #slider .inner_carousel h1, #slider .inner_carousel p, #slider .readbutton{'; $custom_css .='text-align:right; left:45%; right:15%;'; $custom_css .='}'; $custom_css .=' @media screen and (max-width: 1024px){ #slider .inner_carousel p{'; $custom_css .='display:none;'; $custom_css .='} }'; $custom_css .=' @media screen and (max-width: 320px){ .readbutton span{'; $custom_css .='padding:12px;'; $custom_css .='} }'; } $show_header = get_theme_mod( 'tanawul_bakery_show_hide_topbar', true); if($show_header == true){ $custom_css .='#masthead{'; $custom_css .=';'; $custom_css .='}'; }else if($show_header == false){ $custom_css .='#masthead{'; $custom_css .='padding: 1em 0;'; $custom_css .='}'; }