<?php 
    class Edumodo_Customizer_Typography_Heading{
        private $panel_key;
        private $priority;
        private $text_domain = 'edumodo';
        public function __construct($panel_key, $priority){
            $this->panel_key = $panel_key;
            $this->priority = $priority;
            $this->typo_heading_kirki_config();
        }
        public function typo_heading_kirki_config(){
            
            #	start of blog region 
                Kirki::add_section( 'tutorque_typo_heading', array(
                    'title'          => esc_html__( 'Heading', $this->text_domain ),
                    'panel'          => $this->panel_key,
                    'priority'       => $this->priority,
                ) );
                    Kirki::add_field( 'headings_all', [
                        'type'        => 'typography',
                        'settings'    => 'headings_all',
                        'label'       => esc_html__( 'HEADINGS ( H1 - H6 )', 'tutorque' ),
                        'section'     => 'tutorque_typo_heading',
                        'priority'    => 10,
                        'transport'   => 'auto',
                        'default'     => [
                            'font-family'    => 'Poppins',
                            'variant'        => 'regular',
                            // 'color'			 => '#07294d',
                            // 'text-transform' => 'none',
                            // 'font-size'		 => 'inherit',
                            // 'line-height'	 => '1.1',
                            // 'letter-spacing' => '0',
                        ],
                        'output'      => [
                            [
                                'element' => 'h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .site-title, .site-title a, h3.tribe-events-calendar-list__event-title a, #tribe-events h1.tribe-events-single-event-title',
                            ],
                        ],
                    ] );
            
                    Kirki::add_field( 'headings_h1', [
                        'type'        => 'typography',
                        'settings'    => 'headings_h1',
                        'label'       => esc_html__( 'HEADING 1', 'tutorque' ),
                        'section'     => 'tutorque_typo_heading',
                        'priority'    => 10,
                        'transport'   => 'auto',
                        'default'     => [
                            'font-family'    => 'inherit',
                            'color'			 => '#07294d',
                            'text-transform' => 'none',
                            'font-size'		 => 'inherit',
                            'line-height'	 => 'inherit',
                            'letter-spacing' => '0',
                        ],
                        'output'      => [
                            [ 'element' => 'h1, .entry-content h1' ],
                        ],
                    ] );
                    Kirki::add_field( 'headings_h2', [
                        'type'        => 'typography',
                        'settings'    => 'headings_h2',
                        'label'       => esc_html__( 'HEADING 2', 'tutorque' ),
                        'section'     => 'tutorque_typo_heading',
                        'priority'    => 10,
                        'transport'   => 'auto',
                        'default'     => [
                            'font-family'    => 'inherit',
                            'color'			 => '#07294d',
                            'text-transform' => 'none',
                            'font-size'		 => 'inherit',
                            'line-height'	 => 'inherit',
                            'letter-spacing' => '0',
                        ],
                        'output'      => [
                            [ 'element' => 'h2, .entry-content h2' ],
                        ],
                    ] );
                    Kirki::add_field( 'headings_h3', [
                        'type'        => 'typography',
                        'settings'    => 'headings_h3',
                        'label'       => esc_html__( 'HEADING 3', 'tutorque' ),
                        'section'     => 'tutorque_typo_heading',
                        'priority'    => 10,
                        'transport'   => 'auto',
                        'default'     => [
                            'font-family'    => 'inherit',
                            'color'			 => '#07294d',
                            'text-transform' => 'none',
                            'font-size'		 => 'inherit',
                            'line-height'	 => 'inherit',
                            'letter-spacing' => '0',
                        ],
                        'output'      => [
                            [ 'element' => 'h3, .entry-content h3' ],
                        ],
                    ] );
            
                    Kirki::add_field( 'headings_h4', [
                        'type'        => 'typography',
                        'settings'    => 'headings_h4',
                        'label'       => esc_html__( 'HEADING 4', 'tutorque' ),
                        'section'     => 'tutorque_typo_heading',
                        'priority'    => 10,
                        'transport'   => 'auto',
                        'default'     => [
                            'font-family'    => 'inherit',
                            'color'			 => '#07294d',
                            'text-transform' => 'none',
                            'font-size'		 => 'inherit',
                            'line-height'	 => 'inherit',
                            'letter-spacing' => '0',
                        ],
                        'output'      => [
                            [ 'element' => 'h4, .entry-content h4' ],
                        ],
                    ] );
            
                    Kirki::add_field( 'headings_h5', [
                        'type'        => 'typography',
                        'settings'    => 'headings_h5',
                        'label'       => esc_html__( 'HEADING 5', 'tutorque' ),
                        'section'     => 'tutorque_typo_heading',
                        'priority'    => 10,
                        'transport'   => 'auto',
                        'default'     => [
                            'font-family'    => 'inherit',
                            'color'			 => '#07294d',
                            'text-transform' => 'none',
                            'font-size'		 => 'inherit',
                            'line-height'	 => 'inherit',
                            'letter-spacing' => '0',
                        ],
                        'output'      => [
                            [ 'element' => 'h5, .entry-content h5' ],
                        ],
                    ] );
            
                    Kirki::add_field( 'headings_h6', [
                        'type'        => 'typography',
                        'settings'    => 'headings_h6',
                        'label'       => esc_html__( 'HEADING 6', 'tutorque' ),
                        'section'     => 'tutorque_typo_heading',
                        'priority'    => 10,
                        'transport'   => 'auto',
                        'default'     => [
                            'font-family'    => 'inherit',
                            'color'			 => '#07294d',
                            'text-transform' => 'none',
                            'font-size'		 => 'inherit',
                            'line-height'	 => 'inherit',
                            'letter-spacing' => '0',
                        ],
                        'output'      => [
                            [ 'element' => 'h6, .entry-content h6' ],
                        ],
                    ] );
            #	end of blog region 


        }
    }
?>