<?php
/**
* Typography Settings.
*
* @package Cleaning Maintenance
*/

$cleaning_maintenance_default = cleaning_maintenance_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'cleaning_maintenance_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'cleaning-maintenance' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'cleaning_maintenance_theme_option_panel',
	)
);

// -----------------  Font array
$cleaning_maintenance_fonts = array(
    'Select'           => __('Default Font', 'cleaning-maintenance'),
    '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',
    'PlusJakartaSans'     => 'Plus Jakarta Sans',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'cleaning_maintenance_content_typography_font', array(
    'default'           => 'roboto',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'cleaning_maintenance_radio_sanitize',
) );
$wp_customize->add_control( 'cleaning_maintenance_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'cleaning-maintenance' ),
    'section'  => 'cleaning_maintenance_typography_setting',
    'settings' => 'cleaning_maintenance_content_typography_font',
    'choices'  => $cleaning_maintenance_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'cleaning_maintenance_heading_typography_font', array(
    'default'           => 'PlusJakartaSans',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'cleaning_maintenance_radio_sanitize',
) );
$wp_customize->add_control( 'cleaning_maintenance_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'cleaning-maintenance' ),
    'section'  => 'cleaning_maintenance_typography_setting',
    'settings' => 'cleaning_maintenance_heading_typography_font',
    'choices'  => $cleaning_maintenance_fonts,
) );