<?php
/**
* Typography Settings.
*
* @package Packers Movers Company
*/

$packers_movers_company_default = packers_movers_company_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'packers_movers_company_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'packers-movers-company' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'packers_movers_company_theme_option_panel',
	)
);

// -----------------  Font array
$packers_movers_company_fonts = array(
    'Select'           => __('Default Font', 'packers-movers-company'),
    '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',
    'outfit'     => 'Outfit',
    'ubuntu'     => 'Ubuntu',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'packers_movers_company_content_typography_font', array(
    'default'           => 'roboto',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'packers_movers_company_radio_sanitize',
) );
$wp_customize->add_control( 'packers_movers_company_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'packers-movers-company' ),
    'section'  => 'packers_movers_company_typography_setting',
    'settings' => 'packers_movers_company_content_typography_font',
    'choices'  => $packers_movers_company_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'packers_movers_company_heading_typography_font', array(
    'default'           => 'roboto',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'packers_movers_company_radio_sanitize',
) );
$wp_customize->add_control( 'packers_movers_company_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'packers-movers-company' ),
    'section'  => 'packers_movers_company_typography_setting',
    'settings' => 'packers_movers_company_heading_typography_font',
    'choices'  => $packers_movers_company_fonts,
) );