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

// Typography Setting
$wp_customize->add_section(
    'lawyer_consultant_firm_typography_setting',
    array(
        'panel' => 'lawyer_consultant_firm_theme_options',
        'title' => esc_html__( 'Typography Setting', 'lawyer-consultant-firm' ),
    )
);

$wp_customize->add_setting(
    'lawyer_consultant_firm_site_title_font',
    array(
        'default'           => 'Space Grotesk',
        'sanitize_callback' => 'lawyer_consultant_firm_sanitize_google_fonts',
    )
);

$wp_customize->add_control(
    'lawyer_consultant_firm_site_title_font',
    array(
        'label'    => esc_html__( 'Site Title Font Family', 'lawyer-consultant-firm' ),
        'section'  => 'lawyer_consultant_firm_typography_setting',
        'settings' => 'lawyer_consultant_firm_site_title_font',
        'type'     => 'select',
        'choices'  => lawyer_consultant_firm_get_all_google_font_families(),
    )
);

// Typography - Site Description Font.
$wp_customize->add_setting(
	'lawyer_consultant_firm_site_description_font',
	array(
		'default'           => 'Content',
		'sanitize_callback' => 'lawyer_consultant_firm_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'lawyer_consultant_firm_site_description_font',
	array(
		'label'    => esc_html__( 'Site Description Font Family', 'lawyer-consultant-firm' ),
		'section'  => 'lawyer_consultant_firm_typography_setting',
		'settings' => 'lawyer_consultant_firm_site_description_font',
		'type'     => 'select',
		'choices'  => lawyer_consultant_firm_get_all_google_font_families(),
	)
);

// Typography - Header Font.
$wp_customize->add_setting(
	'lawyer_consultant_firm_header_font',
	array(
		'default'           => 'Space Grotesk',
		'sanitize_callback' => 'lawyer_consultant_firm_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'lawyer_consultant_firm_header_font',
	array(
		'label'    => esc_html__( 'Heading Font Family', 'lawyer-consultant-firm' ),
		'section'  => 'lawyer_consultant_firm_typography_setting',
		'settings' => 'lawyer_consultant_firm_header_font',
		'type'     => 'select',
		'choices'  => lawyer_consultant_firm_get_all_google_font_families(),
	)
);

// Typography - Body Font.
$wp_customize->add_setting(
	'lawyer_consultant_firm_content_font',
	array(
		'default'           => 'Content',
		'sanitize_callback' => 'lawyer_consultant_firm_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'lawyer_consultant_firm_content_font',
	array(
		'label'    => esc_html__( 'Content Font Family', 'lawyer-consultant-firm' ),
		'section'  => 'lawyer_consultant_firm_typography_setting',
		'settings' => 'lawyer_consultant_firm_content_font',
		'type'     => 'select',
		'choices'  => lawyer_consultant_firm_get_all_google_font_families(),
	)
);