<?php
/**
* Typography Settings.
*
* @package Air Ticket Booking
*/

$air_ticket_booking_default = air_ticket_booking_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'air_ticket_booking_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'air-ticket-booking' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'air_ticket_booking_theme_option_panel',
	)
);

// -----------------  Font array
$air_ticket_booking_fonts = array(
    'Select'           => __('Default Font', 'air-ticket-booking'),
    'bad-script' => 'Bad Script',
    'inter'      => 'Inter',
    'bitter'     => 'Bitter',
    'charis-sil' => 'Charis SIL',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'montserrat' => 'Montserrat',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'play'       => 'Play',
    'roboto'     => 'Roboto',
    'outfit'     => 'Outfit',
    'ubuntu'     => 'Ubuntu',
    'saira'      => 'Saira',
    'cinzel'     => 'Cinzel',
    'figtree'     => 'Figtree'
);

 // -----------------  General text font
 $wp_customize->add_setting( 'air_ticket_booking_content_typography_font', array(
    'default'           => 'montserrat',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'air_ticket_booking_radio_sanitize',
) );
$wp_customize->add_control( 'air_ticket_booking_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'air-ticket-booking' ),
    'section'  => 'air_ticket_booking_typography_setting',
    'settings' => 'air_ticket_booking_content_typography_font',
    'choices'  => $air_ticket_booking_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'air_ticket_booking_heading_typography_font', array(
    'default'           => 'montserrat',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'air_ticket_booking_radio_sanitize',
) );
$wp_customize->add_control( 'air_ticket_booking_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'air-ticket-booking' ),
    'section'  => 'air_ticket_booking_typography_setting',
    'settings' => 'air_ticket_booking_heading_typography_font',
    'choices'  => $air_ticket_booking_fonts,
) );