<?php 
    class Edumodo_Customizer_Page_404{
        private $panel_key;
        private $priority;
        public function __construct($panel_key, $priority){
            $this->panel_key = $panel_key;
            $this->priority = $priority;
            $this->page_layout_kirki_config();
        }
        public function page_layout_kirki_config(){

            #   start 404 region 
                Kirki::add_section('edumodo_section_notfound', array(
                    'title' => esc_attr__('404', 'edumodo'),
                    'panel' => $this->panel_key,
                    'priority' => $this->priority,
                ) );
                    Kirki::add_field( 'edumodo_notfound_layout', [
                        'type'     => 'radio-image',
                        'settings' => 'edumodo_notfound_layout',
                        'label'    => esc_html__( 'Layout', 'edumodo' ),
                        'section'  => 'edumodo_section_notfound',
                        '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_not_found_page_image', [
                        'type'        => 'image',
                        'settings'    => 'edumodo_not_found_page_image',
                        'label'       => esc_html__( '404 Page Image', 'edumodo' ),
                        'section'     => 'edumodo_section_notfound',
                        'priority'    => 10,
                    ] );
            #   end of 404 region 


        }
    }
?>