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

            Kirki::add_section('edumodo_section_activity_section', [
                'title' => esc_attr__('Activity', 'edumodo'),
                'panel' => $this->panel_key,
                'priority' => $this->priority,
            ] );

                Kirki::add_field( 'edumodo_activity_page_header_image', [
                    'type'        => 'image',
                    'settings'    => 'edumodo_activity_page_header_image',
                    'label'       => esc_html__( 'Breadcrumb Background', 'edumodo' ),
                    'section'     => 'edumodo_section_activity_section',
                    'priority'    => 10,
                    'active_callback' => [
                        [
                            'setting'  => 'edumodo_section_page_title_trigger',
                            'operator' => '==',
                            'value'    => 'on',
                        ]
                    ]
                ] );
                Kirki::add_field( 'edumodo_activity_archive_custom_title', [
                    'type'     => 'text',
                    'settings' => 'edumodo_activity_archive_custom_title',
                    'label'    => __( 'Custom Title', 'edumodo' ),
                    'section'  => 'edumodo_section_activity_section',
                    'default'  => esc_html__('Activity','edumodo'),
                    'priority' => 10,
                ] );

        }
    }
?>