<?php
/**
 * Typography Setting
 *
 * @package jewelry_accessories
 */

// Typography Setting
$wp_customize->add_section(
    'jewelry_accessories_typography_setting',
    array(
        'panel' => 'jewelry_accessories_theme_options',
        'title' => esc_html__( 'Typography Setting', 'jewelry-accessories' ),
    )
);

$wp_customize->add_setting(
    'jewelry_accessories_site_title_font',
    array(
        'default'           => 'Cinzel',
        'sanitize_callback' => 'jewelry_accessories_sanitize_google_fonts',
    )
);

$wp_customize->add_control(
    'jewelry_accessories_site_title_font',
    array(
        'label'    => esc_html__( 'Site Title Font Family', 'jewelry-accessories' ),
        'section'  => 'jewelry_accessories_typography_setting',
        'settings' => 'jewelry_accessories_site_title_font',
        'type'     => 'select',
        'choices'  => jewelry_accessories_get_all_google_font_families(),
    )
);

// Typography - Site Description Font.
$wp_customize->add_setting(
	'jewelry_accessories_site_description_font',
	array(
		'default'           => 'Tenor Sans',
		'sanitize_callback' => 'jewelry_accessories_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'jewelry_accessories_site_description_font',
	array(
		'label'    => esc_html__( 'Site Description Font Family', 'jewelry-accessories' ),
		'section'  => 'jewelry_accessories_typography_setting',
		'settings' => 'jewelry_accessories_site_description_font',
		'type'     => 'select',
		'choices'  => jewelry_accessories_get_all_google_font_families(),
	)
);

// Typography - Header Font.
$wp_customize->add_setting(
	'jewelry_accessories_header_font',
	array(
		'default'           => 'Cinzel',
		'sanitize_callback' => 'jewelry_accessories_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'jewelry_accessories_header_font',
	array(
		'label'    => esc_html__( 'Heading Font Family', 'jewelry-accessories' ),
		'section'  => 'jewelry_accessories_typography_setting',
		'settings' => 'jewelry_accessories_header_font',
		'type'     => 'select',
		'choices'  => jewelry_accessories_get_all_google_font_families(),
	)
);

// Typography - Body Font.
$wp_customize->add_setting(
	'jewelry_accessories_content_font',
	array(
		'default'           => 'Tenor Sans',
		'sanitize_callback' => 'jewelry_accessories_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'jewelry_accessories_content_font',
	array(
		'label'    => esc_html__( 'Content Font Family', 'jewelry-accessories' ),
		'section'  => 'jewelry_accessories_typography_setting',
		'settings' => 'jewelry_accessories_content_font',
		'type'     => 'select',
		'choices'  => jewelry_accessories_get_all_google_font_families(),
	)
);