<?php
add_action('init', 'confin_team_member_kc_map', 99 );
function confin_team_member_kc_map() {

	if (function_exists('kc_add_map')){
	    kc_add_map(
	        array(
	            'team_member' => array(
	                'name' =>  esc_html__('Confin Team','confin-core'),
	                'icon' => 'cpicon kc-icon-testi',
	                'category' => ConfinLibrary::confin_kc_cat_name(),
	                'params' => array(
                  'Content' => array(
                    array(
                        'type'          => 'group',
                        'label'         => esc_html__('Team Members', 'confin-core'),
                        'name'          => 'all_members',
                        'options'       => array('add_text' => esc_html__('Add new member', 'confin-core')),
                        'params' => array(
                          array(
                              'name' => 'member_name',
                              'label' => esc_html__('Person Name','confin-core'),
                              'type' => 'text',
                              'admin_label' => true,
                            ),
                          array(
                              'name' => 'member_title',
                              'label' => esc_html__('Member Title','confin-core'),
                              'type' => 'text',
                              'admin_label' => true,
                            ),
                            array(
                              'name' => 'team_profile',
                              'label' => esc_html__('Profile Image','confin-core'),
                              'type' => 'attach_image',
                              'description' => esc_html__('Chose List  Image ', 'confin-core'),
                            ),
                        ),
                      ),
                    ),
                    'Style' => array(
	                    array(
                        'name' => 'class',
                        'label' => esc_html__('Extra Class','confin-core'),
                        'type' => 'text',
                        'description' => esc_html__('Enter Extra Class for Titlte ..', 'confin-core')
                      ),
                      array(
                        'name' => 'title_size',
                        'label' => esc_html__('Title Size','confin-core'),
                        'type' => 'number_slider',
                        'options' => array(
                          'min' => 16,
                          'max' => 60,
                          'unit' => 'px',
                          'show_input' => true
                        ),
                        'description' => esc_html__('Enter font-size for title such as: 15px, 1em ..etc..', 'confin-core')
                      ),
                      array(
                        'name' => 'title_color',
                        'label' => esc_html__('Title Color','confin-core'),
                        'type' => 'color_picker',
                        'description' => esc_html__('Set color for title', 'confin-core')
                      ),
                      array(
                        'name' => 'subtitle_size',
                        'label' => esc_html__('Sub Title Size','confin-core'),
                        'type' => 'number_slider',
                        'options' => array(
                          'min' => 16,
                          'max' => 60,
                          'unit' => 'px',
                          'show_input' => true
                        ),
                        'description' => esc_html__('Enter font-size for Sub title such as: 15px, 1em ..etc..', 'confin-core')
	                    ),
	                    array(
                        'name' => 'subtitle_color',
                        'label' => esc_html__('Sub Title Color','confin-core'),
                        'type' => 'color_picker',
                        'description' => esc_html__('Set color for Sub title', 'confin-core')
	                    ),
	                    array(
                        'name' => 'desc_size',
                        'label' => esc_html__('description Size','confin-core'),
                        'type' => 'number_slider',
                        'options' => array(
                          'min' => 16,
                          'max' => 60,
                          'unit' => 'px',
                          'show_input' => true
                        ),
                        'description' => esc_html__('Enter font-size for Sub List such as: 15px, 1em ..etc..', 'confin-core')
	                    ),
                      array(
                        'name' => 'desc_color',
                        'label' => esc_html__('description Color','confin-core'),
                        'type' => 'color_picker',
                        'description' => esc_html__('Set color for List description', 'confin-core')
                      ),
                      array(
                        'name' => 'icon_color',
                        'label' => esc_html__('Icon Color','confin-core'),
                        'type' => 'color_picker',
                        'description' => esc_html__('Set color for List Icon', 'confin-core')
                      ),
                      array(
                        'name' => 'dots_color',
                        'label' => esc_html__('Dots Color','confin-core'),
                        'type' => 'color_picker',
                        'description' => esc_html__('Set color for List Dots', 'confin-core')
                      ),
                      array(
                        'name' => 'button_color',
                        'label' => esc_html__('Button Border Color','confin-core'),
                        'type' => 'color_picker',
                        'description' => esc_html__('Set color for List Button Border', 'confin-core')
                      ),
                      array(
                        'name' => 'button_hover',
                        'label' => esc_html__('Button hover Color','confin-core'),
                        'type' => 'color_picker',
                        'description' => esc_html__('Set color for List Button hover', 'confin-core')
                      ),
		                )
	                )
	            ),  // End of elemnt kc_icon

	        )
	    ); // End add map

	} // End if

}
