'', 'css' => '', 'tabs_style' => 'default', 'design' => 'default', 'title' => '', 'description' => '', 'image' => '', 'img_size' => '30x30', /** * Tabs Titles. */ 'icon_position' => 'left', 'tabs_title_font_family' => 'primary', 'tabs_title_font_size' => 's', 'tabs_title_font_weight' => 600, 'tabs_title_color_scheme' => 'inherit', 'tabs_title_alignment' => 'center', /** * Content Settings. */ 'content_font_family' => '', 'content_font_size' => '', 'content_font_weight' => '', 'content_text_color_scheme' => 'inherit', ), $attr ); woodmart_enqueue_js_script( 'tabs-element' ); $title_id = 'wd-' . $attr['woodmart_css_id']; $wrapper_classes .= ' tabs-design-' . $attr['design']; $img_id = preg_replace( '/[^\d]/', '', $attr['image'] ); if ( function_exists( 'vc_shortcode_custom_css_class' ) ) { $wrapper_classes .= ' ' . vc_shortcode_custom_css_class( $attr['css'] ); } $nav_tabs_wrapper_classes = ''; if ( 'inherit' !== $attr['tabs_title_color_scheme'] && 'custom' !== $attr['tabs_title_color_scheme'] ) { $nav_tabs_wrapper_classes .= ' color-scheme-' . $attr['tabs_title_color_scheme']; } $nav_tabs_classes = ' wd-icon-pos-' . $attr['icon_position']; $nav_tabs_classes .= ' wd-style-' . $attr['tabs_style']; $nav_tabs_classes .= ' font-' . $attr['tabs_title_font_family']; $nav_tabs_classes .= ' wd-fontsize-' . $attr['tabs_title_font_size']; $nav_tabs_classes .= $attr['tabs_title_font_weight'] ? ' wd-font-weight-' . $attr['tabs_title_font_weight'] : ''; $tabs_data = woodmart_get_tabs_title_from_shortcode( $content ); $content_classes = ''; if ( ! empty( $attr['content_font_family'] ) ) { $content_classes = ' font-' . $attr['content_font_family']; } if ( ! empty( $attr['content_font_size'] ) ) { $content_classes .= ' wd-fontsize-' . $attr['content_font_size']; } if ( ! empty( $attr['content_font_weight'] ) ) { $content_classes .= ' wd-font-weight-' . $attr['content_font_weight']; } if ( 'inherit' !== $attr['content_text_color_scheme'] && 'custom' !== $attr['content_text_color_scheme'] ) { $content_classes .= ' color-scheme-' . $attr['content_text_color_scheme']; } ob_start(); woodmart_enqueue_inline_style( 'tabs' ); ?>