<?php 
    class Edumodo_Customizer_Single_Archive{
        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_blog_kirki_config();
        }
        public function single_blog_kirki_config(){
            
            #	start of blog region 
                Kirki::add_section( 'edumodo_section_single_blog', array(
                    'title'          => esc_html__( 'Blog', $this->text_domain ),
                    'panel'          => $this->panel_key,
                    'priority'       => $this->priority,
                ) );
                    Kirki::add_field( 'edumodo_blog_single_hero_area_custom_title', [
                        'type'     => 'text',
                        'settings' => 'edumodo_blog_single_hero_area_custom_title',
                        'label'    => __( 'Hero Area Custom Title', $this->text_domain ),
                        'section'  => 'edumodo_section_single_blog',
                        'default'  => esc_html__('Blog',$this->text_domain),
                        'priority' => 10,
                    ] );
                    Kirki::add_field( 'blog_single_seperator_1', [
                        'type'        => 'custom',
                        'settings'    => 'blog_single_seperator_1',
                        'label'       => esc_html__( '', 'edumodo' ),
                        'section'     => 'edumodo_section_single_blog',
                        '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_single_blog_post_layout', [
                        'type'     => 'radio-image',
                        'settings' => 'edumodo_single_blog_post_layout',
                        'label'    => esc_html__( 'Layout', $this->text_domain ),
                        'section'  => 'edumodo_section_single_blog',
                        'priority' => 10,
                        'default'  => 'right-sidebar',
                        'choices'     => [
                            'left-sidebar'   => get_template_directory_uri() . '/assets/images/left-sidebar.png',
                            'right-sidebar'  => get_template_directory_uri() . '/assets/images/right-sidebar.png',
                            'no-sidebar' => get_template_directory_uri() . '/assets/images/no-sidebar.png',
                        ],
                    ] );
                    // Kirki::add_field( 'edumodo_single_blog_navigation_taxonomy', [
                    //     'type'        => 'radio-buttonset',
                    //     'settings'    => 'edumodo_single_blog_navigation_taxonomy',
                    //     'label'       => esc_html__( 'Next/Prev Taxonomy', $this->text_domain ),
                    //     'section'     => 'edumodo_section_single_blog',
                    //     'default'     => 'category',
                    //     'priority'    => 10,
                    //     'choices'     => [
                    //         'category'  => esc_html__( 'Category', $this->text_domain ),
                    //         'tag' 		=> esc_html__( 'Tag', $this->text_domain ),
                    //     ],
                    // ] );
                    // Kirki::add_field( 'edumodo_single_blog_related_post_count', [
                    //     'type'        => 'slider',
                    //     'settings'    => 'edumodo_single_blog_related_post_count',
                    //     'label'       => esc_html__( 'Related Post Count', $this->text_domain ),
                    //     'section'     => 'edumodo_section_single_blog',
                    //     'default'     => 2,
                    //     'choices'     => [
                    //         'min'  => 1,
                    //         'max'  => 50,
                    //         'step' => 1,
                    //     ],
                    //     'priority'    => 10
                    // ] );
                    // Kirki::add_field( 'edumodo_single_blog_related_post_column_count', [
                    //     'type'        => 'select',
                    //     'settings'    => 'edumodo_single_blog_related_post_column_count',
                    //     'label'       => esc_html__( 'Related Post Columns', $this->text_domain ),
                    //     'section'     => 'edumodo_section_single_blog',
                    //     'default'     => '6',
                    //     '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),
                    //     ],
                    //     'multiple'    => 0,
                    //     'priority'    => 10
                    // ] );
                    Kirki::add_field( 'edumodo_single_blog_related_post_taxonomy', [
                        'type'        => 'radio-buttonset',
                        'settings'    => 'edumodo_single_blog_related_post_taxonomy',
                        'label'       => esc_html__( 'Related Post', $this->text_domain ),
                        'section'     => 'edumodo_section_single_blog',
                        'default'     => 'on',
                        'priority'    => 10,
                        'choices'     => [
                            'on'        => esc_html__( 'On', $this->text_domain ),
                            'off' 		=> esc_html__( 'Off', $this->text_domain ),
                        ],
                    ] );
                    Kirki::add_field( 'edumodo_single_blog_social_share', [
                        'type'        => 'radio-buttonset',
                        'settings'    => 'edumodo_single_blog_social_share',
                        'label'       => esc_html__( 'Social Share', $this->text_domain ),
                        'section'     => 'edumodo_section_single_blog',
                        'default'     => 'on',
                        'priority'    => 10,
                        'choices'     => [
                            'on'  => esc_html__( 'On', $this->text_domain ),
                            'off' 		=> esc_html__( 'Off', $this->text_domain ),
                        ],
                    ] );
            #	end of blog region 


        }
    }
?>