<?php
/**
* Typography Settings.
*
* @package Event Decorations
*/

$event_decorations_default = event_decorations_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'event_decorations_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'event-decorations' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'event_decorations_theme_option_panel',
	)
);

// -----------------  Font array
$event_decorations_fonts = array(
    'Select'           => __('Default Font', 'event-decorations'),
    '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',
    
);

 // -----------------  General Content Font
$wp_customize->add_setting( 'event_decorations_content_typography_font', array(
    'default'           => 'be-vietnam-pro',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'event_decorations_radio_sanitize',
) );
$wp_customize->add_control( 'event_decorations_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'event-decorations' ),
    'section'  => 'event_decorations_typography_setting',
    'settings' => 'event_decorations_content_typography_font',
    'choices'  => $event_decorations_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'event_decorations_heading_typography_font', array(
    'default'           => 'be-vietnam-pro',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'event_decorations_radio_sanitize',
) );
$wp_customize->add_control( 'event_decorations_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'event-decorations' ),
    'section'  => 'event_decorations_typography_setting',
    'settings' => 'event_decorations_heading_typography_font',
    'choices'  => $event_decorations_fonts,
) );