'Title', 'font' => 'primary', 'font_weight' => '', 'content_width' => '100', 'color_scheme' => '', 'color' => '', 'size' => 'default', 'align' => 'center', 'text_font_size' => '', 'inline' => 'no', // Old size 'desktop_text_size' => '', 'tablet_text_size' => '', 'mobile_text_size' => '', 'woodmart_css_id' => '', 'css_animation' => 'none', 'el_class' => '', 'css' => '', ), $atts ); extract( $atts ); if ( ! $woodmart_css_id ) { $woodmart_css_id = uniqid(); } $text_id = 'wd-' . $woodmart_css_id; $style_attr = ''; $text_wrapper_class .= ' color-scheme-' . $color_scheme; $text_wrapper_class .= ' text-' . $align; $text_wrapper_class .= $inline == 'yes' ? ' inline-element' : ''; $text_wrapper_class .= woodmart_get_css_animation( $css_animation ); if ( $content_width && 'custom' !== $content_width && '100' !== $content_width ) { $style_attr .= ' style="--wd-max-width: ' . $content_width . '%;"'; $text_wrapper_class .= ' wd-width-enabled'; } elseif ( 'custom' === $content_width ) { $text_wrapper_class .= ' wd-width-custom'; } $text_class = ' font-' . $font; $text_class .= ' wd-font-weight-' . $font_weight; $text_class .= ' ' . woodmart_get_new_size_classes( 'text', $size, 'title' ); if ( function_exists( 'vc_shortcode_custom_css_class' ) ) { $text_wrapper_class .= ' ' . vc_shortcode_custom_css_class( $css ); } if ( $el_class != '' ) { $text_wrapper_class .= ' ' . $el_class; } ob_start(); woodmart_enqueue_inline_style( 'responsive-text' ); ?>