<?php
/**
* Typography Settings.
*
* @package Aerial Drone
*/

$aerial_drone_default = aerial_drone_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'aerial_drone_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'aerial-drone' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'aerial_drone_theme_option_panel',
	)
);

// -----------------  Font array
$aerial_drone_fonts = array(
    'Select'           => __('Default Font', 'aerial-drone'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'play'       => 'Play',
    'roboto'     => 'Roboto',
    'ubuntu'     => 'Ubuntu',
    'WorkSans'     => 'Work Sans',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'aerial_drone_content_typography_font', array(
    'default'           => 'WorkSans',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'aerial_drone_radio_sanitize',
) );
$wp_customize->add_control( 'aerial_drone_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'aerial-drone' ),
    'section'  => 'aerial_drone_typography_setting',
    'settings' => 'aerial_drone_content_typography_font',
    'choices'  => $aerial_drone_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'aerial_drone_heading_typography_font', array(
    'default'           => 'WorkSans',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'aerial_drone_radio_sanitize',
) );
$wp_customize->add_control( 'aerial_drone_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'aerial-drone' ),
    'section'  => 'aerial_drone_typography_setting',
    'settings' => 'aerial_drone_heading_typography_font',
    'choices'  => $aerial_drone_fonts,
) );