<?php
/**
* Typography Settings.
*
* @package Travel Destination
*/

$travel_destination_default = travel_destination_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'travel_destination_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'travel-destination' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'travel_destination_theme_option_panel',
	)
);

// -----------------  Font array
$travel_destination_fonts = array(
    'Select'           => __('Default Font', 'travel-destination'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'Outfit'     => 'Outfit',
    'play'       => 'Play',
    'Roboto'     => 'Roboto',
    'ubuntu'     => 'Ubuntu',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'travel_destination_content_typography_font', array(
    'default'           => 'Roboto',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'travel_destination_radio_sanitize',
) );
$wp_customize->add_control( 'travel_destination_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'travel-destination' ),
    'section'  => 'travel_destination_typography_setting',
    'settings' => 'travel_destination_content_typography_font',
    'choices'  => $travel_destination_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'travel_destination_heading_typography_font', array(
    'default'           => 'Outfit',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'travel_destination_radio_sanitize',
) );
$wp_customize->add_control( 'travel_destination_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'travel-destination' ),
    'section'  => 'travel_destination_typography_setting',
    'settings' => 'travel_destination_heading_typography_font',
    'choices'  => $travel_destination_fonts,
) );