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

            #   start color region 
                Kirki::add_section('edumodo_section_rtl', array(
                    'title' => esc_attr__('RTL', 'edumodo'),
                    'panel' => $this->panel_key,
                    'priority' => $this->priority,
                ) );
                    Kirki::add_field( 'edumodo_enable_rtl', [
                        'type'        => 'radio-buttonset',
                        'settings'    => 'edumodo_enable_rtl',
                        'label'       => esc_html__( 'Enable', $this->text_domain ),
                        'section'     => 'edumodo_section_rtl',
                        'default'     => 'off',
                        'priority'    => 10,
                        'choices'     => [
                            'on'   => esc_html__( 'Yes', $this->text_domain ),
                            'off' => esc_html__( 'No', $this->text_domain )
                        ],
                    ] );
            #   end of color region 


        }
    }
?>