<?php

/**
 * Typography Settings
 *
 * @package aster_vlogger
 */

$wp_customize->add_section(
	'aster_vlogger_typography',
	array(
		'panel' => 'aster_vlogger_theme_options',
		'title' => esc_html__( 'Typography Settings', 'aster-vlogger' ),
	)
);

// Typography - Site Title Font.
$wp_customize->add_setting(
	'aster_vlogger_site_title_font',
	array(
		'default'           => 'Raleway',
		'sanitize_callback' => 'aster_vlogger_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'aster_vlogger_site_title_font',
	array(
		'label'    => esc_html__( 'Site Title Font Family', 'aster-vlogger' ),
		'section'  => 'aster_vlogger_typography',
		'settings' => 'aster_vlogger_site_title_font',
		'type'     => 'select',
		'choices'  => aster_vlogger_get_all_google_font_families(),
	)
);

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

$wp_customize->add_control(
	'aster_vlogger_site_description_font',
	array(
		'label'    => esc_html__( 'Site Description Font Family', 'aster-vlogger' ),
		'section'  => 'aster_vlogger_typography',
		'settings' => 'aster_vlogger_site_description_font',
		'type'     => 'select',
		'choices'  => aster_vlogger_get_all_google_font_families(),
	)
);

// Typography - Header Font.
$wp_customize->add_setting(
	'aster_vlogger_header_font',
	array(
		'default'           => 'Muli',
		'sanitize_callback' => 'aster_vlogger_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'aster_vlogger_header_font',
	array(
		'label'    => esc_html__( 'Heading Font Family', 'aster-vlogger' ),
		'section'  => 'aster_vlogger_typography',
		'settings' => 'aster_vlogger_header_font',
		'type'     => 'select',
		'choices'  => aster_vlogger_get_all_google_font_families(),
	)
);

// Typography - Body Font.
$wp_customize->add_setting(
	'aster_vlogger_body_font',
	array(
		'default'           => 'Muli',
		'sanitize_callback' => 'aster_vlogger_sanitize_google_fonts',
	)
);

$wp_customize->add_control(
	'aster_vlogger_body_font',
	array(
		'label'    => esc_html__( 'Content Font Family', 'aster-vlogger' ),
		'section'  => 'aster_vlogger_typography',
		'settings' => 'aster_vlogger_body_font',
		'type'     => 'select',
		'choices'  => aster_vlogger_get_all_google_font_families(),
	)
);
