<?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-pages'] = 0;

/*page selection*/
$moment_sections['moment-feature-slider-pages'] =
    array(
        'priority'       => 40,
        'title'          => __( 'Select Page', 'moment' ),
        'description'    => __( 'Select the page you wish to be on slider', 'moment' ),
        'panel'          => 'moment-featured-slider',
    );

/*creating setting control for moment-fs-page start*/
$moment_repeated_settings_controls['moment-featured-slider-pages'] =
    array(
        'repeated' => 3,
        'moment-fs-pages-ids' => array(
            'setting' =>     array(
                'default'              => $moment_customizer_defaults['moment-featured-slider-pages'],
            ),
            'control' => array(
                'label'                 =>  __( 'Select Page For Slide %s', 'moment' ),
                'section'               => 'moment-feature-slider-pages',
                'type'                  => 'dropdown-pages',
                'priority'              => 60,
                'description'           => ''
            )
        ),
        'moment-fs-pages-divider' => array(
            'control' => array(
                'section'               => 'moment-fs-selection-setting',
                'type'                  => 'message',
                'priority'              => 60,
                'description'           => '<br /><hr />'
            )
        )
    );

