<?php
function expert_ngo_volunteer_upper_header_settings( $wp_customize ) {
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';

	/*=========================================
	top header
	=========================================*/
	$wp_customize->add_section(
        'expert_ngo_volunteer_topbar',
        array(
        	'priority'      => 3,
            'title' 		=> __('Header Information','expert-ngo-volunteer'),
			'panel'  		=> 'expert_ngo_volunteer_frontpage_sections',
		)
    );

	$wp_customize->add_setting('expert_ngo_volunteer_header_button',array(
		'default'=> 'DONATE NOW',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_ngo_volunteer_header_button',array(
		'label'	=> __('Header Button Text','expert-ngo-volunteer'),
		'section'=> 'expert_ngo_volunteer_topbar',
		'type'=> 'text'
	));

	$wp_customize->add_setting('expert_ngo_volunteer_header_link',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('expert_ngo_volunteer_header_link',array(
		'label'	=> __('Header Button Link','expert-ngo-volunteer'),
		'section'=> 'expert_ngo_volunteer_topbar',
		'type'=> 'url'
	));

	$wp_customize->add_setting( 'expert_ngo_volunteer_upgrade_page_settings_12',
        array(
            'sanitize_callback' => 'sanitize_text_field'
        )
    );
    $wp_customize->add_control( new Expert_NGO_Volunteer_Control_Upgrade(
        $wp_customize, 'expert_ngo_volunteer_upgrade_page_settings_12',
            array(
                'priority'      => 200,
                'section'       => 'expert_ngo_volunteer_topbar',
                'settings'      => 'expert_ngo_volunteer_upgrade_page_settings_12',
                'label'         => __( 'Expert NGO Volunteer Pro comes with additional features.', 'expert-ngo-volunteer' ),
                'choices'       => array( __( '15+ Ready-Made Sections', 'expert-ngo-volunteer' ), __( 'One-Click Demo Import', 'expert-ngo-volunteer' ), __( 'WooCommerce Integrated', 'expert-ngo-volunteer' ), __( 'Drag & Drop Section Reordering', 'expert-ngo-volunteer' ),__( 'Advanced Typography Control', 'expert-ngo-volunteer' ),__( 'Intuitive Customization Options', 'expert-ngo-volunteer' ),__( '24/7 Support', 'expert-ngo-volunteer' ), )
            )
        )
    ); 

}
add_action( 'customize_register', 'expert_ngo_volunteer_upper_header_settings' );