<?php

/**
 * Typography Setting
 *
 * @package bike_workshop
 */

// Typography Setting
$wp_customize->add_section(
    'bike_workshop_typography_setting',
    array(
        'panel' => 'bike_workshop_theme_options',
        'title' => esc_html__( 'Typography Setting', 'bike-workshop' ),
    )
);

$wp_customize->add_setting(
    'bike_workshop_site_title_font',
    array(
        'default'           => 'Raleway',
        'sanitize_callback' => 'bike_workshop_sanitize_google_fonts',
    )
);

$wp_customize->add_control(
    'bike_workshop_site_title_font',
    array(
        'label'    => esc_html__( 'Site Title Font Family', 'bike-workshop' ),
        'section'  => 'bike_workshop_typography_setting',
        'settings' => 'bike_workshop_site_title_font',
        'type'     => 'select',
        'choices'  => bike_workshop_get_all_google_font_families(),
    )
);

// Typography - Site Description Font.
$wp_customize->add_setting(
	'bike_workshop_site_description_font',
	array(
		'default'           => 'Raleway',
		'sanitize_callback' => 'bike_workshop_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'bike_workshop_site_description_font',
	array(
		'label'    => esc_html__( 'Site Description Font Family', 'bike-workshop' ),
		'section'  => 'bike_workshop_typography_setting',
		'settings' => 'bike_workshop_site_description_font',
		'type'     => 'select',
		'choices'  => bike_workshop_get_all_google_font_families(),
	)
);

// Typography - Header Font.
$wp_customize->add_setting(
	'bike_workshop_header_font',
	array(
		'default'           => 'Bebas Neue',
		'sanitize_callback' => 'bike_workshop_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'bike_workshop_header_font',
	array(
		'label'    => esc_html__( 'Heading Font Family', 'bike-workshop' ),
		'section'  => 'bike_workshop_typography_setting',
		'settings' => 'bike_workshop_header_font',
		'type'     => 'select',
		'choices'  => bike_workshop_get_all_google_font_families(),
	)
);

// Typography - Body Font.
$wp_customize->add_setting(
	'bike_workshop_content_font',
	array(
		'default'           => 'Noto Sans Display',
		'sanitize_callback' => 'bike_workshop_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'bike_workshop_content_font',
	array(
		'label'    => esc_html__( 'Content Font Family', 'bike-workshop' ),
		'section'  => 'bike_workshop_typography_setting',
		'settings' => 'bike_workshop_content_font',
		'type'     => 'select',
		'choices'  => bike_workshop_get_all_google_font_families(),
	)
);
