<?php
/**
* Typography Settings.
*
* @package Local Supermarket
*/

$local_supermarket_default = local_supermarket_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'local_supermarket_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'local-supermarket' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'local_supermarket_theme_option_panel',
	)
);

// -----------------  Font array
$local_supermarket_fonts = array(
    'Select'           => __('Default Font', 'local-supermarket'),
    'bad-script' => 'Bad Script',
    'inter'      => 'Inter',
    'bitter'     => 'Bitter',
    'charis-sil' => 'Charis SIL',
    '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',
    'cinzel'     => 'Cinzel',
    'figtree'     => 'Figtree',
    'noto-sans'     => 'Noto Sans',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'local_supermarket_content_typography_font', array(
    'default'           => 'noto-sans',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'local_supermarket_radio_sanitize',
) );
$wp_customize->add_control( 'local_supermarket_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'local-supermarket' ),
    'section'  => 'local_supermarket_typography_setting',
    'settings' => 'local_supermarket_content_typography_font',
    'choices'  => $local_supermarket_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'local_supermarket_heading_typography_font', array(
    'default'           => 'noto-sans',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'local_supermarket_radio_sanitize',
) );
$wp_customize->add_control( 'local_supermarket_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'local-supermarket' ),
    'section'  => 'local_supermarket_typography_setting',
    'settings' => 'local_supermarket_heading_typography_font',
    'choices'  => $local_supermarket_fonts,
) );