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

/*defaults values*/
$moment_customizer_defaults['moment-default-layout'] = 'right-sidebar';
$moment_customizer_defaults['moment-number-of-words'] = 30;
$moment_customizer_defaults['moment-single-post-image-align'] = 'full';



$moment_sections['moment-layout-options'] =
    array(
        'priority'       => 20,
        'title'          => __( 'Layout Options', 'moment' ),
        'panel'          => 'moment-theme-options',
    );

/*layout-options option responsive lodader start*/
$moment_settings_controls['moment-default-layout'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-default-layout'],
        ),
        'control' => array(
            'label'                 =>  __( 'Default Layout', 'moment' ),
            'description'           =>  __( 'Layout for all archives, single posts and pages', 'moment' ),
            'section'               => 'moment-layout-options',
            'type'                  => 'select',
            'choices'               => array(
                'right-sidebar' => __( 'Content - Primary Sidebar', 'moment' ),
                'left-sidebar' => __( 'Primary Sidebar - Content', 'moment' ),
                'no-sidebar' => __( 'No Sidebar', 'moment' )
            ),
            'priority'              => 20,
            'active_callback'       => ''
        )
    );


$moment_settings_controls['moment-number-of-words'] =
    array(
        'setting' =>     array(
            'default'              => $moment_customizer_defaults['moment-number-of-words']
        ),
        'control' => array(
            'label'                 =>  __( 'Number Of Words For Excerpt', 'moment' ),
            'description'           =>  __( 'This will controll the excerpt length on listing page', 'moment' ),
            'section'               => 'moment-layout-options',
            'type'                  => 'number',
            'priority'              => 30,
            'active_callback'       => ''
        )
    );