File "typography.php"

Full Path: /home/adniftyx/public_html/wp-content/themes/credio/inc/customizer/typography.php
File size: 27.02 KB
MIME-type: text/x-php
Charset: utf-8

<?php
function credio_typography_panel( $credio_customizer, $priority ){
    $credio_customizer->add_section( 'credio_typography_setting' , array(
        'title'      => esc_html__( 'Typography Settings', 'credio' ),
        'priority'   => $priority,
        'panel'		 => 'credio_options_panel'
    ) );

	$rs_custom_fonts = get_terms([
		'taxonomy'   => 'rs_custom_fonts',
		'hide_empty' => false,
	]);


	$rs_custom_font_key = [];
	$rs_custom_font_val = [];
	if( is_array( $rs_custom_fonts ) ){
		foreach( $rs_custom_fonts as $rs_custom_font ){
			array_push( $rs_custom_font_key, $rs_custom_font->name );
			array_push( $rs_custom_font_val, $rs_custom_font->name );
		}
	}

	
	$font_choices_custom = array_combine( array_map(function($el) use ($rs_custom_font_val) {
		return $rs_custom_font_val[$el];
	}, array_keys($rs_custom_font_key)), array_values($rs_custom_font_key));


	if( is_array( $rs_custom_fonts ) && !empty( $rs_custom_fonts ) ){
		array_unshift( $font_choices_custom, esc_html__( 'Custom Font', 'credio') );
	}
	

	$font_choices_google = [
		'google'              => esc_html__( 'Google Fonts', 'credio'),
		'Space Grotesk'     => esc_html__( 'Space Grotesk', 'credio'),
		'Open Sans'           => esc_html__( 'Open Sans', 'credio'),
		'Oswald'              => esc_html__( 'Oswald', 'credio'),
		'Playfair Display'    => esc_html__( 'Playfair Display', 'credio'),
		'Montserrat'          => esc_html__( 'Montserrat', 'credio'),
		'Nunito Sans'         => esc_html__( 'Nunito Sans', 'credio'),
		'Inter'               => esc_html__( 'Inter', 'credio'),
		'Rajdhani'              => esc_html__( 'Rajdhani', 'credio'),
		'Comfortaa'           => esc_html__( 'Comfortaa', 'credio'),
		'Raleway'             => esc_html__( 'Raleway', 'credio'),
		'Droid Sans'          => esc_html__( 'Droid Sans', 'credio'),
		'Lato'                => esc_html__( 'Lato', 'credio'),
		'Arvo'                => esc_html__( 'Arvo', 'credio'),
		'Lora'                => esc_html__( 'Lora', 'credio'),
		'Poppins'             => esc_html__( 'Poppins', 'credio'),
		'Merriweather'        => esc_html__( 'Merriweather', 'credio'),
		'Oxygen'              => esc_html__( 'Oxygen', 'credio'),
		'PT Serif'            => esc_html__( 'PT Serif', 'credio'),
		'PT Sans'             => esc_html__( 'PT Sans', 'credio'),
		'PT Sans Narrow'      => esc_html__( 'PT Sans Narrow', 'credio'),
		'Public Sans'         => esc_html__( 'Public Sans', 'credio'),
		'Cabin'               => esc_html__( 'Cabin', 'credio'),
		'Fjalla One'          => esc_html__( 'Fjalla One', 'credio'),
		'Francois One'        => esc_html__( 'Francois One', 'credio'),
		'Rubik'        		  => esc_html__( 'Rubik', 'credio'),
		'Josefin Sans'        => esc_html__( 'Josefin Sans', 'credio'),
		'Libre Baskerville'   => esc_html__( 'Libre Baskerville', 'credio'),
		'Arimo'               => esc_html__( 'Arimo', 'credio'),
		'Ubuntu'              => esc_html__( 'Ubuntu', 'credio'),
		'Bitter'              => esc_html__( 'Bitter', 'credio'),
		'Yantramanav'         => esc_html__( 'Yantramanav', 'credio'),
		'Droid Serif'         => esc_html__( 'Droid Serif', 'credio'),
		'Roboto'              => esc_html__( 'Roboto', 'credio'),
		'Open Sans Condensed' => esc_html__( 'Open Sans Condensed', 'credio'),
		'Roboto Condensed'    => esc_html__( 'Roboto Condensed', 'credio'),
		'Roboto Slab'         => esc_html__( 'Roboto Slab', 'credio'),
		'Yanone Kaffeesatz'   => esc_html__( 'Yanone Kaffeesatz', 'credio'),
		'Rokkitt'             => esc_html__( 'Rokkitt', 'credio'),
		'Saira Condensed'     => esc_html__( 'Saira Condensed', 'credio'),
		'Oxanium'             => esc_html__( 'Oxanium', 'credio'),
		'Source Code Pro'     => esc_html__( 'Source Code Pro', 'credio'),
		'Rozha One'     => esc_html__( 'Rozha One', 'credio'),
	]; 

	$font_choices = array_merge( $font_choices_custom, $font_choices_google );

	$font_weight = [
		'300' => esc_html__('300', 'credio' ),
		'400' => esc_html__('400', 'credio' ),
		'500' => esc_html__('500', 'credio' ),
		'600' => esc_html__('600', 'credio' ),
		'700' => esc_html__('700', 'credio' ),
		'800' => esc_html__('800', 'credio' ),
		'900' => esc_html__('900', 'credio' ),
	];

	//Start
	$credio_customizer->add_setting(
		'ty_header_0',
	);
	$credio_customizer->add_control(
		new credio_Heading_Control(
			$credio_customizer, 
			'ty_header_0', 
			array(
				'label'			=> esc_html__( 'Header Typography', 'credio' ),
				'settings'		=> 'ty_header_0',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End

	//Start separator
	$credio_customizer->add_setting(
		'separator_header_01', 
		array(
			'default'           => '',
			'sanitize_callback' => 'esc_html',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'separator_header_01', 
			array(
				'settings'		=> 'separator_header_01',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End separator

	//Start
	$credio_customizer->add_setting( 'credio_header_font');
	$credio_customizer->add_control( 'credio_header_font', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Family', 'credio' ),
			'description' => __('Select your desired font for the header.', 'credio'),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_choices
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_header_font_size',
		array(
			'transport'		=> 'refresh',
		)
		);
		$credio_customizer->add_control('credio_header_font_size', array(
		'section'		=> 'credio_typography_setting',
		'label'			=> esc_html__( 'Font Size', 'credio' ),
		'description'	=> esc_html__( 'Header font size (15px)', 'credio' ),
		'type'			=> 'text',
		'setting'	    => 'credio_header_font_size'
	));
	//End

	//Start
	$credio_customizer->add_setting( 'header_credio_fonts_info', array(
			'default' => '400'
		)
	);
	$credio_customizer->add_control( 'header_credio_fonts_info', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Weight', 'credio' ),
			'description' => __( 'Select Header font Weight', 'credio' ),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_weight
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'ty_body_0',
	);
	$credio_customizer->add_control(
		new credio_Heading_Control(
			$credio_customizer, 
			'ty_body_0', 
			array(
				'label'			=> esc_html__( 'Body Typography', 'credio' ),
				'settings'		=> 'ty_body_0',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End

	//Start separator
	$credio_customizer->add_setting(
		'separator_body_01', 
		array(
			'default'           => '',
			'sanitize_callback' => 'esc_html',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'separator_body_01', 
			array(
				'settings'		=> 'separator_body_01',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End separator

	//Start
	$credio_customizer->add_setting( 'credio_body_font', array(
		'credio_body_font',
		array(
			'transport'		=> 'refresh',
		)
	) );
	$credio_customizer->add_control( 'credio_body_font', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Family', 'credio' ),
			'description' => __( 'Select your desired font for the body.', 'credio' ),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_choices
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_body_font_size',
		array(
			'transport'		=> 'refresh',
		)
		);
		$credio_customizer->add_control('credio_body_font_size', array(
		'section'		=> 'credio_typography_setting',
		'label'			=> esc_html__( 'Font Size', 'credio' ),
		'description'	=> esc_html__( 'Body font size (15px)', 'credio' ),
		'type'			=> 'text',
		'setting'	    => 'credio_body_font_size'
	));
	//End

	//Start
	$credio_customizer->add_setting( 'credio_fonts_info', array(
			'default' => '400'
		)
	);
	$credio_customizer->add_control( 'credio_fonts_info', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Weight', 'credio' ),
			'description' => __( 'Select Body font Weight', 'credio' ),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_weight
		)
	);
	//End

	//Start separator
	$credio_customizer->add_setting(
		'separator_ty_1', 
		array(
			'default'           => '',
			'sanitize_callback' => 'esc_html',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'separator_ty_1', 
			array(
				'settings'		=> 'separator_ty_1',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End separator

	//Start
	$credio_customizer->add_setting(
		'ty_heading_0',
	);
	$credio_customizer->add_control(
		new credio_Heading_Control(
			$credio_customizer, 
			'ty_heading_0', 
			array(
				'label'			=> esc_html__( 'Heading Typography', 'credio' ),
				'settings'		=> 'ty_heading_0',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End

	//Start
	$credio_customizer->add_setting( 'credio_heading_font', array(
		'default' => esc_html__( 'Nunito Sans', 'credio' )
	) );
	$credio_customizer->add_control( 'credio_heading_font', array(
			'type'        => 'select',
			'label'       => esc_html__( 'All Heading Font', 'credio' ),
			'description' => __( 'Select your desired font for the heading.', 'credio' ),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_choices
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'ty_heading_1',
	);
	$credio_customizer->add_control(
		new credio_Heading_Control(
			$credio_customizer, 
			'ty_heading_1', 
			array(
				'label'			=> esc_html__( 'H1 Typography', 'credio' ),
				'settings'		=> 'ty_heading_1',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End

	//Start
	$credio_customizer->add_setting( 'credio_h1_font');
	$credio_customizer->add_control( 'credio_h1_font', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Family', 'credio' ),
			'description' => __('Select your heading font family', 'credio'),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_choices
		)
	);
	//End

	 //Start
	 $credio_customizer->add_setting(
		'credio_h1_font_size',
		array(
			'transport'		=> 'refresh',
		)
	 );
	 $credio_customizer->add_control('credio_h1_font_size', array(
        'section'		=> 'credio_typography_setting',
        'label'			=> esc_html__( 'Font Size', 'credio' ),
        'description'	=> esc_html__( 'Global H1 font size (55px)', 'credio' ),
        'type'			=> 'text',
        'setting'	    => 'credio_h1_font_size'
    ));
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h1_font_weight',
	);
	$credio_customizer->add_control( 'credio_h1_font_weight', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Weight', 'credio' ),
			'description' => __( 'Select h1 font weight', 'credio' ),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_weight
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h1_line_height',
		array(
			'transport'		=> 'refresh',
		)
	 );
	 $credio_customizer->add_control('credio_h1_line_height', array(
        'section'		=> 'credio_typography_setting',
        'label'			=> esc_html__( 'Font Line Height', 'credio' ),
        'description'	=> esc_html__( 'Global H1 font line height (30px)', 'credio' ),
        'type'			=> 'text',
        'setting'	    => 'credio_h1_line_height'
    ));

 	$credio_customizer->add_setting (
        'credio_style_h1_color',
    );
    $credio_customizer->add_control(
        new WP_Customize_Color_Control(
            $credio_customizer,
            'credio_style_h1_color',
            array(
                'label'       => esc_html__('H1 Color','credio'),
                'description' => esc_html__('Select Color','credio'),
                'section'     => 'credio_typography_setting',
                'settings'    => 'credio_style_h1_color',
            )
        )
    );
	//End

	//Start separator
	$credio_customizer->add_setting(
		'separator_ty_2', 
		array(
			'default'           => '',
			'sanitize_callback' => 'esc_html',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'separator_ty_2', 
			array(
				'settings'		=> 'separator_ty_2',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End separator

	//Start
	$credio_customizer->add_setting(
		'ty_heading_2',
	);
	$credio_customizer->add_control(
		new credio_Heading_Control(
			$credio_customizer, 
			'ty_heading_2', 
			array(
				'label'			=> esc_html__( 'H2 Typography', 'credio' ),
				'settings'		=> 'ty_heading_2',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End

	//Start
	$credio_customizer->add_setting( 'credio_h2_font');
	$credio_customizer->add_control( 'credio_h2_font', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Family', 'credio' ),
			'description' => __('Select your heading font family', 'credio'),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_choices
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h2_font_size',
		array(
			'transport'		=> 'refresh',
		)
	 );
	 $credio_customizer->add_control('credio_h2_font_size', array(
        'section'		=> 'credio_typography_setting',
        'label'			=> esc_html__( 'Font Size', 'credio' ),
        'description'	=> esc_html__( 'Global H2 font size (55px)', 'credio' ),
        'type'			=> 'text',
        'setting'	    => 'credio_h2_font_size'
    ));
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h2_font_weight',
		array(
			'transport'		=> 'refresh',
		)
	);
	$credio_customizer->add_control( 'credio_h2_font_weight', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Weight', 'credio' ),
			'description' => __( 'Select h2 font weight', 'credio' ),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_weight
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h2_line_height',
		array(
			'transport'		=> 'refresh',
		)
	 );
	 $credio_customizer->add_control('credio_h2_line_height', array(
        'section'		=> 'credio_typography_setting',
        'label'			=> esc_html__( 'Font Line Height', 'credio' ),
        'description'	=> esc_html__( 'Global H2 font line height (30px)', 'credio' ),
        'type'			=> 'text',
        'setting'	    => 'credio_h2_line_height'
    ));

	$credio_customizer->add_setting (
       'credio_style_h2_color',
   	);
   	$credio_customizer->add_control(
       new WP_Customize_Color_Control(
           $credio_customizer,
           'credio_style_h2_color',
           array(
               'label'       => esc_html__('H2 Color','credio'),
               'description' => esc_html__('Select Color','credio'),
               'section'     => 'credio_typography_setting',
               'settings'    => 'credio_style_h2_color',
           )
       )
   	);
	//End

	//Start separator
	$credio_customizer->add_setting(
		'separator_ty_3', 
		array(
			'default'           => '',
			'sanitize_callback' => 'esc_html',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'separator_ty_3', 
			array(
				'settings'		=> 'separator_ty_3',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End separator

	//Start
	$credio_customizer->add_setting(
		'ty_heading_3',
	);
	$credio_customizer->add_control(
		new credio_Heading_Control(
			$credio_customizer, 
			'ty_heading_3', 
			array(
				'label'			=> esc_html__( 'H3 Typography', 'credio' ),
				'settings'		=> 'ty_heading_3',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End

	//Start
	$credio_customizer->add_setting( 'credio_h3_font');
	$credio_customizer->add_control( 'credio_h3_font', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Family', 'credio' ),
			'description' => __('Select your heading font family', 'credio'),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_choices
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h3_font_size',
		array(
			'transport'		=> 'refresh',
		)
	 );
	 $credio_customizer->add_control('credio_h3_font_size', array(
        'section'		=> 'credio_typography_setting',
        'label'			=> esc_html__( 'Font Size', 'credio' ),
        'description'	=> esc_html__( 'Global H3 font size (55px)', 'credio' ),
        'type'			=> 'text',
        'setting'	    => 'credio_h3_font_size'
    ));
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h3_font_weight',
	);
	$credio_customizer->add_control( 'credio_h3_font_weight', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Weight', 'credio' ),
			'description' => __( 'Select h3 font weight', 'credio' ),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_weight
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h3_line_height',
		array(
			'transport'		=> 'refresh',
		)
	 );
	 $credio_customizer->add_control('credio_h3_line_height', array(
        'section'		=> 'credio_typography_setting',
        'label'			=> esc_html__( 'Font Line Height', 'credio' ),
        'description'	=> esc_html__( 'Global H3 font line height (30px)', 'credio' ),
        'type'			=> 'text',
        'setting'	    => 'credio_h3_line_height'
    ));

	$credio_customizer->add_setting (
       'credio_style_h3_color',
   	);
   	$credio_customizer->add_control(
       new WP_Customize_Color_Control(
           $credio_customizer,
           'credio_style_h3_color',
           array(
               'label'       => esc_html__('H3 Color','credio'),
               'description' => esc_html__('Select Color','credio'),
               'section'     => 'credio_typography_setting',
               'settings'    => 'credio_style_h3_color',
           )
       )
   	);
	//End

	//Start separator
	$credio_customizer->add_setting(
		'separator_ty_4', 
		array(
			'default'           => '',
			'sanitize_callback' => 'esc_html',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'separator_ty_4', 
			array(
				'settings'		=> 'separator_ty_4',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End separator

	//Start
	$credio_customizer->add_setting(
		'ty_heading_4',
	);
	$credio_customizer->add_control(
		new credio_Heading_Control(
			$credio_customizer, 
			'ty_heading_4', 
			array(
				'label'			=> esc_html__( 'H4 Typography', 'credio' ),
				'settings'		=> 'ty_heading_4',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End

	//Start
	$credio_customizer->add_setting( 'credio_h4_font');
	$credio_customizer->add_control( 'credio_h4_font', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Family', 'credio' ),
			'description' => __('Select your heading font family', 'credio'),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_choices
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h4_font_size',
		array(
			'transport'		=> 'refresh',
		)
		);
		$credio_customizer->add_control('credio_h4_font_size', array(
		'section'		=> 'credio_typography_setting',
		'label'			=> esc_html__( 'Font Size', 'credio' ),
		'description'	=> esc_html__( 'Global H4 font size (55px)', 'credio' ),
		'type'			=> 'text',
		'setting'	    => 'credio_h4_font_size'
	));
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h4_font_weight',
	);
	$credio_customizer->add_control( 'credio_h4_font_weight', array(
		'type'        => 'select',
		'label'       => esc_html__( 'Font Weight', 'credio' ),
		'description' => __( 'Select h4 font weight', 'credio' ),
		'section'     => 'credio_typography_setting',
		'choices'     => $font_weight
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h4_line_height',
		array(
			'transport'		=> 'refresh',
		)
		);
		$credio_customizer->add_control('credio_h4_line_height', array(
		'section'		=> 'credio_typography_setting',
		'label'			=> esc_html__( 'Font Line Height', 'credio' ),
		'description'	=> esc_html__( 'Global H4 font line height (30px)', 'credio' ),
		'type'			=> 'text',
		'setting'	    => 'credio_h4_line_height'
	));

	$credio_customizer->add_setting (
       'credio_style_h4_color',
   	);
   	$credio_customizer->add_control(
       new WP_Customize_Color_Control(
           $credio_customizer,
           'credio_style_h4_color',
           array(
               'label'       => esc_html__('H4 Color','credio'),
               'description' => esc_html__('Select Color','credio'),
               'section'     => 'credio_typography_setting',
               'settings'    => 'credio_style_h4_color',
           )
       )
   	);
	//End

	//Start separator
	$credio_customizer->add_setting(
		'separator_ty_5', 
		array(
			'default'           => '',
			'sanitize_callback' => 'esc_html',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'separator_ty_5', 
			array(
				'settings'		=> 'separator_ty_5',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End separator	

	//Start
	$credio_customizer->add_setting(
		'ty_heading_5',
	);
	$credio_customizer->add_control(
		new credio_Heading_Control(
			$credio_customizer, 
			'ty_heading_5', 
			array(
				'label'			=> esc_html__( 'H5 Typography', 'credio' ),
				'settings'		=> 'ty_heading_5',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End

	//Start
	$credio_customizer->add_setting( 'credio_h5_font');
	$credio_customizer->add_control( 'credio_h5_font', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Family', 'credio' ),
			'description' => __('Select your heading font family', 'credio'),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_choices
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h5_font_size',
		array(
			'transport'		=> 'refresh',
		)
		);
		$credio_customizer->add_control('credio_h5_font_size', array(
		'section'		=> 'credio_typography_setting',
		'label'			=> esc_html__( 'Font Size', 'credio' ),
		'description'	=> esc_html__( 'Global H5 font size (32px)', 'credio' ),
		'type'			=> 'text',
		'setting'	    => 'credio_h5_font_size'
	));
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h5_font_weight',
	);
	$credio_customizer->add_control( 'credio_h5_font_weight', array(
		'type'        => 'select',
		'label'       => esc_html__( 'Font Weight', 'credio' ),
		'description' => __( 'Select h5 font weight', 'credio' ),
		'section'     => 'credio_typography_setting',
		'choices'     => $font_weight
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h5_line_height',
		array(
			'transport'		=> 'refresh',
		)
		);
		$credio_customizer->add_control('credio_h5_line_height', array(
		'section'		=> 'credio_typography_setting',
		'label'			=> esc_html__( 'Font Line Height', 'credio' ),
		'description'	=> esc_html__( 'Global H5 font line height (30px)', 'credio' ),
		'type'			=> 'text',
		'setting'	    => 'credio_h5_line_height'
	));

	$credio_customizer->add_setting (
       'credio_style_h5_color',
   	);
   	$credio_customizer->add_control(
       new WP_Customize_Color_Control(
           $credio_customizer,
           'credio_style_h5_color',
           array(
               'label'       => esc_html__('H5 Color','credio'),
               'description' => esc_html__('Select Color','credio'),
               'section'     => 'credio_typography_setting',
               'settings'    => 'credio_style_h5_color',
           )
       )
   	);
	//End
	
	//Start separator
	$credio_customizer->add_setting(
		'separator_ty_6', 
		array(
			'default'           => '',
			'sanitize_callback' => 'esc_html',
		)
	);
	$credio_customizer->add_control(
		new credio_Separator_Control(
			$credio_customizer, 
			'separator_ty_6', 
			array(
				'settings'		=> 'separator_ty_6',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End separator

	//Start
	$credio_customizer->add_setting(
		'ty_heading_6',
	);
	$credio_customizer->add_control(
		new credio_Heading_Control(
			$credio_customizer, 
			'ty_heading_6', 
			array(
				'label'			=> esc_html__( 'H6 Typography', 'credio' ),
				'settings'		=> 'ty_heading_6',
				'section'  		=> 'credio_typography_setting',
			)
		)
	);
	//End

	//Start
	$credio_customizer->add_setting( 'credio_h6_font');
	$credio_customizer->add_control( 'credio_h6_font', array(
			'type'        => 'select',
			'label'       => esc_html__( 'Font Family', 'credio' ),
			'description' => __('Select your heading font family', 'credio'),
			'section'     => 'credio_typography_setting',
			'choices'     => $font_choices
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h6_font_size',
		array(
			'transport'		=> 'refresh',
		)
		);
		$credio_customizer->add_control('credio_h6_font_size', array(
		'section'		=> 'credio_typography_setting',
		'label'			=> esc_html__( 'Font Size', 'credio' ),
		'description'	=> esc_html__( 'Global H6 font size (25px)', 'credio' ),
		'type'			=> 'text',
		'setting'	    => 'credio_h6_font_size'
	));
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h6_font_weight',
	);
	$credio_customizer->add_control( 'credio_h6_font_weight', array(
		'type'        => 'select',
		'label'       => esc_html__( 'Font Weight', 'credio' ),
		'description' => __( 'Select h6 font weight', 'credio' ),
		'section'     => 'credio_typography_setting',
		'choices'     => $font_weight
		)
	);
	//End

	//Start
	$credio_customizer->add_setting(
		'credio_h6_line_height',
		array(
			'transport'		=> 'refresh',
		)
	);
	$credio_customizer->add_control('credio_h6_line_height', array(
	'section'		=> 'credio_typography_setting',
	'label'			=> esc_html__( 'Font Line Height', 'credio' ),
	'description'	=> esc_html__( 'Global H6 font line height (30px)', 'credio' ),
	'type'			=> 'text',
	'setting'	    => 'credio_h6_line_height'
	));

	$credio_customizer->add_setting (
       'credio_style_h6_color',
   	);
   	$credio_customizer->add_control(
       	new WP_Customize_Color_Control(
           $credio_customizer,
           'credio_style_h6_color',
           	array(
               'label'       => esc_html__('H6 Color','credio'),
               'description' => esc_html__('Select Color','credio'),
               'section'     => 'credio_typography_setting',
               'settings'    => 'credio_style_h6_color',
           	)
       	)
   	);
	//End
}