<?php
/**
 *  Faced Typography Option
 *
 * @since Faced 1.1.9
 *
 */
$wp_customize->add_panel( 'faced_typography', array(
    'priority' => 30,
    'capability' => 'edit_theme_options',
    'title' => __( 'Fonts Options', 'faced' ),
) );

/*
* Font and Typography Options
* Paragraph Option Section
* Faced 1.1.9
*/
$wp_customize->add_section( 'faced_font_options', array(
   'priority'       => 20,
   'capability'     => 'edit_theme_options',
   'theme_supports' => '',
   'title'          => __( 'Paragraph Font', 'faced' ),
   'panel' 		 => 'faced_typography',
) );
/*Paragraph Font Family*/
$wp_customize->add_setting( 'faced_options[faced-font-family-url]', array(
    'capability'        => 'edit_theme_options',
    'transport' => 'refresh',
    'default'           => $default['faced-font-family-url'],
    'sanitize_callback' => 'wp_kses_post'
) );
$choices = faced_google_fonts();
$wp_customize->add_control( 'faced_options[faced-font-family-url]', array(
    'label'     => __( 'Body Paragraph Font Family', 'faced' ),
    'description' =>__( 'Select the required font from the dropdown.', 'faced' ),
    'choices'  	=> $choices,
    'section'   => 'faced_font_options',
    'settings'  => 'faced_options[faced-font-family-url]',
    'type'      => 'select',
    'priority'  => 15,
) );

/*
* Heading Fonts Options
* Heading Font Option Section
* Faced 1.1.9
*/

/*Heading Fonts*/
$wp_customize->add_section( 'faced_heading_font_options', array(
    'priority'       => 30,
    'capability'     => 'edit_theme_options',
    'theme_supports' => '',
    'title'          => __( 'Heading Font Family', 'faced' ),
    'panel'         => 'faced_typography',
) );
/*Font Family URL*/
$wp_customize->add_setting( 'faced_options[faced-font-heading-family-url]', array(
    'capability'        => 'edit_theme_options',
    'transport' => 'refresh',
    'default'           => $default['faced-font-heading-family-url'],
    'sanitize_callback' => 'wp_kses_post'
) );
$choices = faced_google_fonts();
$wp_customize->add_control( 'faced_options[faced-font-heading-family-url]', array(
    'label'     => __( 'Select Heading Font Family', 'faced' ),
    'description' => __( 'Select the required font from the dropdown(H1-H6).', 'faced' ),
    'choices'  	=> $choices,
    'section'   => 'faced_heading_font_options',
    'settings'  => 'faced_options[faced-font-heading-family-url]',
    'type'      => 'select',
    'priority'  => 10,
) );
