<?php
/**
* Typography Settings.
*
* @package Board Games
*/

$board_games_default = board_games_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'board_games_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'board-games' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'board_games_theme_option_panel',
	)
);

// -----------------  Font array
$board_games_fonts = array(
    'Select'           => __('Default Font', 'board-games'),
    'bad-script'     => 'Bad Script',
    'bitter'         => 'Bitter',
    'cuprum'         => 'Cuprum',
    'exo-2'          => 'Exo 2',
    'jost'           => 'Jost',
    'Cormorant'      => 'Cormorant',
    'montserrat'     => 'montserrat',
    'lexend'         => 'Lexend',
    'outfit'         => 'Outfit',
    'inter'          => 'Inter',
    'be-vietnam-pro' => 'Be Vietnam Pro',
    'play'           => 'Play',
    'PlusJakartaSans'=> 'Plus Jakarta Sans',
    
);

 // -----------------  General Content Font
$wp_customize->add_setting( 'board_games_content_typography_font', array(
    'default'           => 'PlusJakartaSans',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'board_games_radio_sanitize',
) );
$wp_customize->add_control( 'board_games_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'board-games' ),
    'section'  => 'board_games_typography_setting',
    'settings' => 'board_games_content_typography_font',
    'choices'  => $board_games_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'board_games_heading_typography_font', array(
    'default'           => 'play',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'board_games_radio_sanitize',
) );
$wp_customize->add_control( 'board_games_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'board-games' ),
    'section'  => 'board_games_typography_setting',
    'settings' => 'board_games_heading_typography_font',
    'choices'  => $board_games_fonts,
) );