<?php
/**
* Typography Settings.
*
* @package Trucking Company
*/

$trucking_company_default = trucking_company_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'trucking_company_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'trucking-company' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'trucking_company_theme_option_panel',
	)
);

// -----------------  Font array
$trucking_company_fonts = array(
    'Select'           => __('Default Font', 'trucking-company'),
    '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( 'trucking_company_content_typography_font', array(
    'default'           => 'roboto',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'trucking_company_radio_sanitize',
) );
$wp_customize->add_control( 'trucking_company_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'trucking-company' ),
    'section'  => 'trucking_company_typography_setting',
    'settings' => 'trucking_company_content_typography_font',
    'choices'  => $trucking_company_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'trucking_company_heading_typography_font', array(
    'default'           => 'roboto',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'trucking_company_radio_sanitize',
) );
$wp_customize->add_control( 'trucking_company_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'trucking-company' ),
    'section'  => 'trucking_company_typography_setting',
    'settings' => 'trucking_company_heading_typography_font',
    'choices'  => $trucking_company_fonts,
) );