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

/*defaults values*/
$moment_customizer_defaults['moment-enable-back-to-top'] = 1;
$moment_customizer_defaults['moment-enable-breadcrumb'] = 1;
$moment_customizer_defaults['moment-enable-social-icons'] = 1;

$moment_customizer_defaults['moment-footer-sidebar-number'] = 3;
$moment_customizer_defaults['moment-copyright-text'] = __('Copyright &copy; All right reserved','moment');
$moment_customizer_defaults['moment-enable-theme-name'] = 1;

$moment_sections['moment-footer-options'] =
    array(
        'priority'       => 60,
        'title'          => __( 'Footer Options', 'moment' ),
        'panel'          => 'moment-theme-options'
    );

    $moment_settings_controls['moment-footer-sidebar-number'] =
        array(
            'setting' =>     array(
                'default'              => $moment_customizer_defaults['moment-footer-sidebar-number'],
            ),
            'control' => array(
                'label'                 =>  __( 'Number of Sidebars In Footer Area', 'moment' ),
                'section'               => 'moment-footer-options',
                'type'                  => 'select',
                'choices'               => array(
                    0 => __( 'Disable footer sidebar area', 'moment' ),
                    1 => __( '1', 'moment' ),
                    2 => __( '2', 'moment' ),
                    3 => __( '3', 'moment' )
                ),
                'priority'              => 10,
                'description'           => '',
                'active_callback'       => ''
            )
        );

$moment_settings_controls['moment-copyright-text'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-copyright-text'],
        ),
        'control' => array(
            'label'                 =>  __( 'Copyright Text', 'moment' ),
            'section'               => 'moment-footer-options',
            'type'                  => 'text_html',
            'priority'              => 20,
        )
    );