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

/*defaults values about options*/
$moment_customizer_defaults['moment-about-enable'] = 1;
$moment_customizer_defaults['moment-about-page'] = 0;
$moment_customizer_defaults['moment-home-about-single-words'] = 40;
$moment_customizer_defaults['moment-home-about-button-text'] = __('About Us','moment');
$moment_customizer_defaults['moment-home-about-button-link'] = '';

/* Feature section Enable settings*/
$moment_sections['moment-about-options'] =
    array(
        'priority'       => 10,
        'title'          => __( 'About settings', 'moment' ),
        'panel'          => 'moment-about-panel',
    );

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


    /*creating setting control for moment-about-page start*/
    $moment_settings_controls['moment-about-page'] =
        array(
                'setting' =>     array(
                    'default'              => $moment_customizer_defaults['moment-about-page'],
                    ),
                'control' => array(
                    'label'                 =>  __( 'Select Page For About Section', 'moment' ),
                    'description'           => '',
                    'section'               => 'moment-about-options',
                    'type'                  => 'dropdown-pages',
                    'priority'              => 20
                )
        );
