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

            #   start color region 
                Kirki::add_section('edumodo_section_styling', array(
                    'title' => esc_attr__('Color', 'edumodo'),
                    'panel' => $this->panel_key,
                    'priority' => $this->priority,
                ) );
                    Kirki::add_field( 'edumodo', [
                        'type'        => 'color',
                        'settings'    => 'primary_color',
                        'label'       => __( 'Primary Color', 'edumodo' ),
                        'section'     => 'edumodo_section_styling',
                        'choices'     => [ 'alpha' => true],
                        'transport'   => 'auto',
                        'default'     => '#ecb101'
                    ] );
                    Kirki::add_field( 'edumodo', [
                        'type'        => 'color',
                        'settings'    => 'secondary_color',
                        'label'       => __( 'Secondary Color', 'edumodo' ),
                        'section'     => 'edumodo_section_styling',
                        'choices'     => [ 'alpha' => true],
                        'transport'   => 'auto',
                        'default'     => '#242c5e'
                    ] );

                    // Kirki::add_field( 'edumodo_test', [
                    //     'type' 	=> 'heading',
                    //     'label'	=> 'Site Background',
                    //     'section'     => 'edumodo_section_styling',
                    // ]);

                    // Kirki::add_field( 'site_background', [
                    //     'type'        => 'background',
                    //     'settings'    => 'site_background',
                    //     'section'     => 'edumodo_section_styling',
                    //     'default'     => [
                    //         'background-color'      => '#f5f5f5',
                    //         'background-image'      => '',
                    //         'background-repeat'     => 'repeat',
                    //         'background-position'   => 'center center',
                    //         'background-size'       => 'cover',
                    //         'background-attachment' => 'scroll',
                    //     ],
                    //     'transport'   => 'auto',
                    //     'output'      => [
                    //         [
                    //             'element' => '.content-area',
                    //         ],
                    //     ],
                    // ] );
            #   end of color region 


        }
    }
?>