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

$moment_customizer_defaults['moment-home-showcase-category'] = 0;

/*options*/
$moment_sections['moment-home-showcase-category-select'] =
    array(
        'priority'       => 180,
        'title'          => __( 'Select Category', 'moment' ),
        'panel'          => 'moment-home-showcase-panel',
    );
    
$moment_repeated_settings_controls['moment-home-showcase-category'] =
    array(
        'repeated' => 3,
        'moment-home-showcase-category-ids' => array(
            'setting' =>     array(
                'default'              => $moment_customizer_defaults['moment-home-showcase-category'],

            ),
            'control' => array(
                'label'                 =>  __( 'Select Category For showcase %s', 'moment' ),
                'description'           =>  __( 'showcase will only displayed from this category', 'moment' ),
                'section'               => 'moment-home-showcase-category-select',
                'type'                  => 'category_dropdown',
                'priority'              => 60,
                'active_callback'       => ''
            )
        ),
        'moment-home-showcase-category-divider' => array(
            'control' => array(
                'section'               => 'moment-home-showcase-category-select',
                'type'                  => 'message',
                'priority'              => 20,
                'description'           => '<br /><hr />'
            )
        )
    );