<?php
/**
* Typography Settings.
*
* @package Training Institute Academy
*/

$training_institute_academy_default = training_institute_academy_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'training_institute_academy_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'training-institute-academy' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'training_institute_academy_theme_option_panel',
	)
);

// -----------------  Font array
$training_institute_academy_fonts = array(
    'Select'           => __('Default Font', 'training-institute-academy'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'play'       => 'Play',
    'roboto'     => 'Roboto',
    'outfit'     => 'Outfit',
    'montserrat'     => 'Montserrat',
    'Poppins'     => 'Poppins',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'training_institute_academy_content_typography_font', array(
    'default'           => 'montserrat',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'training_institute_academy_radio_sanitize',
) );
$wp_customize->add_control( 'training_institute_academy_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'training-institute-academy' ),
    'section'  => 'training_institute_academy_typography_setting',
    'settings' => 'training_institute_academy_content_typography_font',
    'choices'  => $training_institute_academy_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'training_institute_academy_heading_typography_font', array(
    'default'           => 'Poppins',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'training_institute_academy_radio_sanitize',
) );
$wp_customize->add_control( 'training_institute_academy_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'training-institute-academy' ),
    'section'  => 'training_institute_academy_typography_setting',
    'settings' => 'training_institute_academy_heading_typography_font',
    'choices'  => $training_institute_academy_fonts,
) );