<?php
/**
* Typography Settings.
*
* @package Spa Parlor
*/

$spa_parlor_default = spa_parlor_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'spa_parlor_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'spa-parlor' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'spa_parlor_theme_option_panel',
	)
);

// -----------------  Font array
$spa_parlor_fonts = array(
    'Select'           => __('Default Font', 'spa-parlor'),
    'inter'      => 'Inter',
    'charis-sil' => 'Charis SIL',
    'jost'       => 'Jost',
    'montserrat' => 'Montserrat',
    'oswald'     => 'Oswald',
    'roboto'     => 'Roboto',
    'outfit'     => 'Outfit',
    'ubuntu'     => 'Ubuntu',
    'cinzel'     => 'Cinzel',
    'figtree'     => 'Figtree',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'spa_parlor_content_typography_font', array(
    'default'           => 'inter',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'spa_parlor_radio_sanitize',
) );
$wp_customize->add_control( 'spa_parlor_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'spa-parlor' ),
    'section'  => 'spa_parlor_typography_setting',
    'settings' => 'spa_parlor_content_typography_font',
    'choices'  => $spa_parlor_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'spa_parlor_heading_typography_font', array(
    'default'           => 'inter',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'spa_parlor_radio_sanitize',
) );
$wp_customize->add_control( 'spa_parlor_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'spa-parlor' ),
    'section'  => 'spa_parlor_typography_setting',
    'settings' => 'spa_parlor_heading_typography_font',
    'choices'  => $spa_parlor_fonts,
) );