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

            #   start blog region 
                Kirki::add_section( 'edumodo_section_woocommerce', array(
                    'title'          => esc_html__( 'WooCommerce', 'edumodo' ),
                    'panel'          => $this->panel_key,
                    'priority'       => $this->priority,
                ) );
                    Kirki::add_field( 'edumodo_woocommerce_page_header_image', [
                        'type'        => 'image',
                        'settings'    => 'edumodo_woocommerce_page_header_image',
                        'label'       => esc_html__( 'Shop Page', 'edumodo' ),
                        'section'     => 'edumodo_section_woocommerce',
                        'priority'    => 10,
                        'active_callback' => [
                            [
                                'setting'  => 'edumodo_section_page_title_trigger',
                                'operator' => '==',
                                'value'    => 'on',
                            ]
                        ]
                    ] );
                    Kirki::add_field( 'edumodo_woocommerce_archive_custom_title', [
                        'type'     => 'text',
                        'settings' => 'edumodo_woocommerce_archive_custom_title',
                        'label'    => __( 'Custom Title', 'edumodo' ),
                        'section'  => 'edumodo_section_woocommerce',
                        'default'  => esc_html__('Products','edumodo'),
                        'priority' => 10,
                    ] );
            #   end of blog region 


        }
    }
?>