<?php
/**
* Typography Settings.
*
* @package Home Construction Builder
*/

$home_construction_builder_default = home_construction_builder_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'home_construction_builder_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'home-construction-builder' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'home_construction_builder_theme_option_panel',
	)
);

// -----------------  Font array
$home_construction_builder_fonts = array(
    'Select'           => __('Default Font', 'home-construction-builder'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'charis-sil' => 'Charis SIL',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'play'       => 'Play',
    'roboto'     => 'Roboto',
    'outfit'     => 'Outfit',
    'ubuntu'     => 'Ubuntu',
    'Lato'     => 'Lato',
    'Poppins'     => 'Poppins',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'home_construction_builder_content_typography_font', array(
    'default'           => 'Poppins',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'home_construction_builder_radio_sanitize',
) );
$wp_customize->add_control( 'home_construction_builder_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'home-construction-builder' ),
    'section'  => 'home_construction_builder_typography_setting',
    'settings' => 'home_construction_builder_content_typography_font',
    'choices'  => $home_construction_builder_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'home_construction_builder_heading_typography_font', array(
    'default'           => 'Lato',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'home_construction_builder_radio_sanitize',
) );
$wp_customize->add_control( 'home_construction_builder_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'home-construction-builder' ),
    'section'  => 'home_construction_builder_typography_setting',
    'settings' => 'home_construction_builder_heading_typography_font',
    'choices'  => $home_construction_builder_fonts,
) );