<?php add_action( 'vc_before_init', 'dt_sc_twitter_tweets_vc_map' );
function dt_sc_twitter_tweets_vc_map() {

	vc_map( array( 
		"name" => esc_html__( "Twitter tweets", 'dental-core' ),
		"base" => "dt_sc_twitter_tweets",
		"icon" => "dt_sc_twitter_tweets",
		"category" => DT_VC_CATEGORY,
		"params" => array(

			# Consumer Key
			array(
				'type' => 'textfield',
				'param_name' => 'consumerkey',
				'heading' => esc_html__( 'Consumer key', 'dental-core' ),
				'description' => esc_html__( 'Enter Consumer key', 'dental-core' ),
			),

			# Consumer secret
			array(
				'type' => 'textfield',
				'param_name' => 'consumersecret',
				'heading' => esc_html__( 'Consumer secret', 'dental-core' ),
				'description' => esc_html__( 'Enter Consumer secret', 'dental-core' ),
			),

			# Access token 
			array(
				'type' => 'textfield',
				'param_name' => 'accesstoken',
				'heading' => esc_html__( 'Access token', 'dental-core' ),
				'description' => esc_html__( 'Enter Access token', 'dental-core' ),
			),

			# Access token secret
			array(
				'type' => 'textfield',
				'param_name' => 'accesstokensecret',
				'heading' => esc_html__( 'Access token secret', 'dental-core' ),
				'description' => esc_html__( 'Enter Access token secret', 'dental-core' ),
			),

			# Consumer Key
			array(
				'type' => 'textfield',
				'param_name' => 'username',
				'heading' => esc_html__( 'Twitter username', 'dental-core' ),
				'description' => esc_html__( 'Enter Twitter username', 'dental-core' ),
			),

			# Avatar
			array(
				'type' => 'dropdown',
				'param_name' => 'useravatar',
				'heading' => esc_html__('Show avatar?','dental-core'),
				'value' => array( esc_html__('Yes','dental-core') => 'yes' , esc_html__('No','dental-core') => 'no' ),
				'std' => 'no'
			)
		)		
	) );
}?>