<?php
/**
* Typography Settings.
*
* @package Omega Design Agency
*/

$omega_design_agency_default = omega_design_agency_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'omega_design_agency_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'omega-design-agency' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'omega_design_agency_theme_option_panel',
	)
);

// -----------------  Font array
$omega_design_agency_fonts = array(
    'Select'           => __('Default Font', 'omega-design-agency'),
    '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',
    'ubuntu'     => 'Ubuntu',
    'Poppins'     => 'Poppins',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'omega_design_agency_content_typography_font', array(
    'default'           => 'Poppins',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_design_agency_radio_sanitize',
) );
$wp_customize->add_control( 'omega_design_agency_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'omega-design-agency' ),
    'section'  => 'omega_design_agency_typography_setting',
    'settings' => 'omega_design_agency_content_typography_font',
    'choices'  => $omega_design_agency_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'omega_design_agency_heading_typography_font', array(
    'default'           => 'Poppins',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_design_agency_radio_sanitize',
) );
$wp_customize->add_control( 'omega_design_agency_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'omega-design-agency' ),
    'section'  => 'omega_design_agency_typography_setting',
    'settings' => 'omega_design_agency_heading_typography_font',
    'choices'  => $omega_design_agency_fonts,
) );