esc_html__("Testimonials", 'taskereasy'), "base" => "taskereasy_testimonials", 'icon' => get_template_directory_uri() . '/assets/images/favicon-icon/shortcode-icon.png', "class" => "", "description" => esc_html__("Add taskereasy Testimonials", 'taskereasy'), "category" => esc_html__('Taskereasy Shortcodes', 'taskereasy'), "params" => array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Columns', 'taskereasy' ), 'param_name' => 'testi_col', 'value' => array('Single' => 'single', 'Multiple' => 'multi'), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Style', 'taskereasy' ), 'param_name' => 'style', 'value' => array('Style One' => 'style_1', 'Style Two' => 'style_2'), 'dependency' => array( 'element' => 'testi_col', 'value' => 'single' ) ), array( "type" => "param_group", "heading" => esc_html__("Testimonial", 'taskereasy'), "param_name" => "testimonial", "params" => array( array( "type" => "attach_image", "heading" => esc_html__("Image", 'taskereasy'), "param_name" => "image", ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Author', 'taskereasy' ), 'param_name' => 'author', ), array( "type" => "textarea_safe", "heading" => esc_html__("Description", 'taskereasy'), "param_name" => "description", ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Position', 'taskereasy' ), 'param_name' => 'position', ), ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS', 'taskereasy' ), 'param_name' => 'custom_design', 'group' => esc_html__( 'Design options', 'taskereasy' ), ) ) )); add_shortcode( 'taskereasy_testimonials', function($atts, $content = null) { extract(shortcode_atts(array( 'testi_col' => 'single', 'style' => 'style_1', 'image' => '', 'description' => '', 'author' => '', 'position' => '', 'align' => '', 'title_heading' => 'h1', 'titlecolor' => '', 'title_align' => '', 'description_color' => '', 'custom_design' => '', ), $atts)); $custom_design = vc_shortcode_custom_css_class( $custom_design, ' ' ); $output = ''; $count = 0; $testimonials = vc_param_group_parse_atts( $atts['testimonial'] ); $testicol = html_entity_decode(vc_value_from_safe($testi_col, true)); $test_id = ($testicol == 'multi') ? 'testimonialsTwo' : 'testimonials'; $output .= '
'.$testimonials[$count]['description'].'
'.$testimonials[$count]['position'].'
'.$testimonials[$count]['description'].'