<?php

/**
 * Typography Settings
 *
 * @package fast_food_joint
 */

// Typography Settings
$wp_customize->add_section(
    'fast_food_joint_typography_setting',
    array(
        'panel' => 'fast_food_joint_theme_options',
        'title' => esc_html__( 'Typography Settings', 'fast-food-joint' ),
    )
);

$wp_customize->add_setting(
    'fast_food_joint_site_title_font',
    array(
        'default'           => 'Montserrat',
        'sanitize_callback' => 'fast_food_joint_sanitize_google_fonts',
    )
);

$wp_customize->add_control(
    'fast_food_joint_site_title_font',
    array(
        'label'    => esc_html__( 'Site Title Font Family', 'fast-food-joint' ),
        'section'  => 'fast_food_joint_typography_setting',
        'settings' => 'fast_food_joint_site_title_font',
        'type'     => 'select',
        'choices'  => fast_food_joint_get_all_google_font_families(),
    )
);

// Typography - Site Description Font.
$wp_customize->add_setting(
	'fast_food_joint_site_description_font',
	array(
		'default'           => 'Montserrat',
		'sanitize_callback' => 'fast_food_joint_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'fast_food_joint_site_description_font',
	array(
		'label'    => esc_html__( 'Site Description Font Family', 'fast-food-joint' ),
		'section'  => 'fast_food_joint_typography_setting',
		'settings' => 'fast_food_joint_site_description_font',
		'type'     => 'select',
		'choices'  => fast_food_joint_get_all_google_font_families(),
	)
);

// Typography - Header Font.
$wp_customize->add_setting(
	'fast_food_joint_header_font',
	array(
		'default'           => 'Lemon',
		'sanitize_callback' => 'fast_food_joint_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'fast_food_joint_header_font',
	array(
		'label'    => esc_html__( 'Heading Font Family', 'fast-food-joint' ),
		'section'  => 'fast_food_joint_typography_setting',
		'settings' => 'fast_food_joint_header_font',
		'type'     => 'select',
		'choices'  => fast_food_joint_get_all_google_font_families(),
	)
);

// Typography - Body Font.
$wp_customize->add_setting(
	'fast_food_joint_content_font',
	array(
		'default'           => 'Montserrat',
		'sanitize_callback' => 'fast_food_joint_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'fast_food_joint_content_font',
	array(
		'label'    => esc_html__( 'Content Font Family', 'fast-food-joint' ),
		'section'  => 'fast_food_joint_typography_setting',
		'settings' => 'fast_food_joint_content_font',
		'type'     => 'select',
		'choices'  => fast_food_joint_get_all_google_font_families(),
	)
);
