'', 'title_color' =>'', 'auto_rotate' =>'', 'interval' => 0, 'tab_style' =>'', 'tab_bottom_border' => '', 'border_color' => '', 'border_thickness' => '', 'tab_title_color' => '', 'tab_hover_title_color' => '', 'tab_background_color' => '', 'tab_hover_background_color'=>'', 'container_width' => '', 'el_class' => '', 'container_width' =>'', 'main_heading_font_family' =>'', 'title_font_size' =>'', 'title_font_wt' =>'', 'title_line_ht' =>'', 'desc_font_family' =>'', 'desc_font_size' =>'', 'desc_font_style' =>'', 'desc_line_ht' =>'', 'shadow_color' =>'', 'shadow_width' =>'', 'enable_bg_color' =>'', 'resp_style' =>'', 'container_border_style' =>'', 'container_color_border' =>'', 'cont_border_size' =>'', 'tabs_border_radius' =>'', 'tab_animation' =>'', 'tab_describe_color' =>'', 'title_font_style' =>'', 'css' =>'', 'act_icon_color' =>'', 'acttab_background' =>'', 'acttab_title' =>'', 'resp_type' =>'', 'resp_width' =>'', 'resp_style' =>'', 'ac_tabs' =>'', ), $atts ) ); global $tabarr; $tabarr = array(); do_shortcode($content); if($acttab_background==''){ $acttab_background=$tab_hover_background_color; } if($acttab_title==''){ $acttab_title=$tab_hover_title_color; } /*---------------padding---------------------*/ $css_class=''; $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), "ult_tab_element", $atts ); $css_class = esc_attr( $css_class ); if($tabs_border_radius!=''){ //echo $tabs_border_radius; } /*-------------------font style------------------*/ $container_style=$ult_style=$tab_style_no=''; if($tab_bottom_border=='Disable'){ $border_thickness="0"; $border_color="transparent"; } if($container_width!=''){ $container_style='width:'.$container_width.'px;'; } $border_Style=$mhfont_family=$border_style =''; $tabs_nav_style=''; if($title_font_size!='') $tabs_nav_style .= 'font-size:'.$title_font_size.'px;'; if($title_line_ht!='') $tabs_nav_style .='line-height:'.$title_line_ht.'px;'; if (function_exists('get_ultimate_font_family')) { $mhfont_family = get_ultimate_font_family($main_heading_font_family); if($mhfont_family!='') $tabs_nav_style .= 'font-family:'.$mhfont_family.';'; } if (function_exists('get_ultimate_font_style')) { if($title_font_style!='') $tabs_nav_style .= get_ultimate_font_style($title_font_style); } /*-------------------auto rotate------------------*/ if($auto_rotate=='Disables'){ $interval=0; $autorotate='no'; } else{ $autorotate='yes'; } if($tab_background_color=='') { $tab_background_color="transparent"; } $element = 'wpb_tabs'; if ( 'vc_tour' == $this->shortcode ) $element = 'wpb_tour'; $ul_style=$tabs_nav = $style=''; /*------------------- style------------------*/ if($tab_style=='Style_1'){ $style='style1'; } else if($tab_style=='Style_2'){ $style='style2'; } else if($tab_style=='Style_3'){ $style='style3'; } else if($tab_style=='Style_4'){ $ult_style='ult_tab_style_4'; $style='style1'; } else if($tab_style=='Style_5'){ $ult_style='ult_tab_style_5'; $style='style1'; } foreach ($tabarr as $key => $value) { $icon_value=$value["icon_size"]; if (is_numeric($icon_value)) { $icon_value1[]=$value["icon_size"]; } } /*-------------- border style-----------*/ $tab_border=''; $tab_border .='color:'.$border_color.';'; $tab_border .='border-bottom-color:'.$border_color.';'; $tab_border .='border-bottom-width:'.$border_thickness.'px;'; $tab_border .='border-bottom-style:solid;'; if($tab_style=='Style_1'){ $tab_border .='background-color:'.$tab_background_color.';'; $tab_border .='border-top-left-radius:'.$tabs_border_radius.'px;'; $tab_border .='border-top-right-radius:'.$tabs_border_radius.'px;'; } if($tab_style=='Style_2'){ $tab_border .='border-bottom-width:0px;'; } if($tab_style=='Style_4'||$tab_style=='Style_5'){ $tab_border .='border-bottom-width:0px;'; } /*-----------------content baground-------------------*/ $contain_bg=''; /*---------------- description font family-----------*/ if($desc_font_size!='') $contain_bg .= 'font-size:'.$desc_font_size.'px;'; if($title_line_ht!='') $contain_bg .='line-height:'.$desc_line_ht.'px;'; if (function_exists('get_ultimate_font_family')) { $dhfont_family = get_ultimate_font_family($desc_font_family); if($dhfont_family!='') $contain_bg .= 'font-family:'.$dhfont_family.';'; } if (function_exists('get_ultimate_font_style')) { if($desc_font_style!='') $contain_bg .= get_ultimate_font_style($desc_font_style); } $ult_top=$icon_top_link=''; if($tab_style=='Style_1'){ $ult_top='ult_top'; $icon_top_link='icon_top_link'; } else if($tab_style=='Style_2'){ $ult_top='ult_top'; $icon_top_link=''; } if($tab_style=='Style_4'){ $tab_style_no.='Style_4'; $ult_top='ult_top'; $icon_top_link='style_4_top'; } if($tab_style=='Style_5'){ $tab_style_no.='Style_5'; $icon_top_link=''; }if($tab_style=='Style_3'){ $ult_top='ult_top'; $icon_top_link='icon_top_link'; } if($enable_bg_color!='') { $contain_bg .='background-color:'.$enable_bg_color.';'; } if($container_border_style!=''){ $contain_bg .='border-style:'.$container_border_style.';'; $contain_bg .='border-color:'.$container_color_border.';'; $contain_bg .='border-width:'.$cont_border_size.'px;'; $contain_bg .='border-top:none;'; } if($tab_describe_color!=''){ $contain_bg .='color:'.$tab_describe_color.';'; } $acord =''; //echo $resp_style; $array_count=''; $array_count=sizeof($tabarr); $newtab=''; $newtab .=''; $newtabcontain=''; $newtabcontain .='
'; $newtabcontain .=wpb_js_remove_wpautop( $content ); $newtabcontain .='
'; $op=''; $op .='
'; $op .=$newtab; $op .='
'; $op .=wpb_js_remove_wpautop( $content ); $op .='
'; $op .='
'; return $op; /*---------------- for acordian -----------------*/ $actab=''; $actab .='
'; $actab .=$acord; $actab .='
'; return $actab;