<?php
/**
* Typography Settings.
*
* @package Vacation Rental Booking
*/

$vacation_rental_booking_default = vacation_rental_booking_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'vacation_rental_booking_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'vacation-rental-booking' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'vacation_rental_booking_theme_option_panel',
	)
);

// -----------------  Font array
$vacation_rental_booking_fonts = array(
    'Select'           => __('Default Font', 'vacation-rental-booking'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'montserrat'     => 'Montserrat',
    'mansalva'     => 'Mansalva',
    'outfit'     => 'Outfit',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'vacation_rental_booking_content_typography_font', array(
    'default'           => 'montserrat',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'vacation_rental_booking_radio_sanitize',
) );
$wp_customize->add_control( 'vacation_rental_booking_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'vacation-rental-booking' ),
    'section'  => 'vacation_rental_booking_typography_setting',
    'settings' => 'vacation_rental_booking_content_typography_font',
    'choices'  => $vacation_rental_booking_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'vacation_rental_booking_heading_typography_font', array(
    'default'           => 'mansalva',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'vacation_rental_booking_radio_sanitize',
) );
$wp_customize->add_control( 'vacation_rental_booking_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'vacation-rental-booking' ),
    'section'  => 'vacation_rental_booking_typography_setting',
    'settings' => 'vacation_rental_booking_heading_typography_font',
    'choices'  => $vacation_rental_booking_fonts,
) );