<?php
	$wp_customize->add_setting( 'global_typo_is_google_active', array(
		'default'           => ci_theme_customizer_defaults( 'global_typo_is_google_active' ),
		'sanitize_callback' => 'absint',
	) );
	$wp_customize->add_control( 'global_typo_is_google_active', array(
		'type'    => 'checkbox',
		'section' => 'typography',
		'label'   => esc_html__( 'Enable Google Fonts', 'ci_theme' ),
	) );

	$wp_customize->add_setting( 'global_typo_body', array(
		'transport'         => 'postMessage',
		'default'           => ci_theme_typography_control_defaults_empty_breakpoints(),
		'sanitize_callback' => 'ci_theme_sanitize_typography_control_breakpoints',
	) );
	$wp_customize->add_control( new CI_Theme_Customize_Typography_Control( $wp_customize, 'global_typo_body', array(
		'section'     => 'typography',
		'label'       => esc_html__( 'Body font', 'ci_theme' ),
		'placeholder' => ci_theme_customizer_defaults( 'global_typo_body' ),
	) ) );

	$wp_customize->add_setting( 'global_typo_h1', array(
		'transport'         => 'postMessage',
		'default'           => ci_theme_typography_control_defaults_empty_breakpoints(),
		'sanitize_callback' => 'ci_theme_sanitize_typography_control_breakpoints',
	) );
	$wp_customize->add_control( new CI_Theme_Customize_Typography_Control( $wp_customize, 'global_typo_h1', array(
		'section'     => 'typography',
		'label'       => esc_html__( 'H1 font', 'ci_theme' ),
		'placeholder' => ci_theme_customizer_defaults( 'global_typo_h1' ),
	) ) );

	$wp_customize->add_setting( 'global_typo_h2', array(
		'transport'         => 'postMessage',
		'default'           => ci_theme_typography_control_defaults_empty_breakpoints(),
		'sanitize_callback' => 'ci_theme_sanitize_typography_control_breakpoints',
	) );
	$wp_customize->add_control( new CI_Theme_Customize_Typography_Control( $wp_customize, 'global_typo_h2', array(
		'section'     => 'typography',
		'label'       => esc_html__( 'H2 font', 'ci_theme' ),
		'placeholder' => ci_theme_customizer_defaults( 'global_typo_h2' ),
	) ) );

	$wp_customize->add_setting( 'global_typo_h3', array(
		'transport'         => 'postMessage',
		'default'           => ci_theme_typography_control_defaults_empty_breakpoints(),
		'sanitize_callback' => 'ci_theme_sanitize_typography_control_breakpoints',
	) );
	$wp_customize->add_control( new CI_Theme_Customize_Typography_Control( $wp_customize, 'global_typo_h3', array(
		'section'     => 'typography',
		'label'       => esc_html__( 'H3 font', 'ci_theme' ),
		'placeholder' => ci_theme_customizer_defaults( 'global_typo_h3' ),
	) ) );

	$wp_customize->add_setting( 'global_typo_h4', array(
		'transport'         => 'postMessage',
		'default'           => ci_theme_typography_control_defaults_empty_breakpoints(),
		'sanitize_callback' => 'ci_theme_sanitize_typography_control_breakpoints',
	) );
	$wp_customize->add_control( new CI_Theme_Customize_Typography_Control( $wp_customize, 'global_typo_h4', array(
		'section'     => 'typography',
		'label'       => esc_html__( 'H4 font', 'ci_theme' ),
		'placeholder' => ci_theme_customizer_defaults( 'global_typo_h4' ),
	) ) );

	$wp_customize->add_setting( 'global_typo_h5', array(
		'transport'         => 'postMessage',
		'default'           => ci_theme_typography_control_defaults_empty_breakpoints(),
		'sanitize_callback' => 'ci_theme_sanitize_typography_control_breakpoints',
	) );
	$wp_customize->add_control( new CI_Theme_Customize_Typography_Control( $wp_customize, 'global_typo_h5', array(
		'section'     => 'typography',
		'label'       => esc_html__( 'H5 font', 'ci_theme' ),
		'placeholder' => ci_theme_customizer_defaults( 'global_typo_h5' ),
	) ) );

	$wp_customize->add_setting( 'global_typo_h6', array(
		'transport'         => 'postMessage',
		'default'           => ci_theme_typography_control_defaults_empty_breakpoints(),
		'sanitize_callback' => 'ci_theme_sanitize_typography_control_breakpoints',
	) );
	$wp_customize->add_control( new CI_Theme_Customize_Typography_Control( $wp_customize, 'global_typo_h6', array(
		'section'     => 'typography',
		'label'       => esc_html__( 'H6 font', 'ci_theme' ),
		'placeholder' => ci_theme_customizer_defaults( 'global_typo_h6' ),
	) ) );

	$wp_customize->add_setting( 'global_typo_form_labels', array(
		'transport'         => 'postMessage',
		'default'           => ci_theme_typography_control_defaults_empty_breakpoints(),
		'sanitize_callback' => 'ci_theme_sanitize_typography_control_breakpoints',
	) );
	$wp_customize->add_control( new CI_Theme_Customize_Typography_Control( $wp_customize, 'global_typo_form_labels', array(
		'section'     => 'typography',
		'label'       => esc_html__( 'Form labels', 'ci_theme' ),
		'placeholder' => ci_theme_customizer_defaults( 'global_typo_form_labels' ),
	) ) );

	$wp_customize->add_setting( 'global_typo_form_text', array(
		'transport'         => 'postMessage',
		'default'           => ci_theme_typography_control_defaults_empty_breakpoints(),
		'sanitize_callback' => 'ci_theme_sanitize_typography_control_breakpoints',
	) );
	$wp_customize->add_control( new CI_Theme_Customize_Typography_Control( $wp_customize, 'global_typo_form_text', array(
		'section'     => 'typography',
		'label'       => esc_html__( 'Form text', 'ci_theme' ),
		'placeholder' => ci_theme_customizer_defaults( 'global_typo_form_text' ),
	) ) );

	$wp_customize->add_setting( 'global_typo_buttons', array(
		'transport'         => 'postMessage',
		'default'           => ci_theme_typography_control_defaults_empty_breakpoints(),
		'sanitize_callback' => 'ci_theme_sanitize_typography_control_breakpoints',
	) );
	$wp_customize->add_control( new CI_Theme_Customize_Typography_Control( $wp_customize, 'global_typo_buttons', array(
		'section'     => 'typography',
		'label'       => esc_html__( 'Button text', 'ci_theme' ),
		'placeholder' => ci_theme_customizer_defaults( 'global_typo_buttons' ),
	) ) );

	$wp_customize->add_setting( 'global_typo_widget_titles', array(
		'transport'         => 'postMessage',
		'default'           => ci_theme_typography_control_defaults_empty_breakpoints(),
		'sanitize_callback' => 'ci_theme_sanitize_typography_control_breakpoints',
	) );
	$wp_customize->add_control( new CI_Theme_Customize_Typography_Control( $wp_customize, 'global_typo_widget_titles', array(
		'section'     => 'typography',
		'label'       => esc_html__( 'Widget titles', 'ci_theme' ),
		'placeholder' => ci_theme_customizer_defaults( 'global_typo_widget_titles' ),
	) ) );

	$wp_customize->add_setting( 'global_typo_widget_text', array(
		'transport'         => 'postMessage',
		'default'           => ci_theme_typography_control_defaults_empty_breakpoints(),
		'sanitize_callback' => 'ci_theme_sanitize_typography_control_breakpoints',
	) );
	$wp_customize->add_control( new CI_Theme_Customize_Typography_Control( $wp_customize, 'global_typo_widget_text', array(
		'section'     => 'typography',
		'label'       => esc_html__( 'Widget text', 'ci_theme' ),
		'placeholder' => ci_theme_customizer_defaults( 'global_typo_widget_text' ),
	) ) );
