<?php 
    class Edumodo_Customizer_Single_TX_Course{
        private $panel_key;
        private $priority;
        private $text_domain = 'edumodo';
        public function __construct($panel_key, $priority){
            $this->panel_key = $panel_key;
            $this->priority = $priority;
            $this->single_txcourse_kirki_config();
        }
        public function single_txcourse_kirki_config(){
            #	start of txcourse region
                Kirki::add_section( 'edumodo_section_txcourse_single', array(
                    'title'          => esc_html__( 'TX Course', $this->text_domain ),
                    'panel'          => $this->panel_key,
                    'priority'       => $this->priority
                ) );
                    Kirki::add_field( 'edumodo_txcourse_single_custom_title', [
                        'type'     => 'text',
                        'settings' => 'edumodo_txcourse_single_custom_title',
                        'label'    => __( 'Hero Area Custom Title', $this->text_domain ),
                        'section'  => 'edumodo_section_txcourse_single',
                        'default'  => esc_html__('Course',$this->text_domain),
                        'priority' => 10,
                    ] );

                    // Kirki::add_field( 'edumodo_single_txcourse_course_layout', [
                    //     'type'        => 'select',
                    //     'settings'    => 'edumodo_single_txcourse_course_layout',
                    //     'label'       => esc_html__( 'Layout', $this->text_domain ),
                    //     'section'     => 'edumodo_section_txcourse_single',
                    //     'default'     => '2',
                    //     'priority'    => 10,
                    //     'multiple'    => 0,
                    //     'choices'     => [
                    //         '1' => esc_html__( 'Style One', $this->text_domain ),
                    //         '2' => esc_html__( 'Style Two', $this->text_domain )
                    //     ]
                    // ] );
                    Kirki::add_field( 'edumodo_txcourse_single_course_form', [
                        'type'     => 'text',
                        'settings' => 'edumodo_txcourse_single_course_form',
                        'label'    => esc_html__( 'weForm Shortcode', $this->text_domain ),
                        'section'  => 'edumodo_section_txcourse_single',
                        'default'  => esc_html__('',$this->text_domain),
                        'priority' => 10,
                    ] );

                    Kirki::add_field( 'edumodo_txcourse_single_course_date', [
                        'type'        => 'radio-buttonset',
                        'settings'    => 'edumodo_txcourse_single_course_date',
                        'label'       => esc_html__( 'Date', $this->text_domain ),
                        'section'     => 'edumodo_section_txcourse_single',
                        'default'     => 'on',
                        'priority'    => 10,
                        'choices'     => [
                            'on'   => esc_html__( 'Yes', $this->text_domain ),
                            'off' => esc_html__( 'No', $this->text_domain )
                        ],
                    ] );
                    Kirki::add_field( 'edumodo_txcourse_single_course_view', [
                        'type'        => 'radio-buttonset',
                        'settings'    => 'edumodo_txcourse_single_course_view',
                        'label'       => esc_html__( 'View', $this->text_domain ),
                        'section'     => 'edumodo_section_txcourse_single',
                        'default'     => 'on',
                        'priority'    => 10,
                        'choices'     => [
                            'on'   => esc_html__( 'Yes', $this->text_domain ),
                            'off' => esc_html__( 'No', $this->text_domain )
                        ],
                    ] );
                    Kirki::add_field( 'edumodo_txcourse_single_course_category', [
                        'type'        => 'radio-buttonset',
                        'settings'    => 'edumodo_txcourse_single_course_category',
                        'label'       => esc_html__( 'Category', $this->text_domain ),
                        'section'     => 'edumodo_section_txcourse_single',
                        'default'     => 'on',
                        'priority'    => 10,
                        'choices'     => [
                            'on'   => esc_html__( 'Yes', $this->text_domain ),
                            'off' => esc_html__( 'No', $this->text_domain )
                        ],
                    ] );



                    // Kirki::add_field( 'edumodo_single_txcourse_course_post_tags_trigger', [
                    //     'type'        => 'radio-buttonset',
                    //     'settings'    => 'edumodo_single_txcourse_course_post_tags_trigger',
                    //     'label'       => esc_html__( 'Post Tags', $this->text_domain ),
                    //     'section'     => 'edumodo_section_txcourse_single',
                    //     'default'     => 'on',
                    //     'priority'    => 10,
                    //     'choices'     => [
                    //         'on'   => esc_html__( 'Yes', $this->text_domain ),
                    //         'off' => esc_html__( 'No', $this->text_domain )
                    //     ],
                    //     'active_callback' => [
                    //         [
                    //             'setting'  => 'edumodo_single_txcourse_course_layout',
                    //             'operator' => '==',
                    //             'value'    => '1',
                    //         ]
                    //     ],
                    // ] );

                    // Kirki::add_field( 'edumodo_txcourse_single_course_social_share', [
                    //     'type'        => 'radio-buttonset',
                    //     'settings'    => 'edumodo_txcourse_single_course_social_share',
                    //     'label'       => esc_html__( 'Social Share', $this->text_domain ),
                    //     'section'     => 'edumodo_section_txcourse_single',
                    //     'default'     => 'on',
                    //     'priority'    => 10,
                    //     'choices'     => [
                    //         'on'   => esc_html__( 'Yes', $this->text_domain ),
                    //         'off' => esc_html__( 'No', $this->text_domain )
                    //     ],
                    //     'active_callback' => [
                    //         [
                    //             'setting'  => 'edumodo_single_txcourse_course_layout',
                    //             'operator' => '==',
                    //             'value'    => '1',
                    //         ]
                    //     ],
                    // ] );

                    // Kirki::add_field( 'edumodo_single_txcourse_course_related_course_trigger', [
                    //     'type'        => 'radio-buttonset',
                    //     'settings'    => 'edumodo_single_txcourse_course_related_course_trigger',
                    //     'label'       => esc_html__( 'Enable Related Course', $this->text_domain ),
                    //     'section'     => 'edumodo_section_txcourse_single',
                    //     'default'     => 'on',
                    //     'priority'    => 10,
                    //     'choices'     => [
                    //         'on'   => esc_html__( 'Yes', $this->text_domain ),
                    //         'off' => esc_html__( 'No', $this->text_domain )
                    //     ],
                    // ] );

                    // Kirki::add_field( 'edumodo_single_txcourse_related_course_per_page', [
                    //     'type'        => 'slider',
                    //     'settings'    => 'edumodo_single_txcourse_related_course_per_page',
                    //     'label'       => esc_html__( 'Related Course Count', $this->text_domain ),
                    //     'section'     => 'edumodo_section_txcourse_single',
                    //     'default'     => 3,
                    //     'choices'     => [
                    //         'min'  => 0,
                    //         'max'  => 100,
                    //         'step' => 1,
                    //     ],
                    //     'priority' => 10,
                    //     'active_callback' => [
                    //         [
                    //             'setting'  => 'edumodo_single_txcourse_course_related_course_trigger',
                    //             'operator' => '==',
                    //             'value'    => 'on',
                    //         ]
                    //     ],
                    // ] );

                    // Kirki::add_field( 'edumodo_single_txcourse_related_course_column', [
                    //     'type'        => 'select',
                    //     'settings'    => 'edumodo_single_txcourse_related_course_column',
                    //     'label'       => esc_html__( 'Columns', $this->text_domain ),
                    //     'section'     => 'edumodo_section_txcourse_single',
                    //     'default'     => '4',
                    //     'priority'    => 10,
                    //     'multiple'    => 0,
                    //     'choices'     => [
                    //         '6' => esc_html__( '2 Columns', $this->text_domain ),
                    //         '4' => esc_html__( '3 Columns', $this->text_domain ),
                    //         '3' => esc_html__( '4 Columns', $this->text_domain ),
                    //         '2' => esc_html__( '6 Columns', $this->text_domain ),
                    //     ],
                    //     'active_callback' => [
                    //         [
                    //             'setting'  => 'edumodo_single_txcourse_course_related_course_trigger',
                    //             'operator' => '==',
                    //             'value'    => 'on',
                    //         ]
                    //     ],
                    // ] );

                    // Kirki::add_field( 'edumodo_single_txcourse_course_related_course_desc', [
                    //     'type'        => 'radio-buttonset',
                    //     'settings'    => 'edumodo_single_txcourse_course_related_course_desc',
                    //     'label'       => esc_html__( 'Related Course Description', $this->text_domain ),
                    //     'section'     => 'edumodo_section_txcourse_single',
                    //     'default'     => 'on',
                    //     'priority'    => 10,
                    //     'choices'     => [
                    //         'on'   => esc_html__( 'Yes', $this->text_domain ),
                    //         'off' => esc_html__( 'No', $this->text_domain )
                    //     ],
                    //     'active_callback' => [
                    //         [
                    //             'setting'  => 'edumodo_single_txcourse_course_related_course_trigger',
                    //             'operator' => '==',
                    //             'value'    => 'on',
                    //         ]
                    //     ],
                    // ] );

                    // Kirki::add_field( 'edumodo_single_txcourse_related_course_desc_length', [
                    //     'type'        => 'slider',
                    //     'settings'    => 'edumodo_single_txcourse_related_course_desc_length',
                    //     'label'       => esc_html__( 'Related Course Description Length', $this->text_domain ),
                    //     'section'     => 'edumodo_section_txcourse_single',
                    //     'default'     => 3,
                    //     'choices'     => [
                    //         'min'  => 0,
                    //         'max'  => 100,
                    //         'step' => 1,
                    //     ],
                    //     'priority' => 10,
                    //     // 'active_callback' => [
                    //     // 	[
                    //     // 		'setting'  => 'edumodo_single_txcourse_course_related_course_desc',
                    //     // 		'operator' => '==',
                    //     // 		'value'    => 'on',
                    //     // 	]
                    //     // ],
                    //     'active_callback' => function() {
                    //         $course_desc = get_theme_mod('edumodo_single_txcourse_course_related_course_desc','on');
                    //         $course_enable = get_theme_mod('edumodo_single_txcourse_course_related_course_trigger','on');

                    //         if( $course_enable == 'on' ) {
                    //             if( $course_desc == 'on' ) {
                    //                 return true;
                    //             }
                    //         }

                    //         return false;
                    //     }
                    // ] );

                    // Kirki::add_field( 'edumodo_single_txcourse_course_button_text', [
                    //     'type'     => 'text',
                    //     'settings' => 'edumodo_single_txcourse_course_button_text',
                    //     'label'    => esc_html__( 'Button Text', $this->text_domain ),
                    //     'section'  => 'edumodo_section_txcourse_single',
                    //     'default'  => esc_html__('See more',$this->text_domain),
                    //     'priority' => 10,
                    //     'active_callback' => [
                    //         [
                    //             'setting'  => 'edumodo_single_txcourse_course_related_course_trigger',
                    //             'operator' => '==',
                    //             'value'    => 'on',
                    //         ]
                    //     ],
                    // ] );
            #	end of txcourse region


        }
    }
?>