<?php
/**
* Typography Settings.
*
* @package Omega Refrigeration
*/

$omega_refrigeration_default = omega_refrigeration_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'omega_refrigeration_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'omega-refrigeration' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'omega_refrigeration_theme_option_panel',
	)
);

// -----------------  Font array
$omega_refrigeration_fonts = array(
    'Select'           => __('Default Font', 'omega-refrigeration'),
    'bad-script' => 'Bad Script',
    'bitter'     => 'Bitter',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'play'       => 'Play',
    'roboto'     => 'Roboto',
    'ubuntu'     => 'Ubuntu',
    'Inter'     => 'Inter',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'omega_refrigeration_content_typography_font', array(
    'default'           => 'Inter',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_refrigeration_radio_sanitize',
) );
$wp_customize->add_control( 'omega_refrigeration_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'omega-refrigeration' ),
    'section'  => 'omega_refrigeration_typography_setting',
    'settings' => 'omega_refrigeration_content_typography_font',
    'choices'  => $omega_refrigeration_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'omega_refrigeration_heading_typography_font', array(
    'default'           => 'Inter',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_refrigeration_radio_sanitize',
) );
$wp_customize->add_control( 'omega_refrigeration_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'omega-refrigeration' ),
    'section'  => 'omega_refrigeration_typography_setting',
    'settings' => 'omega_refrigeration_heading_typography_font',
    'choices'  => $omega_refrigeration_fonts,
) );