<?php add_action( 'vc_before_init', 'dt_sc_events_list_vc_map' );
function dt_sc_events_list_vc_map() {
	vc_map( array(
		"name" => esc_html__( "Events List", 'dental-core' ),
		"base" => "dt_sc_events_list",
		"icon" => "dt_sc_events_list",
		"category" => DT_VC_CATEGORY .' ( '.esc_html__('Events','dental-core').')',
		"params" => array(

			// Title
			array(
				'type' => 'textfield',
				'heading' => esc_html__( 'Title', 'dental-core' ),
				'param_name' => 'title',
				'description' => esc_html__( 'Enter title', 'dental-core' ),
				'admin_label' => true
			),

			// Limit
			array(
				'type' => 'textfield',
				'heading' => esc_html__( 'Limit', 'dental-core' ),
				'param_name' => 'limit',
				'description' => esc_html__( 'Enter limit', 'dental-core' )
			),

			// Categories
			array(
				'type' => 'textfield',
				'heading' => esc_html__( 'Categories', 'dental-core' ),
				'param_name' => 'categories',
				'description' => esc_html__( 'Enter categories', 'dental-core' )
			),									
		)
	) );
}?>