<?php
/**
* Typography Settings.
*
* @package Modern Art Gallery
*/

$modern_art_gallery_default = modern_art_gallery_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'modern_art_gallery_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'modern-art-gallery' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'modern_art_gallery_theme_option_panel',
	)
);

// -----------------  Font array
$modern_art_gallery_fonts = array(
    'bitter'     => 'Bitter',
    'cuprum'     => 'Cuprum',
    'open-sans'  => 'Open Sans',
    'play'       => 'Play',
    'roboto'     => 'Roboto',
    'outfit'     => 'Outfit',
    'ubuntu'     => 'Ubuntu',
    'almarai'       => 'Almarai',
    'manrope'       => 'Manrope',
    'satisfy'       => 'Satisfy',
    'saira'         => 'Saira',
    'mulish' => 'Mulish'
);

 // -----------------  General text font
 $wp_customize->add_setting( 'modern_art_gallery_content_typography_font', array(
    'default'           => 'mulish',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'modern_art_gallery_radio_sanitize',
) );
$wp_customize->add_control( 'modern_art_gallery_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content font', 'modern-art-gallery' ),
    'section'  => 'modern_art_gallery_typography_setting',
    'settings' => 'modern_art_gallery_content_typography_font',
    'choices'  => $modern_art_gallery_fonts,
) );

 // -----------------  General Heading font
$wp_customize->add_setting( 'modern_art_gallery_heading_typography_font', array(
    'default'           => 'mulish',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'modern_art_gallery_radio_sanitize',
) );
$wp_customize->add_control( 'modern_art_gallery_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General heading font', 'modern-art-gallery' ),
    'section'  => 'modern_art_gallery_typography_setting',
    'settings' => 'modern_art_gallery_heading_typography_font',
    'choices'  => $modern_art_gallery_fonts,
) );