<?php add_action( 'vc_before_init', 'dt_sc_image_content_vc_map' );
function dt_sc_image_content_vc_map() {
	vc_map( array(
		"name" => esc_html__( "Image Content", 'dental-core' ),
		"base" => "dt_sc_image_content",
		"icon" => "dt_sc_image_content",
		"category" => DT_VC_CATEGORY,
		'description' => esc_html__( 'Section for Image Content', 'dental-core' ),
		"params" => array(

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

			# Sub Title
			array(
				'type' => 'textfield',
				'heading' => esc_html__( 'Sub Title', 'dental-core' ),
				'param_name' => 'subtitle',
				'value' => ''
			),

			# Image url
			array(
				'type' => 'attach_image',
				'heading' => esc_html__('Image URL', 'dental-core'),
				'param_name' => 'image',
			),

			# Button Text
			array(
				'type' => 'textfield',
				'heading' => esc_html__( 'Button Text', 'dental-core' ),
				'param_name' => 'button_text',
				'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' )
          	),
		)
	) );
}?>