<?php
/**
* Typography Settings.
*
* @package Green Nursery
*/

$green_nursery_default = green_nursery_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'green_nursery_typography_setting',
	array(
	'title'      => esc_html__( 'Typography Settings', 'green-nursery' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'green_nursery_theme_option_panel',
	)
);

// -----------------  Font array
$green_nursery_fonts = array(
    'Select'           => __('Default Font', 'green-nursery'),
    'bad-script' => 'Bad Script',
    'inter'      => 'Inter',
    'cuprum'     => 'Cuprum',
    'exo-2'      => 'Exo 2',
    'jost'       => 'Jost',
    'montserrat' => 'Montserrat',
    'open-sans'  => 'Open Sans',
    'oswald'     => 'Oswald',
    'play'       => 'Play',
    'roboto'     => 'Roboto',
    'outfit'     => 'Outfit',
    'ubuntu'     => 'Ubuntu',
    'saira'      => 'Saira',
    'figtree'     => 'Figtree',
    'libre-baskerville'     => 'Libre Baskerville',
);

 // -----------------  General text font
 $wp_customize->add_setting( 'green_nursery_content_typography_font', array(
    'default'           => 'libre-baskerville',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'green_nursery_radio_sanitize',
) );
$wp_customize->add_control( 'green_nursery_content_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Content Font', 'green-nursery' ),
    'section'  => 'green_nursery_typography_setting',
    'settings' => 'green_nursery_content_typography_font',
    'choices'  => $green_nursery_fonts,
) );

 // -----------------  General Heading Font
$wp_customize->add_setting( 'green_nursery_heading_typography_font', array(
    'default'           => 'libre-baskerville',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'green_nursery_radio_sanitize',
) );
$wp_customize->add_control( 'green_nursery_heading_typography_font', array(
    'type'     => 'select',
    'label'    => esc_html__( 'General Heading Font', 'green-nursery' ),
    'section'  => 'green_nursery_typography_setting',
    'settings' => 'green_nursery_heading_typography_font',
    'choices'  => $green_nursery_fonts,
) );