<?php add_action( 'vc_before_init', 'dt_sc_intro_text_vc_map' );
function dt_sc_intro_text_vc_map() {
	vc_map( array(
		"name" => esc_html__( "Intro Text", 'dental-core' ),
		"base" => "dt_sc_intro_text",
		"icon" => "dt_sc_intro_text",
		"category" => DT_VC_CATEGORY,
		'description' => esc_html__( 'Section for Intro Section', 'dental-core' ),
		"params" => array(

			# Title
      		array(
      			"type" => "textfield",
      			"heading" => esc_html__( "Title", "dental-core" ),
      			"param_name" => "title",
				"value" => '',
      			"admin_label" => true
      		),

			# Button Text
			array(
				'type' => 'textfield',
				'heading' => esc_html__( 'Text', 'dental-core' ),
				'param_name' => 'button_title',
				'value' => ''
			),

			# Button Link
			array(
				'type' => 'vc_link',
				'heading' => esc_html__( 'URL (Link)', 'dental-core' ),
				'param_name' => 'link',
				'description' => esc_html__( 'Add link to button', 'dental-core' ),
			),

			# Font Awesome
			array(
				'type' => 'iconpicker',
				'heading' => esc_html__( 'Font Awesome', 'dental-core' ),
				'param_name' => 'iconclass',
				'settings' => array( 'emptyIcon' => false, 'iconsPerPage' => 4000 ),
				'description' => esc_html__( 'Select icon from library', 'dental-core' ),
			),

			# Extra class name
          	array(
          		'type' => 'textfield',
          		'heading' => esc_html__( 'Extra class name', 'dental-core' ),
          		'param_name' => 'class',
          		'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS', 'dental-core' )
          	),
		)
	) );
}?>