esc_html__("Timeline", 'taskereasy'), "base" => "taskereasy_timeline", 'icon' => get_template_directory_uri() . '/assets/images/favicon-icon/shortcode-icon.png', "class" => "", "description" => esc_html__("Add taskereasy timeline", 'taskereasy'), "category" => esc_html__('Taskereasy Shortcodes', 'taskereasy'), "params" => array( array( "type" => "param_group", "heading" => esc_html__("Timeline List", 'taskereasy'), "param_name" => "timeline_list", "params" => array( array( "type" => "textfield", "heading" => esc_html__("Date", 'taskereasy'), "param_name" => "date_picker", ), 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" => "textfield", "heading" => esc_html__("Class", 'taskereasy'), "param_name" => "class", ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS', 'taskereasy' ), 'param_name' => 'custom_design', 'group' => esc_html__( 'Design options', 'taskereasy' ), ) ) )); add_shortcode( 'taskereasy_timeline', function($atts, $content = null) { extract(shortcode_atts(array( 'date' => '', 'title' => '', 'subtext' => '', //'timeline_align' => 'left', 'class' => '', 'custom_design' => '', ), $atts)); $custom_design = vc_shortcode_custom_css_class( $custom_design, ' ' ); $time_list = vc_param_group_parse_atts( $atts['timeline_list'] ); $class = html_entity_decode(vc_value_from_safe($class, true)); //$time_align = html_entity_decode(vc_value_from_safe($timeline_align, true)); $output = ''; $count = 0; //$output .= print_r($time_list); $output .= '
'.$time_list[$count]['date_picker'].'
'.$time_list[$count]['subtext'].'
'.$time_list[$count]['date_picker'].'
'.$time_list[$count]['subtext'].'