<?php
/**
* Typography Settings.
*
* @package Omega Food Delivery
*/

$omega_food_delivery_default = omega_food_delivery_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'omega_food_delivery_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'omega-food-delivery' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'omega_food_delivery_theme_option_panel',
	)
);

// -----------------  Font array
$omega_food_delivery_fonts = array(
    'Select'           => __('Select', 'omega-food-delivery'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'play'       => 'Play',
    'roboto'     => 'Roboto',
    'WorkSans'   => 'Work Sans',
    'lato'       => 'Lato',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'omega_food_delivery_content_typography_font', array(
    'default'           => 'lato',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_food_delivery_radio_sanitize',
) );
$wp_customize->add_control( 'omega_food_delivery_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'omega-food-delivery' ),
    'section'  => 'omega_food_delivery_typography_setting',
    'settings' => 'omega_food_delivery_content_typography_font',
    'choices'  => $omega_food_delivery_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'omega_food_delivery_heading_typography_font', array(
    'default'           => 'lato',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_food_delivery_radio_sanitize',
) );
$wp_customize->add_control( 'omega_food_delivery_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'omega-food-delivery' ),
    'section'  => 'omega_food_delivery_typography_setting',
    'settings' => 'omega_food_delivery_heading_typography_font',
    'choices'  => $omega_food_delivery_fonts,
) );