<?php
/**
* Typography Settings.
*
* @package OTT Vlogger
*/

$ott_vlogger_default = ott_vlogger_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'ott_vlogger_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'ott-vlogger' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'ott_vlogger_theme_option_panel',
	)
);

// -----------------  Font array
$ott_vlogger_fonts = array(
    'Select'           => __('Default Font', 'ott-vlogger'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'charis-sil' => 'Charis SIL',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'outfit'     => 'Outfit',
    'IBMPlexSans'     => 'IBMPlexSans',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'ott_vlogger_content_typography_font', array(
    'default'           => 'IBMPlexSans',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'ott_vlogger_radio_sanitize',
) );
$wp_customize->add_control( 'ott_vlogger_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'ott-vlogger' ),
    'section'  => 'ott_vlogger_typography_setting',
    'settings' => 'ott_vlogger_content_typography_font',
    'choices'  => $ott_vlogger_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'ott_vlogger_heading_typography_font', array(
    'default'           => 'IBMPlexSans',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'ott_vlogger_radio_sanitize',
) );
$wp_customize->add_control( 'ott_vlogger_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'ott-vlogger' ),
    'section'  => 'ott_vlogger_typography_setting',
    'settings' => 'ott_vlogger_heading_typography_font',
    'choices'  => $ott_vlogger_fonts,
) );