<?php
$font_choices = array(
	'Source Sans Pro:400,700,400italic,700italic' => '<li>'.'Source Sans Pro'. '</li>',
	'Open Sans:400italic,700italic,400,700' => 'Open Sans',
	'Oswald:400,700' => 'Oswald',
	'Playfair Display:400,700,400italic' => 'Playfair Display',
	'Montserrat:400,700' => 'Montserrat',
	'Raleway:400,700' => 'Raleway',
	'Droid Sans:400,700' => 'Droid Sans',
	'Lato:400,700,400italic,700italic' => 'Lato',
	'Arvo:400,700,400italic,700italic' => 'Arvo',
	'Lora:400,700,400italic,700italic' => 'Lora',
	'Merriweather:400,300italic,300,400italic,700,700italic' => 'Merriweather',
	'Oxygen:400,300,700' => 'Oxygen',
	'PT Serif:400,700' => 'PT Serif',
	'PT Sans:400,700,400italic,700italic' => 'PT Sans',
	'PT Sans Narrow:400,700' => 'PT Sans Narrow',
	'Cabin:400,700,400italic' => 'Cabin',
	'Fjalla One:400' => 'Fjalla One',
	'Francois One:400' => 'Francois One',
	'Josefin Sans:400,300,600,700' => 'Josefin Sans',
	'Libre Baskerville:400,400italic,700' => 'Libre Baskerville',
	'Arimo:400,700,400italic,700italic' => 'Arimo',
	'Ubuntu:400,700,400italic,700italic' => 'Ubuntu',
	'Bitter:400,700,400italic' => 'Bitter',
	'Droid Serif:400,700,400italic,700italic' => 'Droid Serif',
	'Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900' => 'Roboto',
	'Open Sans Condensed:700,300italic,300' => 'Open Sans Condensed',
	'Roboto Condensed:400italic,700italic,400,700' => 'Roboto Condensed',
	'Roboto Slab:400,700' => 'Roboto Slab',
	'Yanone Kaffeesatz:400,700' => 'Yanone Kaffeesatz',
	'Rokkitt:400' => 'Rokkitt',
	'Poppins:400,500,600,700,800,900' => 'Poppins',
	'Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900' => 'Nunito',
	'Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700' => 'Josefin',
	'Big+Shoulders+Display:wght@100;300;400;500;600;700;800;900' => 'Big Shoulders Display',
	'Yusei+Magic' => 'Yusei Magic',
	'Lexend+Mega' => 'Lexend Mega',
	'Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900' => 'Nunito',
	'Sriracha' => 'Sriracha',
	'Noto+Serif:ital,wght@0,400;0,700;1,400;1,700' => 'Noto Serif',
	'Fira+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,800;1,900' => 'Fira Sans',
	'Akaya+Telivigala' => 'Akaya Telivigala',
	'Oi' => 'Oi',
	'KoHo:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700' => 'Kaho',
);
$wp_customize->add_section(
	'typhograpy',
	array(
		'priority'       => 8,
		'panel'          => 'faith-blog',
		'title'          => __( 'Typography', 'faith-blog' ),
		'capability'     => 'edit_theme_options',
	)
);
$wp_customize->add_setting(
	'faith_blog_heading_fonts',
	array(
		'transport' => 'refresh',
		'sanitize_callback' => 'faith_blog_sanitize_fonts',
		'default'  => 'Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700',
	)
);
$wp_customize->add_control( 
	'faith_blog_heading_fonts', 
	array(
		'type' => 'select',
		'label' => __('Heading Font Family', 'faith-blog'),
		'section' => 'typhograpy',
		'choices' => $font_choices
	)
);
$wp_customize->add_setting(
	'faith_blog_body_fonts',
	array(
		'transport' => 'refresh',
		'sanitize_callback' => 'faith_blog_sanitize_fonts',
		'default'  => 'Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900',
	)
);
$wp_customize->add_control( 
	'faith_blog_body_fonts', 
	array(
		'type' => 'select',
		'label' => __('Body Font Family', 'faith-blog'),
		'section' => 'typhograpy',
		'choices' => $font_choices
	)
);
$wp_customize->add_setting( 
	'faith_blog_body_fonts_size',
	array(
		'transport' => 'refresh',
		'default' => 15,
		'sanitize_callback' => 'faith_blog_sanitize_number_absint',
	)
);
$wp_customize->add_control( 
	'faith_blog_body_fonts_size', 
	array(
		'type' => 'number',
		'label' => __('Body Font Size', 'faith-blog'),
		'section' => 'typhograpy',
	)
);
$wp_customize->add_setting( 
	'faith_blog_body_fonts_weight',
	array(
		'transport' => 'refresh',
		'default' => 400,
		'sanitize_callback' => 'faith_blog_sanitize_number_absint',
	)
);
$wp_customize->add_control( 
	'faith_blog_body_fonts_weight', 
	array(
		'type' => 'select',
		'label' => __('Body Font Weight', 'faith-blog'),
		'section' => 'typhograpy',
		'choices' => array(
			'100' => __( '100', 'faith-blog' ),
			'200' => __( '200', 'faith-blog' ),
			'200;0' => __( '200 Italic', 'faith-blog' ),
			'300' => __( '300', 'faith-blog' ),
			'300;0' => __( '300 italic', 'faith-blog' ),
			'400' => __( '400', 'faith-blog' ),
			'400;0' => __( '400 italic', 'faith-blog' ),
			'500' => __( '500', 'faith-blog' ),
			'500;0' => __( '500 Italic', 'faith-blog' ),
			'600' => __( '600', 'faith-blog' ),
			'600;0' => __( '600 Italic', 'faith-blog' ),
			'700' => __( '700', 'faith-blog' ),
			'700;0' => __( '700 Italic', 'faith-blog' ),
			'800' => __( '800', 'faith-blog' ),
			'800;0' => __( '800 Italic', 'faith-blog' ),
			'900' => __( '900', 'faith-blog' ),
			'900;0' => __( '900 Italic', 'faith-blog' ),
			'1100' => __( '1100', 'faith-blog' ),
			'1100;0' => __( '1100 Italic', 'faith-blog' ),
		),
	)
);
$wp_customize->add_setting( 
	'faith_blog_body_fonts_line_height',
	array(
		'transport' => 'refresh',
		'default' => 28,
		'sanitize_callback' => 'faith_blog_sanitize_number_absint',
	)
);
$wp_customize->add_control( 
	'faith_blog_body_fonts_line_height', 
	array(
		'type' => 'number',
		'label' => __('Body Line Height', 'faith-blog'),
		'section' => 'typhograpy',
	)
);