<?php

Redux::setSection( $opt_name, array(
    'title'  => esc_html__( 'Notice', 'edumodo' ),
    'id'     => 'edumodo-notice-options',
    'icon'   => 'el el-volume-off',
    'fields' => array(

        array(
            'id'       => 'select-sidebar-notice-single-page',
            'type'     => 'select',
            'title'    => esc_html__('Single Page Sidebar Position', 'edumodo'),
            'options'  => array(
                'sidebar_left' => esc_html__('Left Sidebar', 'edumodo'),
                'sidebar_right' => esc_html__('Right Sidebar', 'edumodo'),
                'no_sidebar' => esc_html__('No Sidebar', 'edumodo'),
            ),
            'default'  => 'sidebar_right',
        ),

    )
) );

Redux::setSection( $opt_name, array(
    'title'  => esc_html__( 'Archive Page', 'edumodo' ),
    'id'     => 'tx_notice_archive_section',
    'subsection' => true,
    'fields' => array(  

        array(
             'id'      => 'tx_notice_archive_page_title',
             'title'   => __( 'Archive Page Title', 'edumodo' ),
             'type'    => 'text',
             'default' => 'All Notices',
         ),   

        array(
            'id'      => 'tx_notice_per_page',
            'type'    => 'spinner',
            'title'   => __( 'Notice Per Page', 'edumodo' ),
            'default' => '6',
            'min'     => '1',
            'step'    => '1',
            'max'     => '50',
        ),

        array(
            'id'       => 'enable_notice_archive_page_fixed_height_course',
            'type'     => 'switch',
            'title'    => esc_html__('Notices Fixed Height', 'edumodo'),
            'default'  => 0,
            'on'       => 'Enabled',
            'off'      => 'Disabled',
        ),

        array(
            'id'            => 'archive_notice_page_fixed_height_course',
            'type'          => 'slider',
            'title'         => __( 'Notices Fixed Height', 'edumodo' ),
            'default'       => 450,
            'min'           => 300,
            'step'          => 1,
            'max'           => 700,
            'display_value' => 'label',
            'required' => array('enable_notice_archive_page_fixed_height_course','=', true)
        ),
        
        array( 
            'id' => 'archive_notice_image_size',
            'title'    => esc_html__('Image Size', 'edumodo'),
            'type' => 'select', 
            'default'  => 'tx_course_archive',
            'options' => edumodo_image_sizes_by_array(),
        ), 

        array(
            'id'      => 'archive_notice_course_title_length',
            'type'    => 'spinner',
            'title'   => __( 'Notices Title Length', 'edumodo' ),
            'default' => '8',
            'min'     => '1',
            'step'    => '1',
            'max'     => '50',
        ),

        array(
            'id'      => 'archive_notice_course_contnent_length',
            'type'    => 'spinner',
            'title'   => __( 'Notices Content Length', 'edumodo' ),
            'default' => '15',
            'min'     => '1',
            'step'    => '1',
            'max'     => '150',
        ),
        array(
            'id'       => 'enable_notice_archive_page_date',
            'type'     => 'switch',
            'title'    => esc_html__('Archive Notices Date', 'edumodo'),
            'default'  => 1,
            'on'       => 'Enabled',
            'off'      => 'Disabled',
        ),

        array(
            'id'       => 'enable_notice_archive_page_views',
            'type'     => 'switch',
            'title'    => esc_html__('Archive Notices Views', 'edumodo'),
            'default'  => 1,
            'on'       => 'Enabled',
            'off'      => 'Disabled',
        ),
      
    )
) );
