esc_html__("Slider", 'taskereasy'), "base" => "taskereasy_slider", 'icon' => get_template_directory_uri() . '/assets/images/favicon-icon/shortcode-icon.png', "class" => "", "description" => esc_html__("Add taskereasy Slider", 'taskereasy'), "category" => esc_html__('Taskereasy Shortcodes', 'taskereasy'), "params" => array( array( "type" => "param_group", "heading" => esc_html__("Slide", 'taskereasy'), "param_name" => "slide", "params" => array( array( "type" => "attach_image", "heading" => esc_html__("Image", 'taskereasy'), "param_name" => "image", ), array( "type" => "textfield", "heading" => esc_html__("Image Size", 'taskereasy'), "param_name" => "image_size", "description" => 'Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height)).' ), 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" => "vc_link", "heading" => esc_html__("Button Link", 'taskereasy'), "param_name" => "btn_link", "value" => '' ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Button Style', 'taskereasy' ), 'param_name' => 'btn_style', 'value' => array('Style 1' => 'style1', 'Style 2' => 'style2') ), ) ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Row ID', 'taskereasy' ), 'param_name' => 'id', ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS', 'taskereasy' ), 'param_name' => 'custom_design', 'group' => esc_html__( 'Design options', 'taskereasy' ), ) ) )); add_shortcode( 'taskereasy_slider', function($atts, $content = null) { extract(shortcode_atts(array( 'title' => '', 'subtext' => '', 'image' => '', 'image_size' => '', 'id' => '', 'custom_design' => '', ), $atts)); $custom_design = vc_shortcode_custom_css_class( $custom_design, ' ' ); $slides = vc_param_group_parse_atts( $atts['slide'] ); $id = html_entity_decode(vc_value_from_safe($id, true)); $output = ''; $count = 0; //$output .= print_r($slides); $output .= '
'; return $output; });