<?php
/**
* Typography Settings.
*
* @package Digital Media
*/

$digital_media_default = digital_media_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'digital_media_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'digital-media' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'digital_media_theme_option_panel',
	)
);

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

 // -----------------  General text font
 $wp_customize->add_setting( 'digital_media_content_typography_font', array(
    'default'           => 'PlusJakartaSans',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'digital_media_radio_sanitize',
) );
$wp_customize->add_control( 'digital_media_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'digital-media' ),
    'section'  => 'digital_media_typography_setting',
    'settings' => 'digital_media_content_typography_font',
    'choices'  => $digital_media_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'digital_media_heading_typography_font', array(
    'default'           => 'PlusJakartaSans',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'digital_media_radio_sanitize',
) );
$wp_customize->add_control( 'digital_media_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'digital-media' ),
    'section'  => 'digital_media_typography_setting',
    'settings' => 'digital_media_heading_typography_font',
    'choices'  => $digital_media_fonts,
) );