<?php

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
/*********************
Author Profile
*******************/
		$wp_customize->add_section('poster_author_profile',
			array(
				'title'       => __( 'Author Profile', 'poster' ),
				'description'       => __( 'Author Profile Control on Posts and Archive Pages (Make Sure to fill all detail to show profile in Dashboard > Users > Profile)', 'poster' ),
				'capability'  => 'edit_theme_options',						
				'panel'			=> 'poster_theme_elements',
				'priority'    => apply_filters( 'poster_author_profile_priority', 10 ),
			));
			
		$wp_customize->add_setting(
				'poster_header_heading',
				array(
					'sanitize_callback' => 'wp_kses',
				));

			$wp_customize->add_control(
				new poster_Customizer_Heading_Control(
					$wp_customize,
					'poster_header_heading',
					array(
						'label'    => esc_html__( 'Choose Author Style', 'poster' ),
						'section'  => 'poster_author_profile',
						'priority' => 15,
					)));
			$wp_customize->add_setting(
			'poster_authorprofile_style',
			array(
				'default'           => 'styleone',
				'type'              => 'theme_mod',
				'sanitize_callback' => 'poster_customize_sanitize_select',
				'capability'        => 'edit_theme_options',
			)
		);

		$wp_customize->add_control(
			new poster_Image_Radio_Control(
				$wp_customize,
				'poster_authorprofile_style',
				array(
					'label'       => __( 'Profile Style', 'poster' ),
					'description' => __( 'Choose Author Profile Style. After Choosing & Publish You need to REFRESH Website', 'poster' ),
					'section'     => 'poster_author_profile',
					'choices'     => array(
						'styleone'  => get_template_directory_uri() . '/images/author/authorone.png',
						'styletwo' => get_template_directory_uri() . '/images/author/authortwo.png',
						'stylethree' => get_template_directory_uri() . '/images/author/authorthree.png',
						'stylefour' => get_template_directory_uri() . '/images/author/stylefour.png',
					),
					'priority'    => apply_filters( 'poster_authorprofile_style_priority', 20 ),
				)
			));
			
			$wp_customize->add_setting(
				'poster_author_headingset',
				array(
					'sanitize_callback' => 'wp_kses',
				));

			$wp_customize->add_control(
				new poster_Customizer_Heading_Control(
					$wp_customize,
					'poster_author_headingset',
					array(
						'label'    => esc_html__( 'Author Settings', 'poster' ),
						'section'  => 'poster_author_profile',
						'priority' => 25,
					)));
			
			$wp_customize->add_setting('poster_authorpro_on',	
			array(
				'default'			=> 'enable',
				'type'				=> 'theme_mod',
				'capability'		=> 'edit_theme_options',
				'sanitize_callback'	=> 'poster_customize_sanitize_select'
			));
		$wp_customize->add_control('poster_authorpro_on',
			 array (                             
				'type' => 'radio',
				'label' => __('Enable or Disable Profile','poster'),
				'settings'   => 'poster_authorpro_on',
				'section' => 'poster_author_profile',
				'choices' => array(
					'enable' => __('Enable','poster'),
					'disable' => __('Disable','poster'),
				 ),
				 'priority'    => apply_filters( 'poster_authorpro_on_priority', 30 ),
			 ));
			$wp_customize->add_setting('poster_authorpro_mail',	
			array(
				'default'			=> 'disable',
				'type'				=> 'theme_mod',
				'capability'		=> 'edit_theme_options',
				'sanitize_callback'	=> 'poster_customize_sanitize_select'
			));
		$wp_customize->add_control('poster_authorpro_mail',
			 array (                             
				'type' => 'radio',
				'label' => __('Show or Hide Author Email','poster'),
				'settings'   => 'poster_authorpro_mail',
				'section' => 'poster_author_profile',
				'choices' => array(
					'enable' => __('Show','poster'),
					'disable' => __('Hide','poster'),
				 ),
				'priority'    => apply_filters( 'poster_authorpro_mail_priority', 40 ), 
			 ));
			$wp_customize->add_setting('poster_authorpro_website',	
			array(
				'default'			=> 'disable',
				'type'				=> 'theme_mod',
				'capability'		=> 'edit_theme_options',
				'sanitize_callback'	=> 'poster_customize_sanitize_select'
			));
		$wp_customize->add_control('poster_authorpro_website',
			 array (                             
				'type' => 'radio',
				'label' => __('Show or Hide Author Website','poster'),
				'settings'   => 'poster_authorpro_website',
				'section' => 'poster_author_profile',
				'choices' => array(
					'enable' => __('Show','poster'),
					'disable' => __('Hide','poster'),
				 ),
				'priority'    => apply_filters( 'poster_authorpro_website_priority', 50 ),
			 ));
	