<?php
if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); }
/*
 * Templatation.com
 *
 * Title for VC *
 */


function tt_lc_title_shortcode_fn_vc() {

	vc_map(
		array(
			"icon" => 'tt-vc-block',
			"name" => esc_html__("LC Title", 'logiscargo'),
			"description" => esc_html__("Title styled for this theme", 'logiscargo'),
			"base" => "tt_lc_title_shortcode",
			"category" => esc_html__('Logiscargo', 'logiscargo'),
			"params" => array(
                array(
                    'type'        => 'textfield',
                    'heading'     => esc_html__( 'Title', 'logiscargo' ),
                    'description'     => esc_html__( 'Enter main Title', 'logiscargo' ),
                    'param_name'  => 'title',
                    'admin_label' => true,
                    'value'       => '',
                ),
				array(
					'type'        => 'textfield',
					'heading'     => esc_html__( 'Title size', 'logiscargo' ),
					'description'     => esc_html__( 'Enter main Title size, only number', 'logiscargo' ),
					'param_name'  => 'title_size',
					'value'       => '',
				),
                array(
					"type" => "colorpicker",
					"class" => "",
					"heading" => esc_html__("Title color",'logiscargo'),
					"param_name" => "txt_color",
					"value" => "",
			    ),
			    array(
                    'type'        => 'textarea',
                    'heading'     => esc_html__( 'Subtitle text', 'logiscargo' ),
                    'param_name'  => 'text',
                    'value'       => '',
                    'description' => esc_html__( "Text subtitle", 'logiscargo' ),
                ),
				array(
					"type" => "dropdown",
					"heading" => esc_html__("Show separator line", 'logiscargo'),
					"description" => esc_html__("Displays a short line below the Title.", 'logiscargo'),
					"param_name" => "sep_appear",
					"value" => array(
						'Yes' => 'yes',
						'No' => 'no',
					)
				),
	            array(
	                'type' => 'css_editor',
	                'heading' => esc_html__( 'CSS box', 'logiscargo' ),
	                'param_name' => 'css',
	                // 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'logiscargo' ),
	                'group' => esc_html__( 'Design Options', 'logiscargo' )
	            )
			)
		)
	);
	
}
add_action( 'vc_before_init', 'tt_lc_title_shortcode_fn_vc' );

if(class_exists('WPBakeryShortCode')) {
	class WPBakeryShortCode_tt_lc_title_shortcode extends WPBakeryShortCode {
	}
}