<?php
/**
* Typography Settings.
*
* @package Elegant Jewellery
*/

$elegant_jewellery_default = elegant_jewellery_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'elegant_jewellery_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'elegant-jewellery' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'elegant_jewellery_theme_option_panel',
	)
);

// -----------------  Font array
$elegant_jewellery_fonts = array(
    'Select'           => __('Default Font', 'elegant-jewellery'),
    'bad-script' => 'Bad Script',
    'inter'      => 'Inter',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'montserrat' => 'Montserrat',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'play'       => 'Play',
    'roboto'     => 'Roboto',
    'outfit'     => 'Outfit',
    'ubuntu'     => 'Ubuntu',
    'saira'      => 'Saira',
    'figtree'     => 'Figtree',
    'libre-baskerville'     => 'Libre Baskerville',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'elegant_jewellery_content_typography_font', array(
    'default'           => 'libre-baskerville',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'elegant_jewellery_radio_sanitize',
) );
$wp_customize->add_control( 'elegant_jewellery_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'elegant-jewellery' ),
    'section'  => 'elegant_jewellery_typography_setting',
    'settings' => 'elegant_jewellery_content_typography_font',
    'choices'  => $elegant_jewellery_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'elegant_jewellery_heading_typography_font', array(
    'default'           => 'libre-baskerville',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'elegant_jewellery_radio_sanitize',
) );
$wp_customize->add_control( 'elegant_jewellery_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'elegant-jewellery' ),
    'section'  => 'elegant_jewellery_typography_setting',
    'settings' => 'elegant_jewellery_heading_typography_font',
    'choices'  => $elegant_jewellery_fonts,
) );