<?php
/**
* Typography Settings.
*
* @package Agriculture Farm Lite
*/

$agriculture_farm_lite_default = agriculture_farm_lite_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'agriculture_farm_lite_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'agriculture-farm-lite' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'agriculture_farm_lite_theme_option_panel',
	)
);

// -----------------  Font array
$agriculture_farm_lite_fonts = array(
    'Select'           => __('Default Font', 'agriculture-farm-lite'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'play'       => 'Play',
    'outfit'     => 'Outfit',
    'ubuntu'     => 'Ubuntu',
    'inter'      => 'Inter',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'agriculture_farm_lite_content_typography_font', array(
    'default'           => 'inter',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'agriculture_farm_lite_radio_sanitize',
) );
$wp_customize->add_control( 'agriculture_farm_lite_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content font', 'agriculture-farm-lite' ),
    'section'  => 'agriculture_farm_lite_typography_setting',
    'settings' => 'agriculture_farm_lite_content_typography_font',
    'choices'  => $agriculture_farm_lite_fonts,
) );

 // -----------------  General Heading font
$wp_customize->add_setting( 'agriculture_farm_lite_heading_typography_font', array(
    'default'           => 'inter',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'agriculture_farm_lite_radio_sanitize',
) );
$wp_customize->add_control( 'agriculture_farm_lite_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General heading font', 'agriculture-farm-lite' ),
    'section'  => 'agriculture_farm_lite_typography_setting',
    'settings' => 'agriculture_farm_lite_heading_typography_font',
    'choices'  => $agriculture_farm_lite_fonts,
) );