<?php 
    class Edumodo_Customizer_Header_Option{
        private $panel_key;
        private $priority;
        private $text_domain = 'edumodo';
        public function __construct($panel_key, $priority){
            $this->panel_key = $panel_key;
            $this->priority = $priority;
            $this->header_option_kirki_config();
        }
        public function header_option_kirki_config(){

            #   start variation region 
                Kirki::add_section('edumodo_header_option', array(
                    'title' => esc_attr__('Option', $this->text_domain),
                    'panel' => $this->panel_key,
                    'priority' => $this->priority,
                ) );

	                if( get_template_directory() === get_stylesheet_directory() ):
                        Kirki::add_field( 'edumodo_header_sticky_option', [
                            'type'        => 'radio-buttonset',
                            'settings'    => 'edumodo_header_sticky_option',
                            'label'       => esc_html__( 'Sticky', $this->text_domain ),
                            'section'     => 'edumodo_header_option',
                            'default'     => 'off',
                            'choices'     => [
                                'on'   => esc_html__( 'Yes', $this->text_domain ),
                                'off' => esc_html__( 'No', $this->text_domain )
                            ],
                            'priority' 	  => 10,
                        ] );
                    endif;
                    Kirki::add_field( 'edumodo_header_cart', [
                        'type'        => 'radio-buttonset',
                        'settings'    => 'edumodo_header_cart',
                        'label'       => esc_html__( 'Mini Cart', $this->text_domain ),
                        'section'     => 'edumodo_header_option',
                        'default'     => 'off',
                        'choices'     => [
                            'on'   => esc_html__( 'Yes', $this->text_domain ),
                            'off' => esc_html__( 'No', $this->text_domain )
                        ],
                        'priority' 	  => 10,
                    ] );
                    Kirki::add_field( 'edumodo_header_search', [
                        'type'        => 'radio-buttonset',
                        'settings'    => 'edumodo_header_search',
                        'label'       => esc_html__( 'Search', $this->text_domain ),
                        'section'     => 'edumodo_header_option',
                        'default'     => 'off',
                        'choices'     => [
                            'on'   => esc_html__( 'Yes', $this->text_domain ),
                            'off' => esc_html__( 'No', $this->text_domain )
                        ],
                        'priority' 	  => 10,
                    ] );            
            #   end of variation region 
        }
    }
?>