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

// Typography Setting
$wp_customize->add_section(
    'jeweler_shop_typography_setting',
    array(
        'panel' => 'jeweler_shop_theme_options',
        'title' => esc_html__( 'Typography Setting', 'jeweler-shop' ),
    )
);

// Typography - Site Description Font.
$wp_customize->add_setting(
	'jeweler_shop_site_description_font',
	array(
		'default'           => 'Playfair Display',
		'sanitize_callback' => 'jeweler_shop_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'jeweler_shop_site_description_font',
	array(
		'label'    => esc_html__( 'Site Description Font Family', 'jeweler-shop' ),
		'section'  => 'jeweler_shop_typography_setting',
		'settings' => 'jeweler_shop_site_description_font',
		'type'     => 'select',
		'choices'  => jeweler_shop_get_all_google_font_families(),
	)
);

// Typography - Header Font.
$wp_customize->add_setting(
	'jeweler_shop_header_font',
	array(
		'default'           => 'Jost',
		'sanitize_callback' => 'jeweler_shop_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'jeweler_shop_header_font',
	array(
		'label'    => esc_html__( 'Heading Font Family', 'jeweler-shop' ),
		'section'  => 'jeweler_shop_typography_setting',
		'settings' => 'jeweler_shop_header_font',
		'type'     => 'select',
		'choices'  => jeweler_shop_get_all_google_font_families(),
	)
);

// Typography - Body Font.
$wp_customize->add_setting(
	'jeweler_shop_content_font',
	array(
		'default'           => 'Playfair Display',
		'sanitize_callback' => 'jeweler_shop_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'jeweler_shop_content_font',
	array(
		'label'    => esc_html__( 'Content Font Family', 'jeweler-shop' ),
		'section'  => 'jeweler_shop_typography_setting',
		'settings' => 'jeweler_shop_content_font',
		'type'     => 'select',
		'choices'  => jeweler_shop_get_all_google_font_families(),
	)
);