<?php
/**
* Typography Settings.
*
* @package Car Rental Service
*/

$car_rental_service_default = car_rental_service_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'car_rental_service_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'car-rental-service' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'car_rental_service_theme_option_panel',
	)
);

// -----------------  Font array
$car_rental_service_fonts = array(
    'Select'           => __('Default Font', 'car-rental-service'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'play'       => 'Play',
    'roboto'     => 'Roboto',
    'outfit'     => 'Outfit',
    'ubuntu'     => 'Ubuntu',
    'inter'      => 'Inter',
    'almarai'    => 'Almarai',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'car_rental_service_content_typography_font', array(
    'default'           => 'inter',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'car_rental_service_radio_sanitize',
) );
$wp_customize->add_control( 'car_rental_service_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'car-rental-service' ),
    'section'  => 'car_rental_service_typography_setting',
    'settings' => 'car_rental_service_content_typography_font',
    'choices'  => $car_rental_service_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'car_rental_service_heading_typography_font', array(
    'default'           => 'almarai',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'car_rental_service_radio_sanitize',
) );
$wp_customize->add_control( 'car_rental_service_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'car-rental-service' ),
    'section'  => 'car_rental_service_typography_setting',
    'settings' => 'car_rental_service_heading_typography_font',
    'choices'  => $car_rental_service_fonts,
) );