<?php
/**
* Typography Settings.
*
* @package Education Reform
*/

$education_reform_default = education_reform_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'education_reform_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'education-reform' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'education_reform_theme_option_panel',
	)
);

// -----------------  Font array
$education_reform_fonts = array(
    'Select'           => __('Default Font', 'education-reform'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'charis-sil' => 'Charis SIL',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'play'       => 'Play',
    'roboto'     => 'Roboto',
    'outfit'     => 'Outfit',
    'ubuntu'     => 'Ubuntu',
    'RobotoSlab'     => 'RobotoSlab',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'education_reform_content_typography_font', array(
    'default'           => 'roboto',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'education_reform_radio_sanitize',
) );
$wp_customize->add_control( 'education_reform_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'education-reform' ),
    'section'  => 'education_reform_typography_setting',
    'settings' => 'education_reform_content_typography_font',
    'choices'  => $education_reform_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'education_reform_heading_typography_font', array(
    'default'           => 'RobotoSlab',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'education_reform_radio_sanitize',
) );
$wp_customize->add_control( 'education_reform_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'education-reform' ),
    'section'  => 'education_reform_typography_setting',
    'settings' => 'education_reform_heading_typography_font',
    'choices'  => $education_reform_fonts,
) );