<?php 
    class Edumodo_Customizer_Single_Lifter{
        private $panel_key;
        private $priority;
        private $text_domain = 'edumodo';
        public function __construct($panel_key, $priority){
            $this->panel_key = $panel_key;
            $this->priority = $priority;
            $this->lifter_single_kirki_config();
        }
        public function lifter_single_kirki_config(){
            
             
            Kirki::add_section('edumodo_lifter_single_course_section', array(
                'title' => esc_attr__('LifterLMS', $this->text_domain),
                'panel' => $this->panel_key,
                'priority' => $this->priority,
            ) );
                Kirki::add_field( 'edumodo_lifter_course_single_custom_title', [
                    'type'     => 'text',
                    'settings' => 'edumodo_lifter_course_single_custom_title',
                    'label'    => __( 'Hero Area Custom Title', $this->text_domain ),
                    'section'  => 'edumodo_lifter_single_course_section',
                    'default'  => esc_html__('Single Course',$this->text_domain),
                    'priority' => 10,
                ] );
                Kirki::add_field( 'lifter_course_single_seperator_1', [
                    'type'        => 'custom',
                    'settings'    => 'lifter_course_single_seperator_1',
                    'label'       => esc_html__( '', 'edumodo' ),
                    'section'     => 'edumodo_lifter_single_course_section',
                    'default'     => '<h3 style="border: solid 1px #b3b3b3; text-align: center; letter-spacing: 2px;padding:15px 10px; background:#cecece; text-transform:uppercase; margin:10px -20px 5px;">' . __( 'Settings  &darr;', 'edumodo' ) . '</h3>',
                    'priority'    => 10,
                ] );
                Kirki::add_field( 'edumodo_lifter_course_layout', [
                    'type'     => 'radio-image',
                    'settings' => 'edumodo_lifter_course_layout',
                    'label'    => esc_html__( 'Course Layout', $this->text_domain ),
                    'section'  => 'edumodo_lifter_single_course_section',
                    'priority' => 10,
                    'default'  => 'right-sidebar',
                    'choices'     => [
                        'left-sidebar'   => get_template_directory_uri() . '/assets/images/left-sidebar.png',
                        'no-sidebar' => get_template_directory_uri() . '/assets/images/no-sidebar.png',
                        'right-sidebar'  => get_template_directory_uri() . '/assets/images/right-sidebar.png',
                    ],
                ] );
                Kirki::add_field( 'edumodo_lifter_single_course_full_width_layout', [
                    'type'        => 'select',
                    'settings'    => 'edumodo_lifter_single_course_full_width_layout',
                    'label'       => esc_html__( 'Course Layout Option', $this->text_domain ),
                    'section'     => 'edumodo_lifter_single_course_section',
                    'default'     => '1',
                    'choices'     => [
                        '1'		=> esc_html__('Style 1 - Default',$this->text_domain),
                        '2'		=> esc_html__('Style 2',$this->text_domain),
                    ],
                    'multiple'    => 0,
                    'active_callback' => [
                        [
                            'setting'  => 'edumodo_lifter_course_layout',
                            'operator' => '==',
                            'value'    => 'no-sidebar',
                        ]
                    ],
                ] );
                Kirki::add_field( 'edumodo_lifter_lesson_layout', [
                    'type'     => 'radio-image',
                    'settings' => 'edumodo_lifter_lesson_layout',
                    'label'    => esc_html__( 'Lesson Layout', $this->text_domain ),
                    'section'  => 'edumodo_lifter_single_course_section',
                    'priority' => 10,
                    'default'  => 'right-sidebar',
                    'choices'     => [
                        'left-sidebar'   => get_template_directory_uri() . '/assets/images/left-sidebar.png',
                        'no-sidebar' => get_template_directory_uri() . '/assets/images/no-sidebar.png',
                        'right-sidebar'  => get_template_directory_uri() . '/assets/images/right-sidebar.png',
                    ],
                ] );
                Kirki::add_field( 'edumodo_lifter_membership_layout', [
                    'type'     => 'radio-image',
                    'settings' => 'edumodo_lifter_membership_layout',
                    'label'    => esc_html__( 'Membership Layout', $this->text_domain ),
                    'section'  => 'edumodo_lifter_single_course_section',
                    'priority' => 10,
                    'default'  => 'right-sidebar',
                    'choices'     => [
                        'left-sidebar'   => get_template_directory_uri() . '/assets/images/left-sidebar.png',
                        'no-sidebar' => get_template_directory_uri() . '/assets/images/no-sidebar.png',
                        'right-sidebar'  => get_template_directory_uri() . '/assets/images/right-sidebar.png',
                    ],
                ] );

        }
    }
?>