esc_html__("Heading", 'taskereasy'), "base" => "taskereasy_text_heading", 'icon' => get_template_directory_uri() . '/assets/images/favicon-icon/shortcode-icon.png', "class" => "", "description" => esc_html__("Add taskereasy Text Heading", 'taskereasy'), "category" => esc_html__('Taskereasy Shortcodes', 'taskereasy'), "params" => array( array( "type" => "textfield", "heading" => esc_html__("Title", 'taskereasy'), "param_name" => "title", ), array( "type" => "textarea_safe", "heading" => esc_html__("Subtitle", 'taskereasy'), "param_name" => "subtext", ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Show Text', 'taskereasy' ), 'param_name' => 'align', 'value' => array('Center' => 1, 'Left' => 2), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS', 'taskereasy' ), 'param_name' => 'custom_design', 'group' => esc_html__( 'Design options', 'taskereasy' ), ) ) )); add_shortcode( 'taskereasy_text_heading', function($atts, $content = null) { extract(shortcode_atts(array( 'title' => '', 'subtext' => '', 'align' => '', 'custom_design' => '', ), $atts)); $class = ($align==2)?'section-header-left':'text-center'; $custom_design = vc_shortcode_custom_css_class( $custom_design, ' ' ); $output = ''; $output .='

'.html_entity_decode(vc_value_from_safe($title, true)).'

'; if( $subtext != '' ) { $output .= '

' . html_entity_decode(vc_value_from_safe($subtext, true)) . '

'; } $output .='
'; return $output; });