<?php
/**
* Typography Settings.
*
* @package Beauty Parlour Salon
*/

$beauty_parlour_salon_default = beauty_parlour_salon_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'beauty_parlour_salon_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'beauty-parlour-salon' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'beauty_parlour_salon_theme_option_panel',
	)
);

// -----------------  Font array
$beauty_parlour_salon_fonts = array(
    'Select'           => __('Default Font', 'beauty-parlour-salon'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'Cormorant'  => 'Cormorant',
    'montserrat' => 'montserrat',
    'lexend'     => 'Lexend',
    'outfit'     => 'Outfit',
);

 // -----------------  General Content Font
 $wp_customize->add_setting( 'beauty_parlour_salon_content_typography_font', array(
    'default'           => 'outfit',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'beauty_parlour_salon_radio_sanitize',
) );
$wp_customize->add_control( 'beauty_parlour_salon_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'beauty-parlour-salon' ),
    'section'  => 'beauty_parlour_salon_typography_setting',
    'settings' => 'beauty_parlour_salon_content_typography_font',
    'choices'  => $beauty_parlour_salon_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'beauty_parlour_salon_heading_typography_font', array(
    'default'           => 'outfit',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'beauty_parlour_salon_radio_sanitize',
) );
$wp_customize->add_control( 'beauty_parlour_salon_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'beauty-parlour-salon' ),
    'section'  => 'beauty_parlour_salon_typography_setting',
    'settings' => 'beauty_parlour_salon_heading_typography_font',
    'choices'  => $beauty_parlour_salon_fonts,
) );