<?php 
    class Edumodo_Customizer_General_Social{
        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_social_kirki_config();
        }
        public function general_social_kirki_config(){

            #   start social region 
                Kirki::add_section( 'edumodo_section_social_links', array(
                    'title'          => esc_html__( 'Social Links', $this->text_domain ),
                    'panel' => $this->panel_key,
                    'priority' => $this->priority,
                ) );
                    Kirki::add_field( 'edumodo_social_facebook_url', [
                        'type'     => 'link',
                        'settings' => 'edumodo_social_facebook_url',
                        'label'    => __( 'Facebook', $this->text_domain ),
                        'section'  => 'edumodo_section_social_links',
                        'default'  => '#',
                        'priority' => 10,
                    ] );
                    Kirki::add_field( 'edumodo_social_twitter_url', [
                        'type'     => 'link',
                        'settings' => 'edumodo_social_twitter_url',
                        'label'    => __( 'Twitter', $this->text_domain ),
                        'section'  => 'edumodo_section_social_links',
                        'default'  => '#',
                        'priority' => 10,
                    ] );
                    Kirki::add_field( 'edumodo_social_instagram_url', [
                        'type'     => 'link',
                        'settings' => 'edumodo_social_instagram_url',
                        'label'    => __( 'Instagram', $this->text_domain ),
                        'section'  => 'edumodo_section_social_links',
                        'default'  => '#',
                        'priority' => 10,
                    ] );
                    Kirki::add_field( 'edumodo_social_linkedin_url', [
                        'type'     => 'link',
                        'settings' => 'edumodo_social_linkedin_url',
                        'label'    => __( 'Linkedin', $this->text_domain ),
                        'section'  => 'edumodo_section_social_links',
                        'default'  => '#',
                        'priority' => 10,
                    ] );
                    Kirki::add_field( 'edumodo_social_whatsapp_url', [
                        'type'     => 'link',
                        'settings' => 'edumodo_social_whatsapp_url',
                        'label'    => __( 'Whatsapp', $this->text_domain ),
                        'section'  => 'edumodo_section_social_links',
                        'default'  => '#',
                        'priority' => 10,
                    ] );
                    Kirki::add_field( 'edumodo_social_youtube_url', [
                        'type'     => 'link',
                        'settings' => 'edumodo_social_youtube_url',
                        'label'    => __( 'Youtube', $this->text_domain ),
                        'section'  => 'edumodo_section_social_links',
                        'default'  => '#',
                        'priority' => 10,
                    ] );
                    Kirki::add_field( 'edumodo_social_skype_url', [
                        'type'     => 'link',
                        'settings' => 'edumodo_social_skype_url',
                        'label'    => __( 'Skype', $this->text_domain ),
                        'section'  => 'edumodo_section_social_links',
                        'default'  => '#',
                        'priority' => 10,
                    ] );
                    Kirki::add_field( 'edumodo_social_snapchat_url', [
                        'type'     => 'link',
                        'settings' => 'edumodo_social_snapchat_url',
                        'label'    => __( 'Snapchat', $this->text_domain ),
                        'section'  => 'edumodo_section_social_links',
                        'default'  => '#',
                        'priority' => 10,
                    ] );
            #   end of social region 
        }
    }
?>