<?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-home-showcase-title'] = __('Photo Showcase','moment');
$moment_customizer_defaults['moment-home-showcase-sub-title'] = __('Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Integer posuere erat.','moment');
$moment_customizer_defaults['moment-home-showcase-number'] = 9;
$moment_customizer_defaults['moment-home-showcase-column'] = 3;
$moment_customizer_defaults['moment-home-showcase-button-text'] =  __('View More','moment');
$moment_customizer_defaults['moment-home-showcase-button-url'] = '#';

/*aboutoptions*/
$moment_sections['moment-home-showcase-options'] =
    array(
        'priority'       => 180,
        'title'          => __( 'Section settings', 'moment' ),
        'panel'          => 'moment-home-showcase-panel',
    );


$moment_settings_controls['moment-home-showcase-title'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-home-showcase-title']
        ),
        'control' => array(
            'label'                 =>  __( 'Main Title', 'moment' ),
            'description'           =>  __( 'Enable "showcase Section" on checked', 'moment' ),
            'section'               => 'moment-home-showcase-options',
            'type'                  => 'text',
            'priority'              => 20,
            'active_callback'       => ''
        )
    );

$moment_settings_controls['moment-home-showcase-sub-title'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-home-showcase-sub-title']
        ),
        'control' => array(
            'label'                 =>  __( 'Sub Title', 'moment' ),
            'section'               => 'moment-home-showcase-options',
            'type'                  => 'text',
            'priority'              => 30,
            'active_callback'       => ''
        )
    );

$moment_settings_controls['moment-home-showcase-number'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-home-showcase-number']
        ),
        'control' => array(
            'label'                 =>  __( 'Number Of showcase/s', 'moment' ),
            'section'               => 'moment-home-showcase-options',
            'type'                  => 'select',
            'choices'               => array(
                1 => __( '1', 'moment' ),
                2 => __( '2', 'moment' ),
                3 => __( '3', 'moment' ),
                4 => __( '4', 'moment' ),
                5 => __( '5', 'moment' ),
                6 => __( '6', 'moment' ),
                7 => __( '7', 'moment' ),
                8 => __( '8', 'moment' ),
                9 => __( '9', 'moment' )
            ),
            'priority'              => 40,
            'active_callback'       => ''
        )
    );
    /*Showcase Section Button URL*/
    $moment_settings_controls['moment-home-showcase-button-url'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-home-showcase-button-url']
        ),
        'control' => array(
            'label'                 =>  __( 'Showcase Section Button URL', 'moment' ),
            'description'           =>  __( 'Will redirect to the costume URL ', 'moment' ),
            'section'               => 'moment-home-showcase-options',
            'type'                  => 'url',
            'priority'              => 70,
            'active_callback'       => ''
        )
    );
