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

/*defaults values*/
$moment_customizer_defaults['moment-featured-slider-number'] = 3;
$moment_customizer_defaults['moment-featured-slider-selection'] = 'from-page';
$moment_customizer_defaults['moment-fs-single-words'] = 30;
$moment_customizer_defaults['moment-fs-slider-mode'] = 'fadeout';
$moment_customizer_defaults['moment-fs-slider-time'] = 2;
$moment_customizer_defaults['moment-fs-slider-pause-time'] = 5;
$moment_customizer_defaults['moment-fs-enable-arrow'] = 0;
$moment_customizer_defaults['moment-fs-enable-pager'] = 1;
$moment_customizer_defaults['moment-fs-enable-autoplay'] = 1;
$moment_customizer_defaults['moment-fs-enable-title'] = 1;
$moment_customizer_defaults['moment-fs-enable-caption'] = 1;
$moment_customizer_defaults['moment-fs-button-text'] = __('Know More','moment');
$moment_customizer_defaults['moment-fs-enable-button'] = 1;

/*fs options*/
$moment_sections['moment-fs-slider-options'] =
    array(
        'priority'       => 80,
        'title'          => __( 'Slider Property', 'moment' ),
        'panel'          => 'moment-featured-slider',
    );

    /*No of feature slider selection*/
    $moment_settings_controls['moment-featured-slider-number'] =
        array(
            'setting' =>     array(
                'default'              => $moment_customizer_defaults['moment-featured-slider-number']
            ),
            'control' => array(
                'label'                 =>  __( 'Number Of Slider', 'moment' ),
                'section'               => 'moment-fs-slider-options',
                'type'                  => 'select',
                'choices'               => array(
                    1 => __( '1', 'moment' ),
                    2 => __( '2', 'moment' ),
                    3 => __( '3', 'moment' )
                ),
                'priority'              => 10,
                'active_callback'       => ''
            )
        );

$moment_settings_controls['moment-fs-slider-mode'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-fs-slider-mode']
        ),
        'control' => array(
            'label'                 =>  __( 'Slider Mode', 'moment' ),
            'section'               => 'moment-fs-slider-options',
            'type'                  => 'select',
            'choices'               => array(
                'scrollHorz' => __( 'Default', 'moment' ),
                'fade' => __( 'Fade', 'moment' ),
                'fadeout' => __( 'Fade-Out', 'moment' ),
            ),
            'priority'              => 10,
            'active_callback'       => ''
        )
    );
$moment_settings_controls['moment-fs-enable-arrow'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-fs-enable-arrow']
        ),
        'control' => array(
            'label'                 =>  __( 'Enable Arrow', 'moment' ),
            'section'               => 'moment-fs-slider-options',
            'type'                  => 'checkbox',
            'priority'              => 50,
            'active_callback'       => ''
        )
    );

$moment_settings_controls['moment-fs-enable-pager'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-fs-enable-pager']
        ),
        'control' => array(
            'label'                 =>  __( 'Enable Pager', 'moment' ),
            'section'               => 'moment-fs-slider-options',
            'type'                  => 'checkbox',
            'priority'              => 55,
            'active_callback'       => ''
        )
    );

$moment_settings_controls['moment-fs-enable-autoplay'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-fs-enable-autoplay']
        ),
        'control' => array(
            'label'                 =>  __( 'Enable Autoplay', 'moment' ),
            'section'               => 'moment-fs-slider-options',
            'type'                  => 'checkbox',
            'priority'              => 60,
            'active_callback'       => ''
        )
    );

$moment_settings_controls['moment-fs-enable-title'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-fs-enable-title']
        ),
        'control' => array(
            'label'                 =>  __( 'Enable Title', 'moment' ),
            'section'               => 'moment-fs-slider-options',
            'type'                  => 'checkbox',
            'priority'              => 70,
            'active_callback'       => ''
        )
    );

$moment_settings_controls['moment-fs-enable-caption'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-fs-enable-caption']
        ),
        'control' => array(
            'label'                 =>  __( 'Enable Caption', 'moment' ),
            'section'               => 'moment-fs-slider-options',
            'type'                  => 'checkbox',
            'priority'              => 80,
            'active_callback'       => ''
        )
    );
$moment_settings_controls['moment-fs-enable-button'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-fs-enable-button']
        ),
        'control' => array(
            'label'                 =>  __( 'Enable Button', 'moment' ),
            'section'               => 'moment-fs-slider-options',
            'type'                  => 'checkbox',
            'priority'              => 90,
            'active_callback'       => ''
        )
    );
