<?php
vc_map(array(
    "name" => 'CMS Landing Item',
    "base" => "cms_landing_item",
    "icon" => "cs_icon_for_vc",
    "category" => esc_html__('CmsSuperheroes Shortcodes', 'haswell'),
    "description" => esc_html__('Landing Item, suitable for Landing Page', 'haswell'),
    "params" => array(
        array(
            "type" => "textfield",
            "heading" => __ ( 'Title', 'haswell' ),
            "param_name" => "landing_title",
            "value" => '',
            'admin_label' => true,
        ),
        array (
            "type" => "attach_image",
            "heading" => esc_html__("Image thumbnail",'haswell'),
            "param_name" => "image_thumbnail",
            "description" => esc_html__("Thumbnail landing item", 'haswell')
        ),
        array(
            'type' => 'vc_link',
            'heading' => esc_html__( 'URL (Link) - link', 'haswell' ),
            'param_name' => 'link',
            'description' => esc_html__( 'Add link to button.', 'haswell' )
        ),
        array(
            "type" => "textfield",
            "heading" => __ ( "Extra class name", 'haswell' ),
            "param_name" => "el_class",
            "description" => __ ( "If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'haswell' )
        ),
        
        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => esc_html__("Animation Delay Time", 'haswell'),
            "param_name" => "css_animation_delay",
            "value" => array(
                'None' => '0ms',
                '200ms' => '200ms',
                '400ms' => '400ms',
                '600ms' => '600ms',
                '800ms' => '800ms',
                '1000ms' => '1000ms',
            ),
            "description" => esc_html__('Animation Delay Time', 'haswell'),
        ),
    )
));

class WPBakeryShortCode_cms_landing_item extends CmsShortCode
{
    protected function content($atts, $content = null)
    {
        return parent::content($atts, $content);
    }
}