<?php
/**
* Typography Settings.
*
* @package Solar Energy Engine
*/

$solar_energy_engine_default = solar_energy_engine_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'solar_energy_engine_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'solar-energy-engine' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'solar_energy_engine_theme_option_panel',
	)
);

// -----------------  Font array
$solar_energy_engine_fonts = array(
    'Select'           => __('Default Font', 'solar-energy-engine'),
    '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',
    'Poppins'     => 'Poppins',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'solar_energy_engine_content_typography_font', array(
    'default'           => 'Poppins',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'solar_energy_engine_radio_sanitize',
) );
$wp_customize->add_control( 'solar_energy_engine_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'solar-energy-engine' ),
    'section'  => 'solar_energy_engine_typography_setting',
    'settings' => 'solar_energy_engine_content_typography_font',
    'choices'  => $solar_energy_engine_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'solar_energy_engine_heading_typography_font', array(
    'default'           => 'Poppins',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'solar_energy_engine_radio_sanitize',
) );
$wp_customize->add_control( 'solar_energy_engine_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'solar-energy-engine' ),
    'section'  => 'solar_energy_engine_typography_setting',
    'settings' => 'solar_energy_engine_heading_typography_font',
    'choices'  => $solar_energy_engine_fonts,
) );