<?php
global $moment_panels;
global $moment_sections;
global $moment_settings_controls;
global $moment_repeated_settings_controls;
global $moment_customizer_defaults;

/*defaults values feature slider options*/
$moment_customizer_defaults['moment-feature-slider-enable-on'] = 'front-index-page';
$moment_customizer_defaults['moment-feature-slider-enable'] = 1;

/*feature slider enable setting*/
$moment_sections['moment-feature-section-enable-setting'] =
    array(
        'priority'       => 10,
        'title'          => __( 'Enable Slider', 'moment' ),
        'panel'          => 'moment-featured-slider',
    );

/*Feature section enable control*/
$moment_settings_controls['moment-feature-slider-enable'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-feature-slider-enable']
        ),
        'control' => array(
            'label'                 =>  __( 'Enable Main Slider', 'moment' ),
            'section'               => 'moment-feature-section-enable-setting',
        	'description'    		=> __( 'Enable "Main slider" on checked' , 'moment' ),
            'type'                  => 'checkbox',
            'priority'              => 10,
            'active_callback'       => ''
        )
    );

$moment_settings_controls['moment-feature-slider-enable-on'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-feature-slider-enable-on']
        ),
        'control' => array(
            'label'                 =>  __( 'Select Enable Slider On', 'moment' ),
            'section'               => 'moment-feature-section-enable-setting',
            'type'                  => 'select',
            'choices'               => array(
                'home-page'               => esc_html__( 'Static Front Page Only', 'moment' ),
                'front-index-page'        => esc_html__( 'Static Front and Index Page', 'moment' ),
                'entire-site'             => esc_html__( 'Entire Site', 'moment' ),
            ),
            'priority'              => 50,
            'active_callback'       => ''
        )
    );