<?php
/**
* Typography Settings.
*
* @package Electrician Company
*/

$electrician_company_default = electrician_company_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'electrician_company_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'electrician-company' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'electrician_company_theme_option_panel',
	)
);

// -----------------  Font array
$electrician_company_fonts = array(
    'Select'           => __('Default Font', 'electrician-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',
    'Lato'     => 'Lato',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'electrician_company_content_typography_font', array(
    'default'           => 'roboto',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'electrician_company_radio_sanitize',
) );
$wp_customize->add_control( 'electrician_company_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'electrician-company' ),
    'section'  => 'electrician_company_typography_setting',
    'settings' => 'electrician_company_content_typography_font',
    'choices'  => $electrician_company_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'electrician_company_heading_typography_font', array(
    'default'           => 'roboto',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'electrician_company_radio_sanitize',
) );
$wp_customize->add_control( 'electrician_company_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'electrician-company' ),
    'section'  => 'electrician_company_typography_setting',
    'settings' => 'electrician_company_heading_typography_font',
    'choices'  => $electrician_company_fonts,
) );