'header .sub-header', 'property' => 'background', 'value' => ''.$iq_option['header_top_background_color'].' !important' ); } } if($type == 'image') { if(!empty($iq_option['header_top_background_image']['url'])) { $dynamic_css[] = array( 'elements' => 'header .sub-header', 'property' => 'background', 'value' => 'url('.$iq_option['header_top_background_image']['url'].') !important' ); } } if($type == 'transparent') { $dynamic_css[] = array( 'elements' => 'header .sub-header', 'property' => 'background', 'value' => 'transparent !important' ); } } if ( count( $dynamic_css ) > 0 ) { echo "'; } } function babyme_top_text_color_options() { $iq_option = get_option('babyme_options'); $inline_css = ''; if(isset($iq_option['header_top_text_color_type']) && $iq_option['header_top_text_color_type'] != 'default') { if(isset($iq_option['header_top_text_color']) && !empty($iq_option['header_top_text_color'])) { $inline_css .= 'header.style-one .sub-header .number-info li a,header .sub-header li a,header.style-one .sub-header .number-info li a i{ color : '.$iq_option['header_top_text_color'].'!important; }'; } if(isset($iq_option['header_top_text_hover_color']) && !empty($iq_option['header_top_text_hover_color'])) { $inline_css .= ' header.style-one .sub-header .number-info li:hover a,header .sub-header li:hover a,header.style-one .sub-header .number-info li:hover a i{ color : '.$iq_option['header_top_text_hover_color'].'!important; }'; } if(isset($iq_option['header_top_icon_color']) && !empty($iq_option['header_top_icon_color'])) { $inline_css .= 'header.style-one .sub-header .social-icone ul li i{ color : '.$iq_option['header_top_icon_color'].'!important; }'; } if(isset($iq_option['header_top_icon_hover_color']) && !empty($iq_option['header_top_icon_hover_color'])) { $inline_css .= 'header.style-one .sub-header .social-icone ul li:hover i{ color : '.$iq_option['header_top_icon_hover_color'].'!important; }'; } } if(!empty($inline_css)) { wp_register_style( 'babyme-top-header-style', false ); wp_enqueue_style( 'babyme-top-header-style' ); wp_add_inline_style('babyme-top-header-style', $inline_css ); } }