<?php
/**
* Typography Settings.
*
* @package Multi Sports Club
*/

$multi_sports_club_default = multi_sports_club_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'multi_sports_club_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'multi-sports-club' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'multi_sports_club_theme_option_panel',
	)
);

// -----------------  Font array
$multi_sports_club_fonts = array(
    'Select'           => __('Default Font', 'multi-sports-club'),
    '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( 'multi_sports_club_content_typography_font', array(
    'default'           => 'IBMPlexSans',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'multi_sports_club_radio_sanitize',
) );
$wp_customize->add_control( 'multi_sports_club_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'multi-sports-club' ),
    'section'  => 'multi_sports_club_typography_setting',
    'settings' => 'multi_sports_club_content_typography_font',
    'choices'  => $multi_sports_club_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'multi_sports_club_heading_typography_font', array(
    'default'           => 'IBMPlexSans',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'multi_sports_club_radio_sanitize',
) );
$wp_customize->add_control( 'multi_sports_club_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'multi-sports-club' ),
    'section'  => 'multi_sports_club_typography_setting',
    'settings' => 'multi_sports_club_heading_typography_font',
    'choices'  => $multi_sports_club_fonts,
) );