<?php
/**
 * Typography Section
*/
function constructionarc_customize_register_for_typography( $wp_customize ) {
   
    // Add the body typography section.
    $wp_customize->add_section('typography_settings', array(
        'priority' => 5,
        'title' => esc_html__('Typography Settings', 'construction-arc')
    ));

    $wp_customize->add_setting('constructionarc_body_font_family', array(
        'default' => 'Sora',
        'sanitize_callback' => 'sanitize_text_field',
        
    ));
    $wp_customize->add_control('constructionarc_body_font_family', array(
        'label' => esc_html__('Body Font Family', 'construction-arc'),
        'section' => 'typography_settings',
        'type' => 'select',
        'choices' => array(
            'Poppins'    => esc_html__("Poppins", 'construction-arc'),
            'Roboto'     => esc_html__("Roboto", 'construction-arc'),
            'Sora'     => esc_html__("Sora", 'construction-arc'),
            'Raleway'    => esc_html__("Raleway", 'construction-arc'),
            'Marcellus'     => esc_html__("Marcellus", 'construction-arc'),
            'Montserrat' => esc_html__("Montserrat", 'construction-arc'),
            'Arizonia'   => esc_html__("Arizonia", 'construction-arc'),
            ''           => esc_html__("More in pro", 'construction-arc'),
        )
    ));

    $wp_customize->add_setting('constructionarc_heading_font_family', array(
        'default' => 'Marcellus',
        'sanitize_callback' => 'sanitize_text_field',
        
    ));
    $wp_customize->add_control('constructionarc_heading_font_family', array(
        'label' => esc_html__('Heading (h1 to h6)', 'construction-arc'),
        'section' => 'typography_settings',
        'type' => 'select',
        'choices' => array(
            'Poppins'    => esc_html__("Poppins", 'construction-arc'),
            'Roboto'     => esc_html__("Roboto", 'construction-arc'),
            'Sora'     => esc_html__("Sora", 'construction-arc'),
            'Raleway'    => esc_html__("Raleway", 'construction-arc'),
            'Marcellus'     => esc_html__("Marcellus", 'construction-arc'),
            'Montserrat' => esc_html__("Montserrat", 'construction-arc'),
            'Arizonia'   => esc_html__("Arizonia", 'construction-arc'),
            '' => esc_html__("More in pro", 'construction-arc'),
        )
    ));


    $wp_customize->add_setting('constructionarc_pro_typography', array(
        'sanitize_callback' => 'constructionarc_sanitize_text'
    ));
    $wp_customize->add_control(new constructionarc_Themes_Upgrade_Text($wp_customize, 'constructionarc_pro_typography', array(
        'section' => 'typography_settings',
        'label' => esc_html__('For More Settings,', 'construction-arc'),
        'choices' => array(
            esc_html__('250+ Google Fonts Family', 'construction-arc'),
            esc_html__('Configure H1, H2, H3, H4, H5, H6 individually or all at once', 'construction-arc'),
            esc_html__('Seperate Typography Settings for Menu, Title( H1/H2/H3/H4/H5/H6 ), Page Title, Block Title, Widget Title and others', 'construction-arc'),
            esc_html__('More Advanced Typography Options like font weight, text transform, text decoration, font size, line height, letter spacing', 'construction-arc'),
        ),
        'priority' => 251,
    )));
}
add_action( 'customize_register', 'constructionarc_customize_register_for_typography' );