<?php
/**
* Typography Settings.
*
* @package Aviation Industry
*/

$aviation_industry_default = aviation_industry_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'aviation_industry_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'aviation-industry' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'aviation_industry_theme_option_panel',
	)
);

// -----------------  Font array
$aviation_industry_fonts = array(
    'Select'           => __('Default Font', 'aviation-industry'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'charis-sil' => 'Charis SIL',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'roboto'     => 'Roboto',
    'Poppins'     => 'Poppins',
    'playfair-display'     => 'Playfair Display',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'aviation_industry_content_typography_font', array(
    'default'           => 'Poppins',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'aviation_industry_radio_sanitize',
) );
$wp_customize->add_control( 'aviation_industry_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'aviation-industry' ),
    'section'  => 'aviation_industry_typography_setting',
    'settings' => 'aviation_industry_content_typography_font',
    'choices'  => $aviation_industry_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'aviation_industry_heading_typography_font', array(
    'default'           => 'playfair-display',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'aviation_industry_radio_sanitize',
) );
$wp_customize->add_control( 'aviation_industry_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'aviation-industry' ),
    'section'  => 'aviation_industry_typography_setting',
    'settings' => 'aviation_industry_heading_typography_font',
    'choices'  => $aviation_industry_fonts,
) );