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

	vc_map( array(
		"name" => esc_html__( "Sociable", 'dental-core' ),
		"base" => "dt_sc_sociable",
		"icon" => "dt_sc_sociable",
		"category" => DT_VC_CATEGORY,
		"description" => esc_html__("To show sociables configured in admin panel, Dental Options -> Layout -> Sociable",'dental-core'),
		"params" => array(

			# Types
      		array(
      			'type' => 'dropdown',
      			'heading' => esc_html__( 'Style', 'dental-core' ),
      			'param_name' => 'style',
      			'value' => array( 
      				esc_html__('Default','dental-core') => '',
					esc_html__('Rounded Border','dental-core') => 'rounded-border',
					esc_html__('Rounded Square','dental-core') => 'rounded-square',
					esc_html__('Diamond Square Border','dental-core') => 'diamond-square-border',
					esc_html__('Hexagon With Border','dental-core') => 'hexagon-with-border',
					esc_html__('Square Border','dental-core') => 'square-border',
      			),
      			'description' => esc_html__( 'Select style of sociable.', 'dental-core' ),
      			'std' => '',
      			'admin_label' => true
      		),
			
			  # Target
			  array(
					"type" => "textfield",
					"heading" => esc_html__( "Enter the icon link target", 'dental-core' ),
					"param_name" => "target",
					'description' => esc_html__('You can add a link target here e.g: _blank','dental-core')
			  ),

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