<?php
/**
* Typography Settings.
*
* @package Sneakers Sports Shoes
*/

$sneakers_sports_shoes_default = sneakers_sports_shoes_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'sneakers_sports_shoes_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'sneakers-sports-shoes' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'sneakers_sports_shoes_theme_option_panel',
	)
);

// -----------------  Font array
$sneakers_sports_shoes_fonts = array(
    'Select'           => __('Default Font', 'sneakers-sports-shoes'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'charis-sil' => 'Charis SIL',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'play'       => 'Play',
    'roboto'     => 'Roboto',
    'outfit'     => 'Outfit',
    'ubuntu'     => 'Ubuntu',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'sneakers_sports_shoes_content_typography_font', array(
    'default'           => 'roboto',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sneakers_sports_shoes_radio_sanitize',
) );
$wp_customize->add_control( 'sneakers_sports_shoes_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'sneakers-sports-shoes' ),
    'section'  => 'sneakers_sports_shoes_typography_setting',
    'settings' => 'sneakers_sports_shoes_content_typography_font',
    'choices'  => $sneakers_sports_shoes_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'sneakers_sports_shoes_heading_typography_font', array(
    'default'           => 'outfit',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sneakers_sports_shoes_radio_sanitize',
) );
$wp_customize->add_control( 'sneakers_sports_shoes_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'sneakers-sports-shoes' ),
    'section'  => 'sneakers_sports_shoes_typography_setting',
    'settings' => 'sneakers_sports_shoes_heading_typography_font',
    'choices'  => $sneakers_sports_shoes_fonts,
) );