<?php
/**
* Typography Settings.
*
* @package Cargo And Shipping Company
*/

$cargo_and_shipping_company_default = cargo_and_shipping_company_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'cargo_and_shipping_company_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'cargo-and-shipping-company' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'cargo_and_shipping_company_theme_option_panel',
	)
);

// -----------------  Font array
$cargo_and_shipping_company_fonts = array(
    'Select'           => __('Default Font', 'cargo-and-shipping-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',
    'Lato'     => 'Lato',
    'almarai'     => 'Almarai',
    'inter'     => 'Inter',

);

 // -----------------  General text font
 $wp_customize->add_setting( 'cargo_and_shipping_company_content_typography_font', array(
    'default'           => 'inter',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'cargo_and_shipping_company_radio_sanitize',
) );
$wp_customize->add_control( 'cargo_and_shipping_company_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'cargo-and-shipping-company' ),
    'section'  => 'cargo_and_shipping_company_typography_setting',
    'settings' => 'cargo_and_shipping_company_content_typography_font',
    'choices'  => $cargo_and_shipping_company_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'cargo_and_shipping_company_heading_typography_font', array(
    'default'           => 'almarai',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'cargo_and_shipping_company_radio_sanitize',
) );
$wp_customize->add_control( 'cargo_and_shipping_company_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'cargo-and-shipping-company' ),
    'section'  => 'cargo_and_shipping_company_typography_setting',
    'settings' => 'cargo_and_shipping_company_heading_typography_font',
    'choices'  => $cargo_and_shipping_company_fonts,
) );