<?php
/**
* Typography Settings.
*
* @package Wind Energy
*/

$wind_energy_default = wind_energy_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'wind_energy_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'wind-energy' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'wind_energy_theme_option_panel',
	)
);

// -----------------  Font array
$wind_energy_fonts = array(
    'Select'           => __('Default Font', 'wind-energy'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'ubuntu'     => 'Ubuntu',
    'Inter'     => 'Inter',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'wind_energy_content_typography_font', array(
    'default'           => 'Inter',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'wind_energy_radio_sanitize',
) );
$wp_customize->add_control( 'wind_energy_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'wind-energy' ),
    'section'  => 'wind_energy_typography_setting',
    'settings' => 'wind_energy_content_typography_font',
    'choices'  => $wind_energy_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'wind_energy_heading_typography_font', array(
    'default'           => 'Inter',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'wind_energy_radio_sanitize',
) );
$wp_customize->add_control( 'wind_energy_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'wind-energy' ),
    'section'  => 'wind_energy_typography_setting',
    'settings' => 'wind_energy_heading_typography_font',
    'choices'  => $wind_energy_fonts,
) );