<?php
/**
* Typography Settings.
*
* @package Online Learning LMS
*/

$online_learning_lms_default = online_learning_lms_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'online_learning_lms_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'online-learning-lms' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'online_learning_lms_theme_option_panel',
	)
);

// -----------------  Font array
$online_learning_lms_fonts = array(
    'Select'           => __('Default Font', 'online-learning-lms'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'charis-sil' => 'Charis SIL',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'roboto'     => 'Roboto',
    'Poppins'     => 'Poppins',
    'playfair-display'     => 'Playfair Display',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'online_learning_lms_content_typography_font', array(
    'default'           => 'Poppins',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'online_learning_lms_radio_sanitize',
) );
$wp_customize->add_control( 'online_learning_lms_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'online-learning-lms' ),
    'section'  => 'online_learning_lms_typography_setting',
    'settings' => 'online_learning_lms_content_typography_font',
    'choices'  => $online_learning_lms_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'online_learning_lms_heading_typography_font', array(
    'default'           => 'playfair-display',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'online_learning_lms_radio_sanitize',
) );
$wp_customize->add_control( 'online_learning_lms_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'online-learning-lms' ),
    'section'  => 'online_learning_lms_typography_setting',
    'settings' => 'online_learning_lms_heading_typography_font',
    'choices'  => $online_learning_lms_fonts,
) );