function go_woo_tabs_center() { $style_ = $back_style = $woo_style_ = ''; $theme_options = fruitful_ret_options("fruitful_theme_options"); $style_ .= '@media only screen and (min-width: 1024px) {body.woocommerce div.product .woocommerce-tabs, body.woocommerce-page div.product .woocommerce-tabs, body.woocommerce #content div.product .woocommerce-tabs, body.woocommerce-page #content div.product .woocommerce-tabs {max-width : 100%; margin-top: 20px;}}' . "\n"; wp_add_inline_style('main-style', fruitful_compress_code($style_)); if ($woo_style_ != '') { wp_add_inline_style('woo-style', fruitful_compress_code($woo_style_)); } }
function fruitful_get_responsive_style() { $style_ = $back_style = $woo_style_ = ''; $theme_options = fruitful_ret_options("fruitful_theme_options"); fruitful_add_custom_fonts(); if (isset($theme_options['responsive']) && $theme_options['responsive'] == 'on') { if (class_exists('woocommerce')) { wp_enqueue_style('woo-style', get_template_directory_uri() . '/woocommerce/woo.css'); } if (!class_exists('ffs')) { wp_enqueue_style('fontawesome-style', get_stylesheet_directory_uri() . '/css/font-awesome.min.css'); } wp_enqueue_style('main-style', get_stylesheet_uri()); } else { if (class_exists('woocommerce')) { wp_enqueue_style('woo-style', get_template_directory_uri() . '/woocommerce/woo-fixed.css'); } if (!class_exists('ffs')) { wp_enqueue_style('fontawesome-style', get_stylesheet_directory_uri() . '/css/font-awesome.min.css'); } wp_enqueue_style('main-style', get_stylesheet_directory_uri() . '/fixed-style.css'); } if (!empty($theme_options['styletheme'])) { if ($theme_options['styletheme'] == 'off') { $style_ .= 'h1 {font-size : ' . esc_attr($theme_options['h1_size']) . 'px; }' . "\n"; $style_ .= 'h2 {font-size : ' . esc_attr($theme_options['h2_size']) . 'px; }' . "\n"; $style_ .= 'h3 {font-size : ' . esc_attr($theme_options['h3_size']) . 'px; }' . "\n"; $style_ .= 'h4 {font-size : ' . esc_attr($theme_options['h4_size']) . 'px; }' . "\n"; $style_ .= 'h5 {font-size : ' . esc_attr($theme_options['h5_size']) . 'px; }' . "\n"; $style_ .= 'h6 {font-size : ' . esc_attr($theme_options['h6_size']) . 'px; }' . "\n"; $style_ .= 'h1, h2, h3, h4, h5, h6 {font-family : ' . esc_attr($theme_options['h_font_family']) . '; } ' . "\n"; $style_ .= '.main-navigation a {font-family : ' . esc_attr($theme_options['m_font_family']) . '; color : ' . esc_attr($theme_options['menu_font_color']) . '; } ' . "\n"; $style_ .= '.main-navigation ul:not(.sub-menu) > li > a, .main-navigation ul:not(.sub-menu) > li:hover > a { font-size : ' . esc_attr($theme_options['m_size']) . 'px; } ' . "\n"; if (!empty($theme_options['menu_bg_color'])) { $style_ .= '.main-navigation {background-color : ' . esc_attr($theme_options['menu_bg_color']) . '; }' . "\n"; } $style_ .= '#header_language_select a {font-family : ' . esc_attr($theme_options['m_font_family']) . ';} ' . "\n"; $style_ .= 'body {font-size : ' . esc_attr($theme_options['p_size']) . 'px; font-family : ' . esc_attr($theme_options['p_font_family']) . '; }' . "\n"; if (!empty($theme_options['background_color'])) { $back_style .= ' background-color : ' . esc_attr($theme_options['background_color']) . '; '; } if (!empty($theme_options['backgroung_img'])) { $bg_url = array(); $bg_url = wp_get_attachment_image_src(intval($theme_options['backgroung_img']), 'full'); $bg_url = esc_url_raw($bg_url[0]); if (isset($theme_options['bg_repeating']) && $theme_options['bg_repeating'] == 'on') { $back_style .= 'background-image : url(' . $bg_url . '); background-repeat : repeat; '; } else { $back_style .= 'background-image : url(' . $bg_url . '); background-repeat : no-repeat; background-size:100% 100%; background-size:cover; background-attachment:fixed; '; } } $style_ .= 'body {' . $back_style . '}' . "\n"; if (!empty($theme_options['container_bg_color'])) { $style_ .= '.page-container .container {background-color : ' . esc_attr($theme_options['container_bg_color']) . '; } ' . "\n"; } /*Header styles*/ if (!empty($theme_options['header_bg_color'])) { $style_ .= '.head-container, .head-container.fixed {background-color : ' . esc_attr($theme_options['header_bg_color']) . '; }' . "\n"; } if (!empty($theme_options['header_img'])) { $header_url = wp_get_attachment_image_src(intval($theme_options['header_img']), 'full'); $header_url = esc_url_raw($header_url[0]); $style_ .= '.head-container {background-image : url(' . esc_attr($header_url) . '); } ' . "\n"; if (!empty($theme_options['header_img_size'])) { if ($theme_options['header_img_size'] == 'full') { $style_ .= '.head-container {background-size :cover; background-position:center center;} ' . "\n"; } else { $style_ .= '@media only screen and (max-width:480px){' . "\n"; $style_ .= '.head-container {background-size :300px; background-position:top center;} ' . "\n"; $style_ .= '}' . "\n"; $style_ .= '@media only screen and (min-width:481px) and (max-width:767px){' . "\n"; $style_ .= '.head-container {background-size :420px; background-position:top center;} ' . "\n"; $style_ .= '}' . "\n"; $style_ .= '@media only screen and (min-width:768px) and (max-width:959px){' . "\n"; $style_ .= '.head-container {background-size :768px; background-position:top center;} ' . "\n"; $style_ .= '}' . "\n"; $style_ .= '@media only screen and (min-width:960px){' . "\n"; $style_ .= '.head-container {background-size :960px; background-position:top center;} ' . "\n"; $style_ .= '}' . "\n"; } } } if (!empty($theme_options['header_height'])) { $style_ .= '.head-container {min-height : ' . esc_attr($theme_options['header_height']) . 'px; }' . "\n"; } if (!empty($theme_options['is_fixed_header'])) { if (isset($theme_options['is_fixed_header']) && $theme_options['is_fixed_header'] == 'on') { $style_ .= '.head-container {position : fixed; }' . "\n"; } else { $style_ .= '.head-container {position : relative; }' . "\n"; } } /*end of header styles*/ if (!empty($theme_options['menu_btn_color'])) { $style_ .= '.main-navigation ul li.current_page_item a, .main-navigation ul li.current-menu-ancestor a, .main-navigation ul li.current-menu-item a, .main-navigation ul li.current-menu-parent a, .main-navigation ul li.current_page_parent a {background-color : ' . esc_attr($theme_options['menu_btn_color']) . '; }' . "\n"; } if (!empty($theme_options['menu_hover_color'])) { $style_ .= '.main-navigation ul li.current_page_item a, .main-navigation ul li.current-menu-ancestor a, .main-navigation ul li.current-menu-item a, .main-navigation ul li.current-menu-parent a, .main-navigation ul li.current_page_parent a {color : ' . esc_attr($theme_options['menu_hover_color']) . '; } ' . "\n"; } $style_ .= '.main-navigation ul > li:hover>a {' . "\n"; if (!empty($theme_options['menu_btn_color'])) { $style_ .= 'background-color : ' . esc_attr($theme_options['menu_btn_color']) . '; ' . "\n"; } if (!empty($theme_options['menu_hover_color'])) { $style_ .= 'color : ' . esc_attr($theme_options['menu_hover_color']) . '; ' . "\n"; } $style_ .= ' } ' . "\n"; /*styles for dropdown menu*/ $style_ .= '#masthead .main-navigation ul > li > ul > li > a {' . "\n"; if (!empty($theme_options['dd_menu_bg_color'])) { $style_ .= 'background-color : ' . esc_attr($theme_options['dd_menu_bg_color']) . '; ' . "\n"; } if (!empty($theme_options['dd_menu_font_color'])) { $style_ .= 'color : ' . esc_attr($theme_options['dd_menu_font_color']) . '; ' . "\n"; } $style_ .= ' } ' . "\n"; $style_ .= '#masthead .main-navigation ul > li > ul > li:hover > a {' . "\n"; if (!empty($theme_options['dd_menu_btn_color'])) { $style_ .= 'background-color : ' . esc_attr($theme_options['dd_menu_btn_color']) . '; ' . "\n"; } if (!empty($theme_options['dd_menu_hover_color'])) { $style_ .= 'color : ' . esc_attr($theme_options['dd_menu_hover_color']) . '; ' . "\n"; } $style_ .= ' } ' . "\n"; $style_ .= '#masthead .main-navigation ul > li ul > li.current-menu-item > a {' . "\n"; if (!empty($theme_options['dd_menu_btn_color'])) { $style_ .= 'background-color : ' . esc_attr($theme_options['dd_menu_btn_color']) . '; ' . "\n"; } if (!empty($theme_options['dd_menu_hover_color'])) { $style_ .= 'color : ' . esc_attr($theme_options['dd_menu_hover_color']) . '; ' . "\n"; } $style_ .= ' } ' . "\n"; $style_ .= '#masthead div .main-navigation ul > li > ul > li > ul a {' . "\n"; if (!empty($theme_options['dd_menu_bg_color'])) { $style_ .= 'background-color : ' . esc_attr($theme_options['dd_menu_bg_color']) . '; ' . "\n"; } if (!empty($theme_options['dd_menu_font_color'])) { $style_ .= 'color : ' . esc_attr($theme_options['dd_menu_font_color']) . '; ' . "\n"; } $style_ .= ' } ' . "\n"; $style_ .= '#masthead div .main-navigation ul > li > ul > li > ul li:hover a {' . "\n"; if (!empty($theme_options['dd_menu_btn_color'])) { $style_ .= 'background-color : ' . esc_attr($theme_options['dd_menu_btn_color']) . '; ' . "\n"; } if (!empty($theme_options['dd_menu_hover_color'])) { $style_ .= 'color : ' . esc_attr($theme_options['dd_menu_hover_color']) . '; ' . "\n"; } $style_ .= ' } ' . "\n"; $style_ .= '#lang-select-block li ul li a{' . "\n"; if (!empty($theme_options['dd_menu_bg_color'])) { $style_ .= 'background-color : ' . esc_attr($theme_options['dd_menu_bg_color']) . '; ' . "\n"; } if (!empty($theme_options['dd_menu_font_color'])) { $style_ .= 'color : ' . esc_attr($theme_options['dd_menu_font_color']) . '; ' . "\n"; } $style_ .= '}' . "\n"; $style_ .= '#lang-select-block li ul li a:hover{' . "\n"; if (!empty($theme_options['dd_menu_btn_color'])) { $style_ .= 'background-color : ' . esc_attr($theme_options['dd_menu_btn_color']) . '; ' . "\n"; } if (!empty($theme_options['dd_menu_hover_color'])) { $style_ .= 'color : ' . esc_attr($theme_options['dd_menu_hover_color']) . '; ' . "\n"; } $style_ .= '}' . "\n"; $style_ .= '#lang-select-block li ul li.active a{' . "\n"; if (!empty($theme_options['dd_menu_btn_color'])) { $style_ .= 'background-color : ' . esc_attr($theme_options['dd_menu_btn_color']) . '; ' . "\n"; } if (!empty($theme_options['dd_menu_hover_color'])) { $style_ .= 'color : ' . esc_attr($theme_options['dd_menu_hover_color']) . '; ' . "\n"; } $style_ .= '}' . "\n"; /*end of styles for dropdown menu*/ /*styles for responsive full width menu*/ if (!empty($theme_options['menu_type_responsive']) && $theme_options['menu_type_responsive'] == 'full_width') { $style_ .= '.resp_full_width_menu .site-header .menu_wrapper{' . "\n"; if (!empty($theme_options['dd_menu_bg_color'])) { $style_ .= 'background-color : ' . esc_attr($theme_options['dd_menu_bg_color']) . '; ' . "\n"; } $style_ .= '}' . "\n"; $style_ .= '.resp_full_width_menu .site-header .menu_wrapper .menu li a{' . "\n"; if (!empty($theme_options['dd_menu_font_color'])) { $style_ .= 'color : ' . esc_attr($theme_options['dd_menu_font_color']) . '; ' . "\n"; } $style_ .= '}' . "\n"; $style_ .= '.resp_full_width_menu .site-header .menu_wrapper .menu li.current-menu-item>a,' . "\n"; $style_ .= '.resp_full_width_menu .site-header .menu_wrapper .menu li.current_page_item>a,' . "\n"; $style_ .= '.resp_full_width_menu .site-header .menu_wrapper .menu a:hover{' . "\n"; if (!empty($theme_options['dd_menu_btn_color'])) { $style_ .= 'background-color : ' . esc_attr($theme_options['dd_menu_btn_color']) . '; ' . "\n"; } if (!empty($theme_options['dd_menu_hover_color'])) { $style_ .= 'color : ' . esc_attr($theme_options['dd_menu_hover_color']) . '; ' . "\n"; } $style_ .= '}' . "\n"; } /*end of styles for responsive full width menu*/ $style_ .= '#header_language_select ul li.current > a { color : ' . esc_attr($theme_options['menu_font_color']) . '; } ' . "\n"; if (!empty($theme_options['menu_bg_color'])) { $style_ .= '#header_language_select { background-color : ' . esc_attr($theme_options['menu_bg_color']) . '; } ' . "\n"; } $style_ .= '#header_language_select ul li.current:hover > a { ' . "\n"; if (!empty($theme_options['menu_btn_color'])) { $style_ .= 'background-color : ' . esc_attr($theme_options['menu_btn_color']) . ';' . "\n"; } if (!empty($theme_options['menu_hover_color'])) { $style_ .= 'color : ' . esc_attr($theme_options['menu_hover_color']) . ';' . "\n"; } $style_ .= '} ' . "\n"; /*Add Custom Colors to theme*/ if (!empty($theme_options['p_font_color'])) { $style_ .= 'body {color : ' . esc_attr($theme_options['p_font_color']) . '; } ' . "\n"; } if (!empty($theme_options['widgets_sep_color'])) { $style_ .= '#page .container #secondary .widget h3.widget-title, #page .container #secondary .widget h1.widget-title, header.post-header .post-title {border-color : ' . esc_attr($theme_options['widgets_sep_color']) . '; } ' . "\n"; $style_ .= 'body.single-product #page .related.products h2 {border-bottom-color : ' . esc_attr($theme_options['widgets_sep_color']) . '; } ' . "\n"; } if (!empty($theme_options['a_font_color'])) { $a_font_color = esc_attr($theme_options['a_font_color']); $style_ .= 'a {color : ' . $a_font_color . '; }'; $style_ .= '#page .container #secondary>.widget_nav_menu>div>ul>li ul>li>a:before {color : ' . $a_font_color . '; }'; $style_ .= '#page .container #secondary .widget ul li.cat-item a:before {color : ' . $a_font_color . '; }'; $style_ .= 'html[dir="rtl"] #page .container #secondary>.widget_nav_menu>div>ul>li ul>li>a:after {color : ' . $a_font_color . '; }'; $style_ .= 'html[dir="rtl"] #page .container #secondary .widget ul li.cat-item a:after {color : ' . $a_font_color . '; }'; } if (!empty($theme_options['a_hover_font_color'])) { $style_ .= 'a:hover {color : ' . esc_attr($theme_options['a_hover_font_color']) . '; } ' . "\n"; $style_ .= '#page .container #secondary>.widget_nav_menu li.current-menu-item>a {color : ' . esc_attr($theme_options['a_hover_font_color']) . '; } '; $style_ .= '#page .container #secondary>.widget_nav_menu>div>ul>li ul>li>a:hover:before, #page .container #secondary>.widget_nav_menu>div>ul>li ul>li.current-menu-item>a:before, #page .container #secondary>.widget_nav_menu>div>ul>li ul>li.current-menu-item>a:hover:before{color : ' . esc_attr($theme_options['a_hover_font_color']) . '; }'; $style_ .= '#page .container #secondary .widget ul li.current-cat>a, #page .container #secondary .widget ul li.cat-item ul li.current-cat a:before, #page .container #secondary .widget ul li.cat-item a:hover:before{color : ' . esc_attr($theme_options['a_hover_font_color']) . '; }'; $style_ .= 'html[dir="rtl"] #page .container #secondary>.widget_nav_menu>div>ul>li ul>li>a:hover:after,'; $style_ .= 'html[dir="rtl"] #page .container #secondary>.widget_nav_menu>div>ul>li ul>li.current-menu-item>a:after,'; $style_ .= 'html[dir="rtl"] #page .container #secondary>.widget_nav_menu>div>ul>li ul>li.current-menu-item>a:hover:after{color : ' . esc_attr($theme_options['a_hover_font_color']) . '; } ' . "\n"; $style_ .= 'html[dir="rtl"] #page .container #secondary .widget ul li.current-cat>a, html[dir="rtl"] #page .container #secondary .widget ul li.current-cat>a:after, html[dir="rtl"] #page .container #secondary .widget ul li.cat-item a:hover:after{color : ' . esc_attr($theme_options['a_hover_font_color']) . '; } '; } if (!empty($theme_options['a_focus_font_color'])) { $style_ .= 'a:focus {color : ' . esc_attr($theme_options['a_focus_font_color']) . '; } ' . "\n"; } if (!empty($theme_options['a_active_font_color'])) { $style_ .= 'a:active {color : ' . esc_attr($theme_options['a_active_font_color']) . '; } ' . "\n"; } if (!empty($theme_options['date_of_post_b_color'])) { $style_ .= '.blog_post .date_of_post {background : none repeat scroll 0 0 ' . esc_attr($theme_options['date_of_post_b_color']) . '; } ' . "\n"; } if (!empty($theme_options['date_of_post_f_color'])) { $style_ .= '.blog_post .date_of_post {color : ' . esc_attr($theme_options['date_of_post_f_color']) . '; } ' . "\n"; } $woo_style_ .= '.num_of_product_cart {border-color: ' . esc_attr($theme_options['menu_btn_color']) . '; } ' . "\n"; if (!empty($theme_options['btn_color'])) { $btn_color = esc_attr($theme_options['btn_color']); $style_ .= 'button, input[type="button"], input[type="submit"], input[type="reset"]{background-color : ' . $btn_color . ' !important; } '; $style_ .= 'body a.btn.btn-primary, body button.btn.btn-primary, body input[type="button"].btn.btn-primary , body input[type="submit"].btn.btn-primary {background-color : ' . $btn_color . ' !important; }'; $woo_style_ .= '.woocommerce table.my_account_orders .order-actions .button, .woocommerce-page table.my_account_orders .order-actions .button{background-color : ' . $btn_color . ' !important; }'; $style_ .= '.nav-links.shop .pages-links .page-numbers, .nav-links.shop .nav-next a, .nav-links.shop .nav-previous a{background-color : ' . $btn_color . ' !important; }'; } if (!empty($theme_options['btn_active_color'])) { $btn_active_color = esc_attr($theme_options['btn_active_color']); $style_ .= 'button:hover, button:active, button:focus{background-color : ' . $btn_active_color . ' !important; }'; $style_ .= 'input[type="button"]:hover, input[type="button"]:active, input[type="button"]:focus{background-color : ' . $btn_active_color . ' !important; }'; $style_ .= 'input[type="submit"]:hover, input[type="submit"]:active, input[type="submit"]:focus{background-color : ' . $btn_active_color . ' !important; }'; $style_ .= 'input[type="reset"]:hover, input[type="reset"]:active, input[type="reset"]:focus{background-color : ' . $btn_active_color . ' !important; }'; $style_ .= 'body a.btn.btn-primary:hover, body button.btn.btn-primary:hover, body input[type="button"].btn.btn-primary:hover , body input[type="submit"].btn.btn-primary:hover {background-color : ' . $btn_active_color . ' !important; }'; $woo_style_ .= '.woocommerce table.my_account_orders .order-actions .button:hover, .woocommerce-page table.my_account_orders .order-actions .button:hover{background-color : ' . $btn_active_color . ' !important; }'; $style_ .= '.nav-links.shop .pages-links .page-numbers:hover, .nav-links.shop .nav-next a:hover, .nav-links.shop .nav-previous a:hover, .nav-links.shop .pages-links .page-numbers.current{background-color : ' . $btn_active_color . ' !important; }'; } /*social icons styles*/ if (!empty($theme_options['soc_icon_bg_color'])) { $style_ .= '.social-icon>a>i{background:' . $theme_options['soc_icon_bg_color'] . '}' . "\n"; } if (!empty($theme_options['soc_icon_color'])) { $style_ .= '.social-icon>a>i{color:' . $theme_options['soc_icon_color'] . '}' . "\n"; } /*Woocommerce styles*/ if (class_exists('woocommerce')) { if (!empty($theme_options['woo_shop_sidebar'])) { $shop_sidebar_template = $theme_options['woo_shop_sidebar']; if ($shop_sidebar_template == 3) { /*right sidebar template*/ $woo_style_ .= '#page .container .woo-loop-content{float:left}' . "\n"; $woo_style_ .= '#page .container .woo-loop-sidebar{float:right}' . "\n"; $woo_style_ .= '#page .container .woo-loop-sidebar #secondary{float:right}' . "\n"; $woo_style_ .= '.woocommerce .woocommerce-ordering, .woocommerce-page .woocommerce-ordering{float:left}' . "\n"; } else { $woo_style_ .= '#page .container .woo-loop-content{float:right}' . "\n"; $woo_style_ .= '#page .container .woo-loop-sidebar{float:left}' . "\n"; $woo_style_ .= '#page .container .woo-loop-sidebar #secondary{float:left}' . "\n"; $woo_style_ .= '.woocommerce .woocommerce-ordering, .woocommerce-page .woocommerce-ordering{float:right}' . "\n"; } } if (!empty($theme_options['woo_product_sidebar'])) { $product_sidebar_template = $theme_options['woo_product_sidebar']; if ($product_sidebar_template == 3) { /*right sidebar template*/ $woo_style_ .= '.single-product #page .container .woo-loop-content{float:left}' . "\n"; $woo_style_ .= '.single-product #page .container .woo-loop-sidebar{float:right}' . "\n"; $woo_style_ .= '.single-product #page .container .woo-loop-sidebar #secondary{float:right}' . "\n"; } else { $woo_style_ .= '.single-product #page .container .woo-loop-content{float:right}' . "\n"; $woo_style_ .= '.single-product #page .container .woo-loop-sidebar{float:left}' . "\n"; $woo_style_ .= '.single-product #page .container .woo-loop-sidebar #secondary{float:left}' . "\n"; } } /*price color*/ if (!empty($theme_options['a_hover_font_color'])) { $woo_style_ .= '.woocommerce ul.products li.product .price , .woocommerce-page ul.products li.product .price, body.woocommerce div.product span.price, body.woocommerce-page div.product span.price, body.woocommerce #content div.product span.price, body.woocommerce-page #content div.product span.price, body.woocommerce div.product p.price, body.woocommerce-page div.product p.price, body.woocommerce #content div.product p.price, body.woocommerce-page #content div.product p.price{color : ' . esc_attr($theme_options['a_hover_font_color']) . '; }'; } /*buttons color*/ if (!empty($theme_options['btn_color'])) { $btn_color = esc_attr($theme_options['btn_color']); $woo_style_ .= '.woocommerce .woocommerce-message, .woocommerce-page .woocommerce-message{border-top:3px solid ' . $btn_color . ';}'; $woo_style_ .= '.woocommerce .woocommerce-info, .woocommerce-page .woocommerce-info{border-top:3px solid ' . $btn_color . ';}'; $woo_style_ .= '.single-product .woocommerce-message .button{background-color:' . $btn_color . ';}'; } /*buttons hover color*/ if (!empty($theme_options['btn_active_color'])) { $woo_style_ .= '.single-product .woocommerce-message .button:hover{background-color:' . esc_attr($theme_options['btn_active_color']) . ';}'; } if (!empty($theme_options['woo_sale_price_color'])) { $color_rgba = fruitful_hex2rgb($theme_options['woo_sale_price_color']); $color = $color_rgba['red'] . ',' . $color_rgba['green'] . ',' . $color_rgba['blue']; $woo_style_ .= '.woocommerce ul.products li.product .price del, .woocommerce-page ul.products li.product .price del {color:rgba(' . $color . ',.5); }'; } if (!empty($theme_options['woo_rating_color_regular'])) { $woo_style_ .= '.woocommerce .star-rating, .woocommerce-page .star-rating, .woocommerce p.stars a.star-1, .woocommerce p.stars a.star-2, .woocommerce p.stars a.star-3, .woocommerce p.stars a.star-4, .woocommerce p.stars a.star-5, .woocommerce-page p.stars a.star-1, .woocommerce-page p.stars a.star-2, .woocommerce-page p.stars a.star-3, .woocommerce-page p.stars a.star-4, .woocommerce-page p.stars a.star-5 { color:' . esc_attr($theme_options['woo_rating_color_regular']) . '; }'; } if (!empty($theme_options['woo_rating_color_active'])) { $woo_style_ .= '.woocommerce p.stars a.star-1:hover, .woocommerce p.stars a.star-2:hover, .woocommerce p.stars a.star-3:hover, .woocommerce p.stars a.star-4:hover, .woocommerce p.stars a.star-5:hover, .woocommerce-page p.stars a.star-1:hover, .woocommerce-page p.stars a.star-2:hover, .woocommerce-page p.stars a.star-3:hover, .woocommerce-page p.stars a.star-4:hover, .woocommerce-page p.stars a.star-5:hover, .woocommerce .star-rating:hover, .woocommerce-page .star-rating:hover { color:' . esc_attr($theme_options['woo_rating_color_active']) . '; }'; } } if (class_exists('BuddyPress')) { if (!empty($theme_options['btn_color'])) { $style_ .= '#buddypress input[type=submit]{background-color : ' . esc_attr($theme_options['btn_color']) . ' !important; } ' . "\n"; } if (!empty($theme_options['btn_active_color'])) { $style_ .= '#buddypress input[type=submit]:hover, #buddypress input[type=submit]:active, #buddypress input[type=submit]:focus{background-color : ' . esc_attr($theme_options['btn_active_color']) . ' !important; } ' . "\n"; } } } else { $style_ .= 'body {font-family:Open Sans, sans-serif}' . "\n"; } } if (!empty($theme_options['custom_css'])) { $style_ .= wp_kses_stripslashes($theme_options['custom_css']) . "\n"; } wp_add_inline_style('main-style', fruitful_compress_code($style_)); if ($woo_style_ != '') { wp_add_inline_style('woo-style', fruitful_compress_code($woo_style_)); } }