<?php

/**
 * Typography Settings
 *
 * @package doctor_physician
 */

// Typography Settings
$wp_customize->add_section(
    'doctor_physician_typography_setting',
    array(
        'panel' => 'doctor_physician_theme_options',
        'title' => esc_html__( 'Typography Settings', 'doctor-physician' ),
    )
);

$wp_customize->add_setting(
    'doctor_physician_site_title_font',
    array(
        'default'           => 'Nunito',
        'sanitize_callback' => 'doctor_physician_sanitize_google_fonts',
    )
);

$wp_customize->add_control(
    'doctor_physician_site_title_font',
    array(
        'label'    => esc_html__( 'Site Title Font Family', 'doctor-physician' ),
        'section'  => 'doctor_physician_typography_setting',
        'settings' => 'doctor_physician_site_title_font',
        'type'     => 'select',
        'choices'  => doctor_physician_get_all_google_font_families(),
    )
);

// Typography - Site Description Font.
$wp_customize->add_setting(
	'doctor_physician_site_description_font',
	array(
		'default'           => 'Nunito',
		'sanitize_callback' => 'doctor_physician_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'doctor_physician_site_description_font',
	array(
		'label'    => esc_html__( 'Site Description Font Family', 'doctor-physician' ),
		'section'  => 'doctor_physician_typography_setting',
		'settings' => 'doctor_physician_site_description_font',
		'type'     => 'select',
		'choices'  => doctor_physician_get_all_google_font_families(),
	)
);

// Typography - Header Font.
$wp_customize->add_setting(
	'doctor_physician_header_font',
	array(
		'default'           => 'Poppins',
		'sanitize_callback' => 'doctor_physician_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'doctor_physician_header_font',
	array(
		'label'    => esc_html__( 'Heading Font Family', 'doctor-physician' ),
		'section'  => 'doctor_physician_typography_setting',
		'settings' => 'doctor_physician_header_font',
		'type'     => 'select',
		'choices'  => doctor_physician_get_all_google_font_families(),
	)
);

// Typography - Body Font.
$wp_customize->add_setting(
	'doctor_physician_content_font',
	array(
		'default'           => 'Nunito',
		'sanitize_callback' => 'doctor_physician_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'doctor_physician_content_font',
	array(
		'label'    => esc_html__( 'Content Font Family', 'doctor-physician' ),
		'section'  => 'doctor_physician_typography_setting',
		'settings' => 'doctor_physician_content_font',
		'type'     => 'select',
		'choices'  => doctor_physician_get_all_google_font_families(),
	)
);
