<?php
/**
 * Advance Fitness Gym Theme Customizer
 *
 * @package advance-fitness-gym
 */

/**
 * Add postMessage support for site title and description for the Theme Customizer.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */

function advance_fitness_gym_customize_register($wp_customize) {

	load_template( trailingslashit( get_template_directory() ) . '/inc/icon-changer.php' );

	//Selective Refresh
	$wp_customize->selective_refresh->add_partial( 'blogname', array(
		'selector' => '.logo .site-title a',
	 	'render_callback' => 'advance_fitness_gym_customize_partial_blogname',
	));

	$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
		'selector' => 'p.site-description',
		'render_callback' => 'advance_fitness_gym_customize_partial_blogdescription',
	));

	//add home page setting pannel
	$wp_customize->add_panel('advance_fitness_gym_panel_id', array(
		'priority'       => 12,
		'capability'     => 'edit_theme_options',
		'theme_supports' => '',
		'title'          => __('Theme Settings', 'advance-fitness-gym'),
		'description'    => __('Description of what this panel does.', 'advance-fitness-gym'),
	));

	//font array
	$advance_fitness_gym_font_array = array(
        '' => 'No Fonts',
        'Abril Fatface' => 'Abril Fatface',
        'Acme' => 'Acme',
        'Anton' => 'Anton',
        'Architects Daughter' => 'Architects Daughter',
        'Arimo' => 'Arimo',
        'Arsenal' => 'Arsenal', 
        'Arvo' => 'Arvo',
        'Alegreya' => 'Alegreya',
        'Alfa Slab One' => 'Alfa Slab One',
        'Averia Serif Libre' => 'Averia Serif Libre',
        'Bangers' => 'Bangers', 
        'Boogaloo' => 'Boogaloo',
        'Bad Script' => 'Bad Script',
        'Bitter' => 'Bitter',
        'Bree Serif' => 'Bree Serif',
        'BenchNine' => 'BenchNine', 
        'Cabin' => 'Cabin', 
        'Cardo' => 'Cardo',
        'Courgette' => 'Courgette',
        'Coming+Soon' => 'Coming+Soon',
        'Cherry Swash' => 'Cherry Swash',
        'Cormorant Garamond' => 'Cormorant Garamond',
        'Crimson Text' => 'Crimson Text',
        'Cuprum' => 'Cuprum', 
        'Cookie' => 'Cookie', 
        'Chewy' => 'Chewy', 
        'Days One' => 'Days One', 
        'Dosis' => 'Dosis',
        'Droid Sans' => 'Droid Sans',
        'Economica' => 'Economica',
        'Fredoka One' => 'Fredoka One',
        'Fjalla One' => 'Fjalla One',
        'Francois One' => 'Francois One',
        'Frank Ruhl Libre' => 'Frank Ruhl Libre',
        'Gloria Hallelujah' => 'Gloria Hallelujah',
        'Great Vibes' => 'Great Vibes',
        'Handlee' => 'Handlee', 
        'Hammersmith One' => 'Hammersmith One',
        'Inconsolata' => 'Inconsolata', 
        'Indie Flower' => 'Indie Flower', 
        'IM Fell English SC' => 'IM Fell English SC', 
        'Julius Sans One' => 'Julius Sans One',
        'Josefin Slab' => 'Josefin Slab', 
        'Josefin Sans' => 'Josefin Sans', 
        'Kanit' => 'Kanit', 
        'Lobster' => 'Lobster', 
        'Lato' => 'Lato',
        'Lora' => 'Lora', 
        'Libre Baskerville' =>'Libre Baskerville',
        'Lobster Two' => 'Lobster Two',
        'Merriweather' =>'Merriweather', 
        'Monda' => 'Monda',
        'Montserrat' => 'Montserrat',
        'Muli' => 'Muli', 
        'Marck Script' => 'Marck Script',
        'Noto Serif' => 'Noto Serif',
        'Noto Sans' => 'Noto Sans',
        'Open Sans' => 'Open Sans', 
        'Overpass' => 'Overpass',
        'Overpass Mono' => 'Overpass Mono',
        'Oxygen' => 'Oxygen', 
        'Orbitron' => 'Orbitron', 
        'Patua One' => 'Patua One', 
        'Pacifico' => 'Pacifico',
        'Padauk' => 'Padauk', 
        'Playball' => 'Playball',
        'Playfair Display' => 'Playfair Display', 
        'PT Sans' => 'PT Sans',
        'Philosopher' => 'Philosopher',
        'Permanent Marker' => 'Permanent Marker',
        'Poiret One' => 'Poiret One', 
        'Poppins' => 'Poppins',
        'Quicksand' => 'Quicksand', 
        'Quattrocento Sans' => 'Quattrocento Sans', 
        'Raleway' => 'Raleway', 
        'Rubik' => 'Rubik', 
        'Rokkitt' => 'Rokkitt', 
        'Roboto' => 'Roboto',
        'Roboto Condensed' => 'Roboto Condensed',
        'Russo One' => 'Russo One', 
        'Righteous' => 'Righteous', 
        'Slabo' => 'Slabo', 
        'Satisfy' => 'Satisfy',
        'Source Sans Pro' => 'Source Sans Pro', 
        'Shadows Into Light Two' =>'Shadows Into Light Two', 
        'Shadows Into Light' => 'Shadows Into Light', 
        'Sacramento' => 'Sacramento', 
        'Shrikhand' => 'Shrikhand', 
        'Tangerine' => 'Tangerine',
        'Unica One' => 'Unica One',
        'Ubuntu' => 'Ubuntu', 
        'VT323' => 'VT323', 
        'Varela Round' => 'Varela Round', 
        'Vampiro One' => 'Vampiro One',
        'Vollkorn' => 'Vollkorn',
        'Volkhov' => 'Volkhov', 
        'Yanone Kaffeesatz' => 'Yanone Kaffeesatz'
    );

	//Typography
	$wp_customize->add_section( 'advance_fitness_gym_typography', array(
    	'title'      => __( 'Typography', 'advance-fitness-gym' ),
		'priority'   => 30,
		'panel' => 'advance_fitness_gym_panel_id'
	) );

	$wp_customize->add_setting('advance_fitness_gym_typography_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_typography_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_typography'
	));
	
	// This is Paragraph Color picker setting
	$wp_customize->add_setting( 'advance_fitness_gym_paragraph_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_paragraph_color', array(
		'label' => __('Paragraph Color', 'advance-fitness-gym'),
		'section' => 'advance_fitness_gym_typography',
		'settings' => 'advance_fitness_gym_paragraph_color',
	)));

	//This is Paragraph FontFamily picker setting
	$wp_customize->add_setting('advance_fitness_gym_paragraph_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control(
	    'advance_fitness_gym_paragraph_font_family', array(
	    'section'  => 'advance_fitness_gym_typography',
	    'label'    => __( 'Paragraph Fonts','advance-fitness-gym'),
	    'type'     => 'select',
	    'choices'  => $advance_fitness_gym_font_array,
	));

	$wp_customize->add_setting('advance_fitness_gym_paragraph_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_paragraph_font_size',array(
		'label'	=> __('Paragraph Font Size','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_typography',
		'setting'	=> 'advance_fitness_gym_paragraph_font_size',
		'type'	=> 'text'
	));

	// This is "a" Tag Color picker setting
	$wp_customize->add_setting( 'advance_fitness_gym_atag_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_atag_color', array(
		'label' => __('"a" Tag Color', 'advance-fitness-gym'),
		'section' => 'advance_fitness_gym_typography',
		'settings' => 'advance_fitness_gym_atag_color',
	)));

	//This is "a" Tag FontFamily picker setting
	$wp_customize->add_setting('advance_fitness_gym_atag_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control(
	    'advance_fitness_gym_atag_font_family', array(
	    'section'  => 'advance_fitness_gym_typography',
	    'label'    => __( '"a" Tag Fonts','advance-fitness-gym'),
	    'type'     => 'select',
	    'choices'  => $advance_fitness_gym_font_array,
	));

	// This is "a" Tag Color picker setting
	$wp_customize->add_setting( 'advance_fitness_gym_li_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_li_color', array(
		'label' => __('"li" Tag Color', 'advance-fitness-gym'),
		'section' => 'advance_fitness_gym_typography',
		'settings' => 'advance_fitness_gym_li_color',
	)));

	//This is "li" Tag FontFamily picker setting
	$wp_customize->add_setting('advance_fitness_gym_li_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control(
	    'advance_fitness_gym_li_font_family', array(
	    'section'  => 'advance_fitness_gym_typography',
	    'label'    => __( '"li" Tag Fonts','advance-fitness-gym'),
	    'type'     => 'select',
	    'choices'  => $advance_fitness_gym_font_array,
	));

	// This is H1 Color picker setting
	$wp_customize->add_setting( 'advance_fitness_gym_h1_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_h1_color', array(
		'label' => __('H1 Color', 'advance-fitness-gym'),
		'section' => 'advance_fitness_gym_typography',
		'settings' => 'advance_fitness_gym_h1_color',
	)));

	//This is H1 FontFamily picker setting
	$wp_customize->add_setting('advance_fitness_gym_h1_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control(
	    'advance_fitness_gym_h1_font_family', array(
	    'section'  => 'advance_fitness_gym_typography',
	    'label'    => __( 'H1 Fonts','advance-fitness-gym'),
	    'type'     => 'select',
	    'choices'  => $advance_fitness_gym_font_array,
	));

	//This is H1 FontSize setting
	$wp_customize->add_setting('advance_fitness_gym_h1_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_h1_font_size',array(
		'label'	=> __('H1 Font Size','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_typography',
		'setting'	=> 'advance_fitness_gym_h1_font_size',
		'type'	=> 'text'
	));

	// This is H2 Color picker setting
	$wp_customize->add_setting( 'advance_fitness_gym_h2_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_h2_color', array(
		'label' => __('H2 Color', 'advance-fitness-gym'),
		'section' => 'advance_fitness_gym_typography',
		'settings' => 'advance_fitness_gym_h2_color',
	)));

	//This is H2 FontFamily picker setting
	$wp_customize->add_setting('advance_fitness_gym_h2_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control(
	    'advance_fitness_gym_h2_font_family', array(
	    'section'  => 'advance_fitness_gym_typography',
	    'label'    => __( 'H2 Fonts','advance-fitness-gym'),
	    'type'     => 'select',
	    'choices'  => $advance_fitness_gym_font_array,
	));

	//This is H2 FontSize setting
	$wp_customize->add_setting('advance_fitness_gym_h2_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_h2_font_size',array(
		'label'	=> __('H2 Font Size','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_typography',
		'setting'	=> 'advance_fitness_gym_h2_font_size',
		'type'	=> 'text'
	));

	// This is H3 Color picker setting
	$wp_customize->add_setting( 'advance_fitness_gym_h3_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_h3_color', array(
		'label' => __('H3 Color', 'advance-fitness-gym'),
		'section' => 'advance_fitness_gym_typography',
		'settings' => 'advance_fitness_gym_h3_color',
	)));

	//This is H3 FontFamily picker setting
	$wp_customize->add_setting('advance_fitness_gym_h3_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control(
	    'advance_fitness_gym_h3_font_family', array(
	    'section'  => 'advance_fitness_gym_typography',
	    'label'    => __( 'H3 Fonts','advance-fitness-gym'),
	    'type'     => 'select',
	    'choices'  => $advance_fitness_gym_font_array,
	));

	//This is H3 FontSize setting
	$wp_customize->add_setting('advance_fitness_gym_h3_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_h3_font_size',array(
		'label'	=> __('H3 Font Size','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_typography',
		'setting'	=> 'advance_fitness_gym_h3_font_size',
		'type'	=> 'text'
	));

	// This is H4 Color picker setting
	$wp_customize->add_setting( 'advance_fitness_gym_h4_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_h4_color', array(
		'label' => __('H4 Color', 'advance-fitness-gym'),
		'section' => 'advance_fitness_gym_typography',
		'settings' => 'advance_fitness_gym_h4_color',
	)));

	//This is H4 FontFamily picker setting
	$wp_customize->add_setting('advance_fitness_gym_h4_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control(
	    'advance_fitness_gym_h4_font_family', array(
	    'section'  => 'advance_fitness_gym_typography',
	    'label'    => __( 'H4 Fonts','advance-fitness-gym'),
	    'type'     => 'select',
	    'choices'  => $advance_fitness_gym_font_array,
	));

	//This is H4 FontSize setting
	$wp_customize->add_setting('advance_fitness_gym_h4_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_h4_font_size',array(
		'label'	=> __('H4 Font Size','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_typography',
		'setting'	=> 'advance_fitness_gym_h4_font_size',
		'type'	=> 'text'
	));

	// This is H5 Color picker setting
	$wp_customize->add_setting( 'advance_fitness_gym_h5_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_h5_color', array(
		'label' => __('H5 Color', 'advance-fitness-gym'),
		'section' => 'advance_fitness_gym_typography',
		'settings' => 'advance_fitness_gym_h5_color',
	)));

	//This is H5 FontFamily picker setting
	$wp_customize->add_setting('advance_fitness_gym_h5_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control(
	    'advance_fitness_gym_h5_font_family', array(
	    'section'  => 'advance_fitness_gym_typography',
	    'label'    => __( 'H5 Fonts','advance-fitness-gym'),
	    'type'     => 'select',
	    'choices'  => $advance_fitness_gym_font_array,
	));

	//This is H5 FontSize setting
	$wp_customize->add_setting('advance_fitness_gym_h5_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_h5_font_size',array(
		'label'	=> __('H5 Font Size','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_typography',
		'setting'	=> 'advance_fitness_gym_h5_font_size',
		'type'	=> 'text'
	));

	// This is H6 Color picker setting
	$wp_customize->add_setting( 'advance_fitness_gym_h6_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_h6_color', array(
		'label' => __('H6 Color', 'advance-fitness-gym'),
		'section' => 'advance_fitness_gym_typography',
		'settings' => 'advance_fitness_gym_h6_color',
	)));

	//This is H6 FontFamily picker setting
	$wp_customize->add_setting('advance_fitness_gym_h6_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control(
	    'advance_fitness_gym_h6_font_family', array(
	    'section'  => 'advance_fitness_gym_typography',
	    'label'    => __( 'H6 Fonts','advance-fitness-gym'),
	    'type'     => 'select',
	    'choices'  => $advance_fitness_gym_font_array,
	));

	//This is H6 FontSize setting
	$wp_customize->add_setting('advance_fitness_gym_h6_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_h6_font_size',array(
		'label'	=> __('H6 Font Size','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_typography',
		'setting'	=> 'advance_fitness_gym_h6_font_size',
		'type'	=> 'text'
	));

	$wp_customize->add_setting('advance_fitness_gym_background_skin_mode',array(
        'default' => 'Transpert Background',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_background_skin_mode',array(
        'type' => 'select',
        'label' => __('Background Type','advance-fitness-gym'),
        'section' => 'background_image',
        'choices' => array(
            'With Background' => __('With Background','advance-fitness-gym'),
            'Transpert Background' => __('Transparent Background','advance-fitness-gym'),
        ),
	) );

	// woocommerce section
	$wp_customize->add_section('advance_fitness_gym_woocommerce_settings', array(
		'title'    => __('WooCommerce Settings', 'advance-fitness-gym'),
		'priority' => null,
		'panel'    => 'woocommerce',
	));

    $wp_customize->add_setting( 'advance_fitness_gym_shop_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ) );
    $wp_customize->add_control('advance_fitness_gym_shop_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Show / Hide Shop Page Sidebar','advance-fitness-gym'),
		'section' => 'advance_fitness_gym_woocommerce_settings'
    ));

    // shop page sidebar alignment
    $wp_customize->add_setting('advance_fitness_gym_shop_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices',
	));
	$wp_customize->add_control('advance_fitness_gym_shop_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Shop Page layout', 'advance-fitness-gym'),
		'section'        => 'advance_fitness_gym_woocommerce_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'advance-fitness-gym'),
			'Right Sidebar' => __('Right Sidebar', 'advance-fitness-gym'),
		),
	));

	$wp_customize->add_setting( 'advance_fitness_gym_wocommerce_single_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ) );
    $wp_customize->add_control('advance_fitness_gym_wocommerce_single_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Show / Hide Single Product Page Sidebar','advance-fitness-gym'),
		'section' => 'advance_fitness_gym_woocommerce_settings'
    ));
    
    // single product page sidebar alignment
    $wp_customize->add_setting('advance_fitness_gym_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices',
	));
	$wp_customize->add_control('advance_fitness_gym_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single product Page layout', 'advance-fitness-gym'),
		'section'        => 'advance_fitness_gym_woocommerce_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'advance-fitness-gym'),
			'Right Sidebar' => __('Right Sidebar', 'advance-fitness-gym'),
		),
	));

	$wp_customize->add_setting('advance_fitness_gym_show_related_products',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_show_related_products',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Related Product','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_woocommerce_settings',
    ));

	$wp_customize->add_setting('advance_fitness_gym_show_wooproducts_border',array(
       'default' => false,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_show_wooproducts_border',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Product Border','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_woocommerce_settings',
    ));

    $wp_customize->add_setting( 'advance_fitness_gym_wooproducts_per_columns' , array(
		'default'           => 4,
		'transport'         => 'refresh',
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices',
	) );
	$wp_customize->add_control( 'advance_fitness_gym_wooproducts_per_columns', array(
		'label'    => __( 'Display Product Per Columns', 'advance-fitness-gym' ),
		'section'  => 'advance_fitness_gym_woocommerce_settings',
		'type'     => 'select',
		'choices'  => array(
			'2' => '2',
			'3' => '3',
			'4' => '4',
			'5' => '5',
		),
	)  );

	$wp_customize->add_setting('advance_fitness_gym_wooproducts_per_page',array(
		'default'	=> 9,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));	
	$wp_customize->add_control('advance_fitness_gym_wooproducts_per_page',array(
		'label'	=> __('Display Product Per Page','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_woocommerce_settings',
		'type'		=> 'number'
	));

	$wp_customize->add_setting( 'advance_fitness_gym_top_bottom_wooproducts_padding',array(
		'default' => 0,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control( 'advance_fitness_gym_top_bottom_wooproducts_padding',	array(
		'label' => esc_html__( 'Top Bottom Product Padding','advance-fitness-gym' ),
		'section' => 'advance_fitness_gym_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'number'
	));

	$wp_customize->add_setting( 'advance_fitness_gym_left_right_wooproducts_padding',array(
		'default' => 0,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control( 'advance_fitness_gym_left_right_wooproducts_padding',	array(
		'label' => esc_html__( 'Right Left Product Padding','advance-fitness-gym' ),
		'section' => 'advance_fitness_gym_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'number'
	));

	$wp_customize->add_setting( 'advance_fitness_gym_wooproducts_border_radius',array(
		'default' => 0,
		'sanitize_callback'    => 'advance_fitness_gym_sanitize_number_range',
	));
	$wp_customize->add_control('advance_fitness_gym_wooproducts_border_radius',array(
		'label' => esc_html__( 'Product Border Radius','advance-fitness-gym' ),
		'section' => 'advance_fitness_gym_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'range'
	));

	$wp_customize->add_setting( 'advance_fitness_gym_wooproducts_box_shadow',array(
		'default' => 0,
		'sanitize_callback'    => 'advance_fitness_gym_sanitize_number_range',
	));
	$wp_customize->add_control('advance_fitness_gym_wooproducts_box_shadow',array(
		'label' => esc_html__( 'Product Box Shadow','advance-fitness-gym' ),
		'section' => 'advance_fitness_gym_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'range'
	));

	$wp_customize->add_setting('advance_fitness_gym_products_navigation',array(
       'default' => 'Yes',
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_choices'
    ));
    $wp_customize->add_control('advance_fitness_gym_products_navigation',array(
       'type' => 'radio',
       'label' => __('Woocommerce Products Navigation','advance-fitness-gym'),
       'choices' => array(
            'Yes' => __('Yes','advance-fitness-gym'),
            'No' => __('No','advance-fitness-gym'),
        ),
       'section' => 'advance_fitness_gym_woocommerce_settings',
    ));

	$wp_customize->add_setting( 'advance_fitness_gym_top_bottom_product_button_padding',array(
		'default' => 10,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_top_bottom_product_button_padding',	array(
		'label' => esc_html__( 'Product Button Top Bottom Padding','advance-fitness-gym' ),
		'section' => 'advance_fitness_gym_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'number',

	));

	$wp_customize->add_setting( 'advance_fitness_gym_left_right_product_button_padding',array(
		'default' => 16,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_left_right_product_button_padding',array(
		'label' => esc_html__( 'Product Button Right Left Padding','advance-fitness-gym' ),
		'section' => 'advance_fitness_gym_woocommerce_settings',
		'type'		=> 'number',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'advance_fitness_gym_product_button_border_radius',array(
		'default' => 0,
		'sanitize_callback'    => 'advance_fitness_gym_sanitize_number_range',
	));
	$wp_customize->add_control('advance_fitness_gym_product_button_border_radius',array(
		'label' => esc_html__( 'Product Button Border Radius','advance-fitness-gym' ),
		'section' => 'advance_fitness_gym_woocommerce_settings',
		'type'		=> 'range',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
	),));

	$wp_customize->add_setting('advance_fitness_gym_align_product_sale',array(
        'default' => 'Right',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_align_product_sale',array(
        'type' => 'radio',
        'label' => __('Product Sale Button Alignment','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_woocommerce_settings',
        'choices' => array(
            'Right' => __('Right','advance-fitness-gym'),
            'Left' => __('Left','advance-fitness-gym'),
        ),
	) );

	$wp_customize->add_setting( 'advance_fitness_gym_border_radius_product_sale',array(
		'default' => 0,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_border_radius_product_sale', array(
        'label'  => __('Product Sale Button Border Radius','advance-fitness-gym'),
        'section'  => 'advance_fitness_gym_woocommerce_settings',
        'type'        => 'number',
        'input_attrs' => array(
        	'step'=> 1,
            'min' => 0,
            'max' => 50,
        )
    ) );

	$wp_customize->add_setting('advance_fitness_gym_product_sale_font_size',array(
		'default'=> 14,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float'
	));
	$wp_customize->add_control('advance_fitness_gym_product_sale_font_size',array(
		'label'	=> __('Product Sale Button Font Size','advance-fitness-gym'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'advance_fitness_gym_woocommerce_settings',
		'type'=> 'number'
	));

	// sale button padding
	$wp_customize->add_setting( 'advance_fitness_gym_sale_padding_top',array(
		'default' => 0,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control( 'advance_fitness_gym_sale_padding_top',	array(
		'label' => esc_html__( ' Product Sale Top Bottom Padding','advance-fitness-gym' ),
		'section' => 'advance_fitness_gym_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'number'
	));

	$wp_customize->add_setting( 'advance_fitness_gym_sale_padding_left',array(
		'default' => 0,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control( 'advance_fitness_gym_sale_padding_left',	array(
		'label' => esc_html__( ' Product Sale Left Right Padding','advance-fitness-gym' ),
		'section' => 'advance_fitness_gym_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'number'
	));

	// Add the Theme Color Option section.
	$wp_customize->add_section( 'advance_fitness_gym_theme_color_option', array( 
		'panel' => 'advance_fitness_gym_panel_id', 
		'title' => esc_html__( 'Theme Color Option', 'advance-fitness-gym' ) 
	) );

	$wp_customize->add_setting('advance_fitness_gym_theme_color_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_theme_color_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_theme_color_option'
	));

  	$wp_customize->add_setting( 'advance_fitness_gym_theme_color', array(
	    'default' => '#fe5e24',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_theme_color', array(
  		'label' => 'Color Option',
	    'description' => __('One can change complete theme color on just one click.', 'advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_theme_color_option',
	    'settings' => 'advance_fitness_gym_theme_color',
  	)));

	//Topbar section
	$wp_customize->add_section('advance_fitness_gym_topbar',array(
		'title'	=> __('Topbar Section','advance-fitness-gym'),
		'description'	=> __('Add Header Content here','advance-fitness-gym'),
		'priority'	=> null,
		'panel' => 'advance_fitness_gym_panel_id',
	));

	$wp_customize->add_setting('advance_fitness_gym_topbar_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_topbar_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_topbar'
	));

	//Show /Hide Topbar
	$wp_customize->add_setting( 'advance_fitness_gym_display_topbar',array(
		'default' => true,
      	'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ) );
    $wp_customize->add_control('advance_fitness_gym_display_topbar',array(
    	'type' => 'checkbox',
        'label' => __( 'Show / Hide Topbar','advance-fitness-gym' ),
        'section' => 'advance_fitness_gym_topbar'
    ));

    $wp_customize->add_setting('advance_fitness_gym_topbar_top_bottom_spacing',array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_topbar_top_bottom_spacing',array(
		'label'	=> __('Top Bottom Topbar Content Space','advance-fitness-gym'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'advance_fitness_gym_topbar',
		'type'=> 'number'
	));

    //Sticky Header
	$wp_customize->add_setting( 'advance_fitness_gym_sticky_header',array(
		'default' => false,
      	'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ) );
    $wp_customize->add_control('advance_fitness_gym_sticky_header',array(
    	'type' => 'checkbox',
        'label' => __( 'Sticky Header','advance-fitness-gym' ),
        'section' => 'advance_fitness_gym_topbar'
    ));

    $wp_customize->add_setting( 'advance_fitness_gym_sticky_header_padding_settings', array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	) );
	$wp_customize->add_control( 'advance_fitness_gym_sticky_header_padding_settings', array(
		'label'       => esc_html__( 'Sticky Header Padding','advance-fitness-gym' ),
		'section'     => 'advance_fitness_gym_topbar',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting('advance_fitness_gym_phone_icon',array(
		'default'	=> 'fa fa-phone',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_phone_icon',array(
		'label'	=> __('Phone Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_topbar',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_contact',array(
		'default'	=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_phone_number'
	));	
	$wp_customize->add_control('advance_fitness_gym_contact',array(
		'label'	=> __('Add Phone Number','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_topbar',
		'setting'	=> 'advance_fitness_gym_contact',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('advance_fitness_gym_email_icon',array(
		'default'	=> 'fa fa-envelope',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_email_icon',array(
		'label'	=> __('Email Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_topbar',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_email',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_email'
	));	
	$wp_customize->add_control('advance_fitness_gym_email',array(
		'label'	=> __('Add Email','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_topbar',
		'setting'	=> 'advance_fitness_gym_email',
		'type'		=> 'text'
	));

	// navigation menu 
	$wp_customize->add_section( 'advance_fitness_gym_menu_settings' , array(
    	'title'      => __( 'Menus Settings', 'advance-fitness-gym' ),
		'priority'   => null,
		'panel' => 'advance_fitness_gym_panel_id'
	) );

	$wp_customize->add_setting('advance_fitness_gym_menu_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_menu_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_menu_settings'
	));

	$wp_customize->add_setting('advance_fitness_gym_text_tranform_menu',array(
		'default' => 'Uppercase',
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
 	));
 	$wp_customize->add_control('advance_fitness_gym_text_tranform_menu',array(
		'type' => 'radio',
		'label' => __('Menu Text Transform','advance-fitness-gym'),
		'section' => 'advance_fitness_gym_menu_settings',
		'choices' => array(
		   'Uppercase' => __('Uppercase','advance-fitness-gym'),
		   'Lowercase' => __('Lowercase','advance-fitness-gym'),
		   'Capitalize' => __('Capitalize','advance-fitness-gym'),
		),
	) );

	$wp_customize->add_setting('advance_fitness_gym_menu_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_menu_font_size',array(
		'label'	=> __('Menus Font Size','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_menu_settings',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'type'=> 'number'
	));

	$wp_customize->add_setting('advance_fitness_gym_menu_weight',array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_choices',
	));
	$wp_customize->add_control('advance_fitness_gym_menu_weight',array(
		'label'	=> __('Menus Font Weight','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_menu_settings',
		'type' => 'select',
		'choices' => array(
            '100' => __('100','advance-fitness-gym'),
            '200' => __('200','advance-fitness-gym'),
            '300' => __('300','advance-fitness-gym'),
            '400' => __('400','advance-fitness-gym'),
            '500' => __('500','advance-fitness-gym'),
            '600' => __('600','advance-fitness-gym'),
            '700' => __('700','advance-fitness-gym'),
            '800' => __('800','advance-fitness-gym'),
            '900' => __('900','advance-fitness-gym'),
        ),
	));

	$wp_customize->add_setting('advance_fitness_gym_menu_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_menu_padding',array(
		'label'	=> __('Menus Padding','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_menu_settings',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'type'=> 'number'
	));

	$wp_customize->add_setting('advance_fitness_gym_menus_item_style',array(
		'default' => '',
		'transport' => 'refresh',
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_menus_item_style',array(
		'type' => 'select',
		'section' => 'advance_fitness_gym_menu_settings',
		'label' => __('Menu Hover Effect','advance-fitness-gym'),
		'choices' => array(
			'None' => __('None','advance-fitness-gym'),
			'Zoom In' => __('Zoom In','advance-fitness-gym'),
		),
	) );

	$wp_customize->add_setting( 'advance_fitness_gym_menu_color_settings', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_menu_color_settings', array(
  		'label' => __('Menu Color', 'advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_menu_settings',
	    'settings' => 'advance_fitness_gym_menu_color_settings',
  	)));

  	$wp_customize->add_setting( 'advance_fitness_gym_menu_hover_color_settings', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_menu_hover_color_settings', array(
  		'label' => __('Menu Hover Color', 'advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_menu_settings',
	    'settings' => 'advance_fitness_gym_menu_hover_color_settings',
  	)));
  
  	$wp_customize->add_setting( 'advance_fitness_gym_submenu_color_settings', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_submenu_color_settings', array(
  		'label' => __('Sub-menu Color', 'advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_menu_settings',
	    'settings' => 'advance_fitness_gym_submenu_color_settings',
  	)));

  	$wp_customize->add_setting( 'advance_fitness_gym_submenu_hover_color_settings', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_submenu_hover_color_settings', array(
  		'label' => __('Sub-menu Hover Color', 'advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_menu_settings',
	    'settings' => 'advance_fitness_gym_submenu_hover_color_settings',
  	)));

	//Social Icons(topbar)
	$wp_customize->add_section('advance_fitness_gym_topbar_header',array(
		'title'	=> __('Social Icon Section','advance-fitness-gym'),
		'description'	=> __('Add Social Link here','advance-fitness-gym'),
		'priority'	=> null,
		'panel' => 'advance_fitness_gym_panel_id',
	));

	$wp_customize->add_setting('advance_fitness_gym_topbar_header_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_topbar_header_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_topbar_header'
	));

	$wp_customize->add_setting('advance_fitness_gym_facebook_icon',array(
		'default'	=> 'fab fa-facebook-f',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_facebook_icon',array(
		'label'	=> __('Facebook Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_topbar_header',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_cont_facebook',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('advance_fitness_gym_cont_facebook',array(
		'label'	=> __('Add Facebook link','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_topbar_header',
		'setting'	=> 'advance_fitness_gym_cont_facebook',
		'type'		=> 'url'
	));

	$wp_customize->add_setting('advance_fitness_gym_twitter_icon',array(
		'default'	=> 'fab fa-twitter',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_twitter_icon',array(
		'label'	=> __('Twitter Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_topbar_header',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_cont_twitter',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('advance_fitness_gym_cont_twitter',array(
		'label'	=> __('Add Twitter link','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_topbar_header',
		'setting'	=> 'advance_fitness_gym_cont_twitter',
		'type'		=> 'url'
	));

	$wp_customize->add_setting('advance_fitness_gym_instagram_icon',array(
		'default'	=> 'fab fa-instagram',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_instagram_icon',array(
		'label'	=> __('Instagram Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_topbar_header',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_instagram',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('advance_fitness_gym_instagram',array(
		'label'	=> __('Add Instagram link','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_topbar_header',
		'setting'	=> 'advance_fitness_gym_instagram',
		'type'		=> 'url'
	));

	$wp_customize->add_setting('advance_fitness_gym_linkedin_icon',array(
		'default'	=> 'fab fa-linkedin-in',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_linkedin_icon',array(
		'label'	=> __('Linkedin Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_topbar_header',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_linkedin',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('advance_fitness_gym_linkedin',array(
		'label'	=> __('Add Linkedin link','advance-fitness-gym'),
		'section'	=> 'advance_fitness_gym_topbar_header',
		'setting'	=> 'advance_fitness_gym_linkedin',
		'type'		=> 'url'
	));
	
	//Slider
	$wp_customize->add_section( 'advance_fitness_gym_slider' , array(
    	'title'      => __( 'Slider Settings', 'advance-fitness-gym' ),
		'priority'   => null,
		'panel' => 'advance_fitness_gym_panel_id'
	) );

	$wp_customize->add_setting('advance_fitness_gym_slider_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_slider_premium_info',array(
		'type'=> 'hidden',
		'label'	=> __('Premium Features','advance-fitness-gym'),
		'description' => "<ul><li>". esc_html__('You can change how many slides there are.','advance-fitness-gym') ."</li><li>". esc_html__('You can change the font family and the colours of headings and subheadings.','advance-fitness-gym') ."</li><li>". esc_html__('And so on...','advance-fitness-gym') ."</li></ul><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_slider'
	));

	$wp_customize->add_setting('advance_fitness_gym_slider_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_slider_hide',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide slider','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_slider',
    ));

    $wp_customize->add_setting('advance_fitness_gym_slider_title_Show_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_slider_title_Show_hide',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Slider Title','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_slider'
    ));

    $wp_customize->add_setting('advance_fitness_gym_slider_content_Show_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_slider_content_Show_hide',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Slider Content','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_slider'
    ));

	for ( $count = 1; $count <= 4; $count++ ) {

		$wp_customize->add_setting( 'advance_fitness_gym_slider_page' . $count, array(
			'default'           => '',
			'sanitize_callback' => 'advance_fitness_gym_sanitize_dropdown_pages'
		) );
		$wp_customize->add_control( 'advance_fitness_gym_slider_page' . $count, array(
			'label'    => __( 'Select Slide Image Page', 'advance-fitness-gym' ),
			'section'  => 'advance_fitness_gym_slider',
			'type'     => 'dropdown-pages'
		) );

	}

	$wp_customize->add_setting('advance_fitness_gym_slider_overlay',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_slider_overlay',array(
       'type' => 'checkbox',
       'label' => __('Home Page Slider Overlay','advance-fitness-gym'),
		'description'    => __('This option will add colors over the slider.','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_slider'
    ));

    $wp_customize->add_setting('advance_fitness_gym_slider_image_overlay_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'advance_fitness_gym_slider_image_overlay_color', array(
		'label'    => __('Home Page Slider Overlay Color', 'advance-fitness-gym'),
		'section'  => 'advance_fitness_gym_slider',
		'description'    => __('It will add the color overlay of the slider. To make it transparent, use the below option.','advance-fitness-gym'),
		'settings' => 'advance_fitness_gym_slider_image_overlay_color',
	)));

	//content layout
    $wp_customize->add_setting('advance_fitness_gym_slider_content_alignment',array(
    'default' => 'Center',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_slider_content_alignment',array(
        'type' => 'radio',
        'label' => __('Slider Content Alignment','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_slider',
        'choices' => array(
            'Center' => __('Center','advance-fitness-gym'),
            'Left' => __('Left','advance-fitness-gym'),
            'Right' => __('Right','advance-fitness-gym'),
        ),
	) );

    //Slider excerpt
	$wp_customize->add_setting( 'advance_fitness_gym_slider_excerpt_length', array(
		'default'              => 20,
		'sanitize_callback'	=> 'absint',
	) );
	$wp_customize->add_control( 'advance_fitness_gym_slider_excerpt_length', array(
		'label'       => esc_html__( 'Slider Excerpt length','advance-fitness-gym' ),
		'section'     => 'advance_fitness_gym_slider',
		'type'        => 'number',
		'settings'    => 'advance_fitness_gym_slider_excerpt_length',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	//Opacity
	$wp_customize->add_setting('advance_fitness_gym_slider_image_opacity',array(
      'default'              => 0.7,
      'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control( 'advance_fitness_gym_slider_image_opacity', array(
	'label'       => esc_html__( 'Slider Image Opacity','advance-fitness-gym' ),
	'section'     => 'advance_fitness_gym_slider',
	'type'        => 'select',
	'settings'    => 'advance_fitness_gym_slider_image_opacity',
	'choices' => array(
		'0' =>  esc_attr__('0','advance-fitness-gym'),
		'0.1' =>  esc_attr__('0.1','advance-fitness-gym'),
		'0.2' =>  esc_attr__('0.2','advance-fitness-gym'),
		'0.3' =>  esc_attr__('0.3','advance-fitness-gym'),
		'0.4' =>  esc_attr__('0.4','advance-fitness-gym'),
		'0.5' =>  esc_attr__('0.5','advance-fitness-gym'),
		'0.6' =>  esc_attr__('0.6','advance-fitness-gym'),
		'0.7' =>  esc_attr__('0.7','advance-fitness-gym'),
		'0.8' =>  esc_attr__('0.8','advance-fitness-gym'),
		'0.9' =>  esc_attr__('0.9','advance-fitness-gym')
	),
	));

	$wp_customize->add_setting( 'advance_fitness_gym_slider_speed_option',array(
		'default' => 3000,
		'sanitize_callback'    => 'advance_fitness_gym_sanitize_number_range',
	));
	$wp_customize->add_control( 'advance_fitness_gym_slider_speed_option',array(
		'label' => esc_html__( 'Slider Speed Option','advance-fitness-gym' ),
		'section' => 'advance_fitness_gym_slider',
		'type'        => 'range',
		'input_attrs' => array(
			'min' => 1000,
			'max' => 5000,
			'step' => 500,
		),
	));

	$wp_customize->add_setting('advance_fitness_gym_slider_image_height',array(
		'default'=> __('550','advance-fitness-gym'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_slider_image_height',array(
		'label'	=> __('Slider Image Height','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_slider',
		'type'=> 'text'
	));

	$wp_customize->add_setting('advance_fitness_gym_top_bottom_slider_content_space',array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_top_bottom_slider_content_space',array(
		'label'	=> __('Top Bottom Slider Content Space','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_slider',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'type'=> 'number'
	));

	$wp_customize->add_setting('advance_fitness_gym_left_right_slider_content_space',array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_left_right_slider_content_space',array(
		'label'	=> __('Left Right Slider Content Space','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_slider',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'type'=> 'number'
	));

	//Products Service
	$wp_customize->add_section( 'advance_fitness_gym_services_section' , array(
    	'title'      => __( 'Services', 'advance-fitness-gym' ),
		'priority'   => null,
		'panel' => 'advance_fitness_gym_panel_id'
	) );

	$wp_customize->add_setting('advance_fitness_gym_slider_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_slider_premium_info',array(
		'type'=> 'hidden',
		'label'	=> __('Premium Features','advance-fitness-gym'),
		'description' => "<ul><li>". esc_html__('For more settings and features, please explore our premium theme.','advance-fitness-gym') ."</li></ul><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_slider'
	));

	$categories = get_categories();
	$cat_post = array();
	$cat_post[]= 'select';
	$i = 0;	
	foreach($categories as $category){
		if($i==0){
			$default = $category->slug;
			$i++;
		}
		$cat_post[$category->slug] = $category->name;
	}

	$wp_customize->add_setting('advance_fitness_gym_product_service',array(
		'default'	=> 'select',
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_product_service',array(
		'type'    => 'select',
		'choices' => $cat_post,
		'label' => __('Select Category to display Services','advance-fitness-gym'),
		'section' => 'advance_fitness_gym_services_section',
	));

	//welcome More
	$wp_customize->add_section('advance_fitness_gym_post',array(
		'title'	=> __('Welcome Section','advance-fitness-gym'),
		'description'	=> __('Add Welcome sections below.','advance-fitness-gym'),
		'panel' => 'advance_fitness_gym_panel_id',
	));

	$wp_customize->add_setting('advance_fitness_gym_category_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_category_premium_info',array(
		'type'=> 'hidden',
		'label'	=> __('Premium Features','advance-fitness-gym'),
		'description' => "<ul><li>". esc_html__('Includes settings to set section title.','advance-fitness-gym') ."</li><li>". esc_html__('Contains settings for the background colour.','advance-fitness-gym') ."</li><li>". esc_html__('Contains options for background images.','advance-fitness-gym') ."</li><li>". esc_html__('You can change the font family and colours of heading.','advance-fitness-gym') ."</li><li>". esc_html__('And so on...','advance-fitness-gym') ."</li></ul><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_post'
	));

	$args = array('numberposts' => -1);
	$post_list = get_posts($args);
	$i = 0;
	$pst[]='Select';
	foreach($post_list as $post){
		$pst[$post->ID] = $post->post_title;
	}
	$wp_customize->add_setting('advance_fitness_gym_single_post',array(
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices',
	));	
	$wp_customize->add_control('advance_fitness_gym_single_post',array(
		'type'    => 'select',
		'choices' => $pst,
		'label' => __('Select post','advance-fitness-gym'),
		'section' => 'advance_fitness_gym_post',
	));

	$wp_customize->add_setting( 'advance_fitness_gym_category_button_text', array(
		'default'   => __('Read More','advance-fitness-gym' ),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'advance_fitness_gym_category_button_text', array(
		'label'    => __( 'Post Button text','advance-fitness-gym' ),
		'section'  => 'advance_fitness_gym_post',
		'type'     => 'text',
		'settings' => 'advance_fitness_gym_category_button_text'
	) );

	//Blog Post
	$wp_customize->add_section('advance_fitness_gym_blog_post',array(
		'title'	=> __('Blog Post Settings','advance-fitness-gym'),
		'panel' => 'advance_fitness_gym_panel_id',
	));	

	$wp_customize->add_setting('advance_fitness_gym_blog_post_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_blog_post_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_blog_post'
	));

	$wp_customize->selective_refresh->add_partial( 'advance_fitness_gym_date_hide', array(
		'selector' => '.our-services .page-box',
		'render_callback' => 'advance_fitness_gym_customize_partial_advance_fitness_gym_date_hide',
	));

	$wp_customize->add_setting('advance_fitness_gym_date_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_date_hide',array(
       'type' => 'checkbox',
       'label' => __('Post Date','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_blog_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_date_icon',array(
		'default'	=> 'fa fa-calendar',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_date_icon',array(
		'label'	=> __('Post Date Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_blog_post',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('advance_fitness_gym_author_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_author_hide',array(
       'type' => 'checkbox',
       'label' => __('Author','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_blog_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_author_icon',array(
		'label'	=> __('Author Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_blog_post',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('advance_fitness_gym_comment_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_comment_hide',array(
       'type' => 'checkbox',
       'label' => __('Comments','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_blog_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_comment_icon',array(
		'default'	=> 'fas fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_comment_icon',array(
		'label'	=> __('Comments Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_blog_post',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('advance_fitness_gym_time_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_time_hide',array(
       'type' => 'checkbox',
       'label' => __('Time','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_blog_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_time_icon',array(
		'label'	=> __('Time Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_blog_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_show_post_category',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_show_post_category',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Category','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_blog_post'
    ));

    $wp_customize->add_setting('advance_fitness_gym_show_featured_image_post',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_show_featured_image_post',array(
       'type' => 'checkbox',
       'label' => __('Blog Post Image','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_blog_post'
    ));

    $wp_customize->add_setting( 'advance_fitness_gym_featured_img_border_radius', array(
		'default'=> 0,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	) );
	$wp_customize->add_control( 'advance_fitness_gym_featured_img_border_radius', array(
		'label'       => esc_html__( 'Blog Post Image Border Radius','advance-fitness-gym' ),
		'section'     => 'advance_fitness_gym_blog_post',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 100,
		),
	) );

	$wp_customize->add_setting( 'advance_fitness_gym_featured_img_box_shadow',array(
		'default' => 0,
		'sanitize_callback'    => 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_featured_img_box_shadow',array(
		'label' => esc_html__( 'Blog Post Image Shadow','advance-fitness-gym' ),
		'section' => 'advance_fitness_gym_blog_post',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type' => 'number'
	));

	// Image Dimension Option
	$wp_customize->add_setting('advance_fitness_gym_blog_image_dimension', array(
		'default'           => 'default',
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_blog_image_dimension', array(
		'type'    => 'radio',
		'label'   => __('Blog Post Featured Image Dimension', 'advance-fitness-gym'),
		'section' => 'advance_fitness_gym_blog_post',
		'choices' => array(
			'default' => __('Default', 'advance-fitness-gym'),
			'custom'  => __('Custom Image Size', 'advance-fitness-gym'),
		),
	));

	// Custom Width 
	$wp_customize->add_setting('advance_fitness_gym_feature_image_custom_width', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_feature_image_custom_width', array(
		'label'       => __('Featured Image Custom Width', 'advance-fitness-gym'),
		'section'     => 'advance_fitness_gym_blog_post',
		'description' => __('Measurement is in pixel.', 'advance-fitness-gym'),
		'input_attrs' => array(
			'min'  => 0,
			'max'  => 800,
			'step' => 1,
		),
		'type'             => 'number',
		'active_callback'  => 'advance_fitness_gym_blog_image_dimension'
	));

	// Custom Height 
	$wp_customize->add_setting('advance_fitness_gym_feature_image_custom_height', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_feature_image_custom_height', array(
		'label'       => __('Featured Image Custom Height', 'advance-fitness-gym'),
		'section'     => 'advance_fitness_gym_blog_post',
		'description' => __('Measurement is in pixel.', 'advance-fitness-gym'),
		'input_attrs' => array(
			'min'  => 0,
			'max'  => 500,
			'step' => 1,
		),
		'type'             => 'number',
		'active_callback'  => 'advance_fitness_gym_blog_image_dimension'
	));

	$wp_customize->add_setting('advance_fitness_gym_show_first_caps',array(
        'default' => false,
        'sanitize_callback' => 'advance_fitness_gym_sanitize_checkbox',
    ));
	$wp_customize->add_control( 'advance_fitness_gym_show_first_caps',array(
		'label' => esc_html__('First Cap (First Capital Letter)', 'advance-fitness-gym'),
		'type' => 'checkbox',
		'section' => 'advance_fitness_gym_blog_post',
	));

    $wp_customize->add_setting('advance_fitness_gym_blog_post_description_option',array(
    	'default'   => 'Excerpt Content',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_blog_post_description_option',array(
        'type' => 'radio',
        'label' => __('Post Description Length','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_blog_post',
        'choices' => array(
            'No Content' => __('No Content','advance-fitness-gym'),
            'Excerpt Content' => __('Excerpt Content','advance-fitness-gym'),
            'Full Content' => __('Full Content','advance-fitness-gym'),
        ),
	) );

    $wp_customize->add_setting( 'advance_fitness_gym_excerpt_number', array(
		'default'              => 20,
		'sanitize_callback'	=> 'absint',
	) );
	$wp_customize->add_control( 'advance_fitness_gym_excerpt_number', array(
		'label'       => esc_html__( 'Excerpt length','advance-fitness-gym' ),
		'section'     => 'advance_fitness_gym_blog_post',
		'type'        => 'number',
		'settings'    => 'advance_fitness_gym_excerpt_number',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting( 'advance_fitness_gym_post_suffix_option', array(
		'default'   => __('...','advance-fitness-gym'),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'advance_fitness_gym_post_suffix_option', array(
		'label'       => esc_html__( 'Post Excerpt Indicator Option','advance-fitness-gym' ),
		'section'     => 'advance_fitness_gym_blog_post',
		'type'        => 'text',
		'settings'    => 'advance_fitness_gym_post_suffix_option',
	) );

	$wp_customize->add_setting( 'advance_fitness_gym_metabox_separator_blog_post', array(
		'default'   => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'advance_fitness_gym_metabox_separator_blog_post', array(
		'label'       => esc_html__( 'Meta Box Separator','advance-fitness-gym' ),
		'input_attrs' => array(
            'placeholder' => __( 'Add Meta Separator. e.g.: "|", "/", etc.', 'advance-fitness-gym' ),
        ),
		'section'     => 'advance_fitness_gym_blog_post',
		'type'        => 'text',
		'settings'    => 'advance_fitness_gym_metabox_separator_blog_post',
	) );

	$wp_customize->add_setting('advance_fitness_gym_display_blog_page_post',array(
        'default' => 'In Box',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_display_blog_page_post',array(
        'type' => 'radio',
        'label' => __('Display Blog Page Post :','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_blog_post',
        'choices' => array(
            'In Box' => __('In Box','advance-fitness-gym'),
            'Without Box' => __('Without Box','advance-fitness-gym'),
        ),
	) );

	$wp_customize->add_setting('advance_fitness_gym_blog_post_alignment',array(
	    'default' => 'Left',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_blog_post_alignment',array(
	    'type' => 'select',
	    'label' => __('Blog Post Alignment','advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_blog_post',
	    'choices' => array(
	    	'Left' => __('Left','advance-fitness-gym'),
	        'Center' => __('Center','advance-fitness-gym'),
	        'Right' => __('Right','advance-fitness-gym')
	    ),
	) );

	$wp_customize->add_setting('advance_fitness_gym_blog_post_pagination',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_blog_post_pagination',array(
       'type' => 'checkbox',
       'label' => __('Pagination in Blog Page','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_blog_post'
    ));

	$wp_customize->add_setting( 'advance_fitness_gym_pagination_settings', array(
        'default'			=> 'Numeric Pagination',
        'sanitize_callback'	=> 'advance_fitness_gym_sanitize_choices'
    ));
    $wp_customize->add_control( 'advance_fitness_gym_pagination_settings', array(
        'section' => 'advance_fitness_gym_blog_post',
        'type' => 'radio',
        'label' => __( 'Post Pagination', 'advance-fitness-gym' ),
        'choices'		=> array(
            'Numeric Pagination'  => __( 'Numeric Pagination', 'advance-fitness-gym' ),
            'next-prev' => __( 'Next / Previous', 'advance-fitness-gym' ),
    )));

	$wp_customize->add_setting('advance_fitness_gym_pagination_alignment',array(
	    'default' => 'Left',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_pagination_alignment',array(
	    'type' => 'select',
	    'label' => __('Pagination Alignment','advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_blog_post',
	    'choices' => array(
	    	'Left' => __('Left','advance-fitness-gym'),
	        'Center' => __('Center','advance-fitness-gym'),
	        'Right' => __('Right','advance-fitness-gym')
	    ),
	) );

	// Button
	$wp_customize->add_section( 'advance_fitness_gym_theme_button', array(
		'title' => __('Button Option','advance-fitness-gym'),
		'panel' => 'advance_fitness_gym_panel_id',
	));

	$wp_customize->add_setting('advance_fitness_gym_theme_button_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_theme_button_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_theme_button'
	));

	$wp_customize->selective_refresh->add_partial( 'advance_fitness_gym_button_text', array(
		'selector' => '.page-box .new-text .second-border a',
		'render_callback' => 'advance_fitness_gym_customize_partial_advance_fitness_gym_button_text',
	));

	$wp_customize->add_setting('advance_fitness_gym_button_text',array(
		'default'=> __('Read More','advance-fitness-gym'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_button_text',array(
		'label'	=> __('Add Button Text','advance-fitness-gym'),		
		'section'=> 'advance_fitness_gym_theme_button',
		'type'=> 'text'
	));

	$wp_customize->add_setting('advance_fitness_gym_button_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float'
	));
	$wp_customize->add_control('advance_fitness_gym_button_font_size',array(
		'label'	=> __('Button Font Size','advance-fitness-gym'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'advance_fitness_gym_theme_button',
		'type'=> 'number'
	));

	$wp_customize->add_setting('advance_fitness_gym_btn_font_weight',array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_choices',
	));
	$wp_customize->add_control('advance_fitness_gym_btn_font_weight',array(
		'label'	=> __('Button Font Weight','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_theme_button',
		'type' => 'select',
		'choices' => array(
            '100' => __('100','advance-fitness-gym'),
            '200' => __('200','advance-fitness-gym'),
            '300' => __('300','advance-fitness-gym'),
            '400' => __('400','advance-fitness-gym'),
            '500' => __('500','advance-fitness-gym'),
            '600' => __('600','advance-fitness-gym'),
            '700' => __('700','advance-fitness-gym'),
            '800' => __('800','advance-fitness-gym'),
            '900' => __('900','advance-fitness-gym'),
        ),
	));

	// button letter spacing
	$wp_customize->add_setting( 'advance_fitness_gym_button_letter_spacing',array(
		'default' => '',
		'sanitize_callback' => 'advance_fitness_gym_sanitize_float'
	));
	$wp_customize->add_control('advance_fitness_gym_button_letter_spacing', array(
		'label'  =>  esc_html__('Button Letter Spacing','advance-fitness-gym'),
		'type'=> 'number',
		'section'  => 'advance_fitness_gym_theme_button',
		'input_attrs' => array(
			'step' => 1,
			'min' => 0,
			'max' => 50,
		)
	));

	$wp_customize->add_setting('advance_fitness_gym_button_text_transform',array(
		'default' => 'Uppercase',
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
 	));
 	$wp_customize->add_control('advance_fitness_gym_button_text_transform',array(
		'type' => 'radio',
		'label' => __('Button Text Transform','advance-fitness-gym'),
		'section' => 'advance_fitness_gym_theme_button',
		'choices' => array(
		   'Uppercase' => __('Uppercase','advance-fitness-gym'),
		   'Lowercase' => __('Lowercase','advance-fitness-gym'),
		   'Capitalize' => __('Capitalize','advance-fitness-gym'),
		),
	) );

	$wp_customize->add_setting('advance_fitness_gym_button_padding_top_bottom',array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_button_padding_top_bottom',array(
		'label'	=> __('Top and Bottom Padding','advance-fitness-gym'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'advance_fitness_gym_theme_button',
		'type'=> 'number'
	));

	$wp_customize->add_setting('advance_fitness_gym_button_padding_left_right',array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_button_padding_left_right',array(
		'label'	=> __('Left and Right Padding','advance-fitness-gym'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'advance_fitness_gym_theme_button',
		'type'=> 'number'
	));

	$wp_customize->add_setting( 'advance_fitness_gym_button_border_radius', array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	) );
	$wp_customize->add_control( 'advance_fitness_gym_button_border_radius', array(
		'label'       => esc_html__( 'Button Border Radius','advance-fitness-gym' ),
		'section'     => 'advance_fitness_gym_theme_button',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	//Single Post Settings
	$wp_customize->add_section('advance_fitness_gym_single_post',array(
		'title'	=> __('Single Post Settings','advance-fitness-gym'),
		'panel' => 'advance_fitness_gym_panel_id',
	));	

	$wp_customize->add_setting('advance_fitness_gym_single_post_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_single_post_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_single_post'
	));

	$wp_customize->selective_refresh->add_partial( 'advance_fitness_gym_single_post_date_hide', array(
		'selector' => '.single-post .page-box-single',
		'render_callback' => 'advance_fitness_gym_customize_partial_advance_fitness_gym_single_post_date_hide',
	));

	$wp_customize->add_setting('advance_fitness_gym_single_post_date_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_single_post_date_hide',array(
       'type' => 'checkbox',
       'label' => __('Single Post Date','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_single_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_single_post_date_icon',array(
		'default'	=> 'fa fa-calendar',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_single_post_date_icon',array(
		'label'	=> __('Single Post Date Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_single_post',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('advance_fitness_gym_single_post_author_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_single_post_author_hide',array(
       'type' => 'checkbox',
       'label' => __('Single Post Author','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_single_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_single_post_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_single_post_author_icon',array(
		'label'	=> __('Single Post Author Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_single_post',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('advance_fitness_gym_single_post_comment_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_single_post_comment_hide',array(
       'type' => 'checkbox',
       'label' => __('Single Post Comments','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_single_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_single_post_comment_icon',array(
		'default'	=> 'fas fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_single_post_comment_icon',array(
		'label'	=> __('Single Post Comments Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_single_post',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('advance_fitness_gym_single_post_time_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_single_post_time_hide',array(
       'type' => 'checkbox',
       'label' => __('Single Post Time','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_single_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_single_post_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_single_post_time_icon',array(
		'label'	=> __('Single Post Time Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_single_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_category_show_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_category_show_hide',array(
       'type' => 'checkbox',
       'label' => __('Single Post Category','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_single_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_tags_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_tags_hide',array(
       'type' => 'checkbox',
       'label' => __('Single Post Tags','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_single_post'
    ));

    $wp_customize->add_setting('advance_fitness_gym_show_featured_image_single_post',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_show_featured_image_single_post',array(
       'type' => 'checkbox',
       'label' => __('Single Post Image','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_single_post'
    ));

    $wp_customize->add_setting( 'advance_fitness_gym_single_img_border_radius', array(
		'default'=> 0,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	) );
	$wp_customize->add_control( 'advance_fitness_gym_single_img_border_radius', array(
		'label'       => esc_html__( 'Single Post Image Border Radius','advance-fitness-gym' ),
		'section'     => 'advance_fitness_gym_single_post',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 100,
		),
	) );

	$wp_customize->add_setting( 'advance_fitness_gym_single_img_box_shadow',array(
		'default' => 0,
		'sanitize_callback'    => 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_single_img_box_shadow',array(
		'label' => esc_html__( 'Single Post Image Shadow','advance-fitness-gym' ),
		'section' => 'advance_fitness_gym_single_post',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type' => 'number'
	));

	$wp_customize->add_setting('advance_fitness_gym_single_post_first_caps',array(
        'default' => false,
        'sanitize_callback' => 'advance_fitness_gym_sanitize_checkbox',
    ));
	$wp_customize->add_control( 'advance_fitness_gym_single_post_first_caps',array(
		'label' => esc_html__('First Cap (First Capital Letter)', 'advance-fitness-gym'),
		'type' => 'checkbox',
		'section' => 'advance_fitness_gym_single_post',
	));

    $wp_customize->add_setting( 'advance_fitness_gym_post_comment',array(
		'default' => true,
      	'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ) );
	$wp_customize->add_control('advance_fitness_gym_post_comment',array(
       'type' => 'checkbox',
       'label' => __('Single Post Comment Box','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_single_post'
    ));

    $wp_customize->add_setting( 'advance_fitness_gym_single_post_breadcrumb',array(
		'default' => false,
		'transport' => 'refresh',
      	'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ) );
    $wp_customize->add_control('advance_fitness_gym_single_post_breadcrumb',array(
    	'type' => 'checkbox',
        'label' => __( 'Show / Hide Single Post Breadcrumb','advance-fitness-gym' ),
        'section' => 'advance_fitness_gym_single_post'
    ));

    // show/hide single post pagination
    $wp_customize->add_setting('advance_fitness_gym_show_single_post_pagination',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_show_single_post_pagination',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Pagination','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_single_post'
    ));

    $wp_customize->add_setting('advance_fitness_gym_title_comment_form',array(
       'default' => __('Leave a Reply','advance-fitness-gym'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('advance_fitness_gym_title_comment_form',array(
       'type' => 'text',
       'label' => __('Comment Form Heading Text','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_single_post'
    ));

    $wp_customize->add_setting('advance_fitness_gym_comment_form_button_content',array(
       'default' => __('Post Comment','advance-fitness-gym'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('advance_fitness_gym_comment_form_button_content',array(
       'type' => 'text',
       'label' => __('Comment Form Button Text','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_single_post'
    ));

    //Comment Textarea Width
    $wp_customize->add_setting( 'advance_fitness_gym_comment_width', array(
		'default'=> '100',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(
	    'advance_fitness_gym_comment_width', array(
		'label'  => __('Comment Textarea Width','advance-fitness-gym'),
		'section'  => 'advance_fitness_gym_single_post',
		'description' => __('Measurement is in %.','advance-fitness-gym'),
		'input_attrs' => array(
		   'step'=> 1,
		   'min' => 0,
		   'max' => 100,
		),
		'type'		=> 'number'
    ));

    $wp_customize->add_setting( 'advance_fitness_gym_single_post_meta_seperator', array(
		'default'   => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'advance_fitness_gym_single_post_meta_seperator', array(
		'label'       => esc_html__( 'Single Post Meta Box Seperator','advance-fitness-gym' ),
		'section'     => 'advance_fitness_gym_single_post',
		'description' => __('Here you can add the seperator for meta box. e.g. "|",  ",", "/", etc. ','advance-fitness-gym'),
		'type'        => 'text',
		'settings'    => 'advance_fitness_gym_single_post_meta_seperator',
	) );

	//Grid Post Settings
	$wp_customize->add_section('advance_fitness_gym_grid_post',array(
		'title'	=> __('Grid Post Settings','advance-fitness-gym'),
		'panel' => 'advance_fitness_gym_panel_id',
	));	

	$wp_customize->add_setting('advance_fitness_gym_grid_post_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_grid_post_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_grid_post'
	));

	$wp_customize->add_setting('advance_fitness_gym_grid_post_date',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_grid_post_date',array(
       'type' => 'checkbox',
       'label' => __('Post Date','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_grid_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_grid_post_date_icon',array(
		'default'	=> 'fa fa-calendar',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_grid_post_date_icon',array(
		'label'	=> __('Date Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_grid_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_grid_post_author',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_grid_post_author',array(
       'type' => 'checkbox',
       'label' => __('Post Author','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_grid_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_grid_post_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_grid_post_author_icon',array(
		'label'	=> __('Author Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_grid_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_grid_post_comment',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_grid_post_comment',array(
       'type' => 'checkbox',
       'label' => __('Post Comment','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_grid_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_grid_post_comment_icon',array(
		'default'	=> 'fas fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_grid_post_comment_icon',array(
		'label'	=> __('Comment Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_grid_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_grid_post_time',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_grid_post_time',array(
       'type' => 'checkbox',
       'label' => __('Post Time','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_grid_post'
    ));

	$wp_customize->add_setting('advance_fitness_gym_grid_post_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_grid_post_time_icon',array(
		'label'	=> __('Time Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_grid_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_grid_post_alignment',array(
	    'default' => 'Left',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_grid_post_alignment',array(
	    'type' => 'select',
	    'label' => __('Grid Post Alignment','advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_grid_post',
	    'choices' => array(
	    	'Left' => __('Left','advance-fitness-gym'),
	        'Center' => __('Center','advance-fitness-gym'),
	        'Right' => __('Right','advance-fitness-gym')
	    ),
	) );

	$wp_customize->add_setting('advance_fitness_gym_grid_post_description_option',array(
    	'default'   => 'Excerpt Content',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_grid_post_description_option',array(
        'type' => 'radio',
        'label' => __('Post Description Length','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_grid_post',
        'choices' => array(
            'No Content' => __('No Content','advance-fitness-gym'),
            'Excerpt Content' => __('Excerpt Content','advance-fitness-gym'),
            'Full Content' => __('Full Content','advance-fitness-gym'),
        ),
	) );

    $wp_customize->add_setting( 'advance_fitness_gym_grid_excerpt_number', array(
		'default'              => 20,
		'sanitize_callback'	=> 'absint',
	) );
	$wp_customize->add_control( 'advance_fitness_gym_grid_excerpt_number', array(
		'label'       => esc_html__( 'Excerpt length','advance-fitness-gym' ),
		'section'     => 'advance_fitness_gym_grid_post',
		'type'        => 'number',
		'settings'    => 'advance_fitness_gym_grid_excerpt_number',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting( 'advance_fitness_gym_grid_post_suffix_option', array(
		'default'   => __('...','advance-fitness-gym'),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'advance_fitness_gym_grid_post_suffix_option', array(
		'label'       => esc_html__( 'Excerpt Indicator Option','advance-fitness-gym' ),
		'section'     => 'advance_fitness_gym_grid_post',
		'type'        => 'text',
		'settings'    => 'advance_fitness_gym_grid_post_suffix_option',
	) );

	$wp_customize->add_setting( 'advance_fitness_gym_metabox_separator_grid_post', array(
		'default'   => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'advance_fitness_gym_metabox_separator_grid_post', array(
		'label'       => esc_html__( 'Meta Box Separator','advance-fitness-gym' ),
		'input_attrs' => array(
            'placeholder' => __( 'Add Meta Separator. e.g.: "|", "/", etc.', 'advance-fitness-gym' ),
        ),
		'section'     => 'advance_fitness_gym_grid_post',
		'type'        => 'text',
		'settings'    => 'advance_fitness_gym_metabox_separator_grid_post',
	) );

    $wp_customize->add_setting('advance_fitness_gym_show_image_grid_post',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_show_image_grid_post',array(
       'type' => 'checkbox',
       'label' => __('Grid Post Image','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_grid_post'
    ));

    $wp_customize->add_setting( 'advance_fitness_gym_img_border_radius_grid_post', array(
		'default'=> 0,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	) );
	$wp_customize->add_control( 'advance_fitness_gym_img_border_radius_grid_post', array(
		'label'       => esc_html__( 'Grid Post Image Border Radius','advance-fitness-gym' ),
		'section'     => 'advance_fitness_gym_grid_post',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 100,
		),
	) );

	$wp_customize->add_setting('advance_fitness_gym_display_grid_page_post',array(
        'default' => 'In Box',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_display_grid_page_post',array(
        'type' => 'radio',
        'label' => __('Display Grid Post Box :','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_grid_post',
        'choices' => array(
            'In Box' => __('In Box','advance-fitness-gym'),
            'Without Box' => __('Without Box','advance-fitness-gym'),
        ),
	) );

	//Related Post Settings
	$wp_customize->add_section('advance_fitness_gym_related_post',array(
		'title'	=> __('Related Post Settings','advance-fitness-gym'),
		'panel' => 'advance_fitness_gym_panel_id',
	));	

	$wp_customize->add_setting('advance_fitness_gym_related_post_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_related_post_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_related_post'
	));

	$wp_customize->selective_refresh->add_partial( 'advance_fitness_gym_show_related_post', array(
		'selector' => '.related-posts',
		'render_callback' => 'advance_fitness_gym_customize_partial_advance_fitness_gym_show_related_post',
	));

    $wp_customize->add_setting( 'advance_fitness_gym_show_related_post',array(
		'default' => true,
      	'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ) );
    $wp_customize->add_control('advance_fitness_gym_show_related_post',array(
    	'type' => 'checkbox',
        'label' => __( 'Related Post','advance-fitness-gym' ),
        'section' => 'advance_fitness_gym_related_post'
    ));

    $wp_customize->add_setting('advance_fitness_gym_related_posts_taxanomies_options',array(
        'default' => 'categories',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_related_posts_taxanomies_options',array(
        'type' => 'radio',
        'label' => __('Related Post Taxonomies','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_related_post',
        'choices' => array(
            'categories' => __('Categories','advance-fitness-gym'),
            'tags' => __('Tags','advance-fitness-gym'),
        ),
	) );

	$wp_customize->add_setting('advance_fitness_gym_related_post_title',array(
		'default'=> __('Related Posts','advance-fitness-gym'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_related_post_title',array(
		'label'	=> __('Related Post Title','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_related_post',
		'type'=> 'text'
	));

    $wp_customize->add_setting('advance_fitness_gym_show_featured_image_single_post',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_show_featured_image_single_post',array(
       'type' => 'checkbox',
       'label' => __('Related Post Image','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_related_post'
    ));

   	$wp_customize->add_setting('advance_fitness_gym_related_posts_number',array(
		'default'=> 3,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_related_posts_number',array(
		'label'	=> __('Related Post Number','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_related_post',
		'type'=> 'number',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
	));

	$wp_customize->add_setting('advance_fitness_gym_related_post_excerpt_number',array(
		'default'=> 20,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_related_post_excerpt_number',array(
		'label'	=> __('Related Post Content Limit','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_related_post',
		'type'=> 'number',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
	));

	$wp_customize->add_setting('advance_fitness_related_post_gym_date_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_related_post_gym_date_hide',array(
       'type' => 'checkbox',
       'label' => __('Post Date','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_related_post'
    ));

	$wp_customize->add_setting('advance_fitness_related_post_gym_date_icon',array(
		'default'	=> 'fa fa-calendar',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_related_post_gym_date_icon',array(
		'label'	=> __('Post Date Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_related_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_related_button_text',array(
		'default'=> esc_html__('Read More','advance-fitness-gym'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_related_button_text',array(
		'label'	=> esc_html__('Add Button Text','advance-fitness-gym'),
		'input_attrs' => array(
        'placeholder' => esc_html__( 'Read More', 'advance-fitness-gym' ),
        ),
		'section'=> 'advance_fitness_gym_related_post',
		'type'=> 'text'
	));
	
	//Layouts
	$wp_customize->add_section('advance_fitness_gym_left_right', array(
		'title'    => __('Layout Settings', 'advance-fitness-gym'),
		'priority' => null,
		'panel'    => 'advance_fitness_gym_panel_id',
	));

	$wp_customize->add_setting('advance_fitness_gym_left_right_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_left_right_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_left_right'
	));

	$wp_customize->add_setting('advance_fitness_gym_theme_options',array(
        'default' => 'Default',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_theme_options',array(
        'type' => 'radio',
        'label' => __('Container Box','advance-fitness-gym'),
        'description' => __('Here you can change the Width layout. ','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_left_right',
        'choices' => array(
            'Default' => __('Default','advance-fitness-gym'),
            'Container' => __('Container','advance-fitness-gym'),
            'Box Container' => __('Box Container','advance-fitness-gym'),
        ),
	) );

	$wp_customize->add_setting('advance_fitness_gym_preloader_option',array(
       'default' => false,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_preloader_option',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Preloader','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_left_right'
    ));

    $wp_customize->add_setting('advance_fitness_gym_preloader_type_options', array(
		'default'           => 'Preloader 1',
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices',
	));
	$wp_customize->add_control('advance_fitness_gym_preloader_type_options',array(
		'type'           => 'radio',
		'label'          => __('Preloader Type', 'advance-fitness-gym'),
		'section'        => 'advance_fitness_gym_left_right',
		'choices'        => array(
			'Preloader 1'  => __('Preloader 1', 'advance-fitness-gym'),
			'Preloader 2' => __('Preloader 2', 'advance-fitness-gym'),
		),
	));

	$wp_customize->add_setting('advance_fitness_gym_preloader_bg_image',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'advance_fitness_gym_preloader_bg_image',array(
        'label' => __('Preloader Background Image','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_left_right'
	)));

    $wp_customize->add_setting( 'advance_fitness_gym_loader_background_color_first', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_loader_background_color_first', array(
  		'label' => __('Background Color for Preloader', 'advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_left_right',
	    'settings' => 'advance_fitness_gym_loader_background_color_first',
  	)));

	$wp_customize->add_setting( 'advance_fitness_gym_breadcrumb_color', array(
	    'default' => '#000',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_breadcrumb_color', array(
  		'label' => __('Breadcrumb Color', 'advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_left_right',
	    'settings' => 'advance_fitness_gym_breadcrumb_color',
  	)));

  	$wp_customize->add_setting( 'advance_fitness_gym_breadcrumb_bg_color', array(
	    'default' => '#fff',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_breadcrumb_bg_color', array(
  		'label' => __('Breadcrumb Background Color', 'advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_left_right',
	    'settings' => 'advance_fitness_gym_breadcrumb_bg_color',
  	)));

    $wp_customize->add_setting( 'advance_fitness_gym_single_page_breadcrumb',array(
		'default' => false,
      	'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ) );
    $wp_customize->add_control('advance_fitness_gym_single_page_breadcrumb',array(
    	'type' => 'checkbox',
        'label' => __( 'Show / Hide Single Page Breadcrumb','advance-fitness-gym' ),
        'section' => 'advance_fitness_gym_left_right'
    ));

	// Add Settings and Controls for Layout
	$wp_customize->add_setting('advance_fitness_gym_layout_options', array(
		'default'           => 'Right Sidebar', 
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices',
	));
	$wp_customize->add_control('advance_fitness_gym_layout_options',array(
		'type'           => 'radio',
		'label'          => __('Blog Post Layouts', 'advance-fitness-gym'),
		'section'        => 'advance_fitness_gym_left_right',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'advance-fitness-gym'),
			'Right Sidebar' => __('Right Sidebar', 'advance-fitness-gym'),
			'One Column'    => __('One Column', 'advance-fitness-gym'),
			'Three Columns' => __('Three Columns', 'advance-fitness-gym'),
			'Four Columns'  => __('Four Columns', 'advance-fitness-gym'),
			'Grid Layout'   => __('Grid Layout', 'advance-fitness-gym')
		),
	));

	$wp_customize->add_setting('advance_fitness_gym_single_post_sidebar_layout', array(
		'default'           => 'Right Sidebar', 
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices',
	));
	$wp_customize->add_control('advance_fitness_gym_single_post_sidebar_layout',array(
		'type'           => 'radio',
		'label'          => __('Single Post Layouts', 'advance-fitness-gym'),
		'section'        => 'advance_fitness_gym_left_right',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'advance-fitness-gym'),
			'Right Sidebar' => __('Right Sidebar', 'advance-fitness-gym'),
			'One Column'    => __('One Column', 'advance-fitness-gym'),
		),
	));

	$wp_customize->add_setting('advance_fitness_gym_single_page_sidebar_layout', array(
		'default'           => 'One Column',
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices',
	));
	$wp_customize->add_control('advance_fitness_gym_single_page_sidebar_layout',array(
		'type'           => 'radio',
		'label'          => __('Single Page Layouts', 'advance-fitness-gym'),
		'section'        => 'advance_fitness_gym_left_right',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'advance-fitness-gym'),
			'Right Sidebar' => __('Right Sidebar', 'advance-fitness-gym'),
			'One Column'    => __('One Column', 'advance-fitness-gym'),
		),
	));

	// animation 
	$wp_customize->add_setting( 'advance_fitness_gym_sidebar_animation',array(
		'default' => true,
    	'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
  	) );

	$wp_customize->add_control('advance_fitness_gym_sidebar_animation',array(
	    'type' => 'checkbox',
	    'label' => __( 'Show / Hide Animations','advance-fitness-gym' ),
	    'section' => 'advance_fitness_gym_left_right'
	));

	//no Result Found
	$wp_customize->add_section('advance_fitness_gym_noresult_found',array(
		'title'	=> __('No Result Found','advance-fitness-gym'),
		'panel' => 'advance_fitness_gym_panel_id',
	));	

	$wp_customize->add_setting('advance_fitness_gym_noresult_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_noresult_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_noresult_found'
	));

	$wp_customize->add_setting('advance_fitness_gym_nosearch_found_title',array(
		'default'=> __('Nothing Found','advance-fitness-gym'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_nosearch_found_title',array(
		'label'	=> __('No Result Found Title','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_noresult_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('advance_fitness_gym_nosearch_found_content',array(
		'default'=> __('Sorry, but nothing matched your search terms. Please try again with some different keywords.','advance-fitness-gym'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_nosearch_found_content',array(
		'label'	=> __('No Result Found Content','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_noresult_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('advance_fitness_gym_show_noresult_search',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_show_noresult_search',array(
       'type' => 'checkbox',
       'label' => __('No Result search','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_noresult_found'
    ));

	//404 Page Setting
	$wp_customize->add_section('advance_fitness_gym_404_page_setting',array(
		'title'	=> __('404 Page','advance-fitness-gym'),
		'panel' => 'advance_fitness_gym_panel_id',
	));	

	$wp_customize->add_setting('advance_fitness_gym_404_page_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_404_page_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_404_page_setting'
	));

	$wp_customize->add_setting('advance_fitness_gym_title_404_page',array(
		'default'=> __('404 Not Found', 'advance-fitness-gym'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_title_404_page',array(
		'label'	=> __('404 Page Title','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_404_page_setting',
		'type'=> 'text'
	));

	$wp_customize->add_setting('advance_fitness_gym_content_404_page',array(
		'default'=> __('Looks like you have taken a wrong turn&hellip. Dont worry&hellip it happens to the best of us.', 'advance-fitness-gym'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_content_404_page',array(
		'label'	=> __('404 Page Content','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_404_page_setting',
		'type'=> 'text'
	));

	$wp_customize->add_setting('advance_fitness_gym_button_404_page',array(
		'default'=>  __('Back to Home Page', 'advance-fitness-gym'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_button_404_page',array(
		'label'	=> __('404 Page Button','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_404_page_setting',
		'type'=> 'text'
	));

	//Responsive Media Settings
	$wp_customize->add_section('advance_fitness_gym_responsive_setting',array(
		'title'	=> __('Responsive Settings','advance-fitness-gym'),
		'panel' => 'advance_fitness_gym_panel_id',
	));

	$wp_customize->add_setting('advance_fitness_gym_responsive_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_responsive_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_responsive_setting'
	));

	// taggle button color
    $wp_customize->add_setting( 'advance_fitness_gym_taggle_menu_bg_color_settings', array(
	    'default' => '#222',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_fitness_gym_taggle_menu_bg_color_settings', array(
  		'label' => __('Toggle Menu Bg Color', 'advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_responsive_setting',
	    'settings' => 'advance_fitness_gym_taggle_menu_bg_color_settings',
  	)));

	$wp_customize->add_setting('advance_fitness_gym_open_menu_icon',array(
		'default'	=> 'fas fa-bars',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_open_menu_icon',array(
		'label'	=> __('Open Menu Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_responsive_setting',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_close_close_menu_icon',array(
		'default'	=> 'far fa-times-circle',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_close_close_menu_icon',array(
		'label'	=> __('Close Menu Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_responsive_setting',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('advance_fitness_gym_mobile_search_option',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_mobile_search_option',array(
       'type' => 'checkbox',
       'label' => __('Search','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_responsive_setting'
    ));

    $wp_customize->add_setting('advance_fitness_gym_responsive_sticky_header',array(
       'default' => false,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_responsive_sticky_header',array(
       'type' => 'checkbox',
       'label' => __('Sticky Header','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_responsive_setting'
    ));

    $wp_customize->add_setting('advance_fitness_gym_responsive_slider',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_responsive_slider',array(
       'type' => 'checkbox',
       'label' => __('Slider','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_responsive_setting'
    ));

    $wp_customize->add_setting('advance_fitness_gym_responsive_scroll',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_responsive_scroll',array(
       'type' => 'checkbox',
       'label' => __('Scroll To Top','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_responsive_setting'
    ));

    $wp_customize->add_setting('advance_fitness_gym_responsive_sidebar',array(
       'default' => true,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_responsive_sidebar',array(
       'type' => 'checkbox',
       'label' => __('Sidebar','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_responsive_setting'
    ));

    $wp_customize->add_setting('advance_fitness_gym_responsive_preloader',array(
       'default' => false,
       'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
    ));
    $wp_customize->add_control('advance_fitness_gym_responsive_preloader',array(
       'type' => 'checkbox',
       'label' => __('Preloader','advance-fitness-gym'),
       'section' => 'advance_fitness_gym_responsive_setting'
    ));

	//footer
	$wp_customize->add_section('advance_fitness_gym_footer_section', array(
		'title'       => __('Footer Text', 'advance-fitness-gym'),
		'priority'    => null,
		'panel'       => 'advance_fitness_gym_panel_id',
	));

	$wp_customize->add_setting('advance_fitness_gym_footer_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_fitness_gym_footer_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','advance-fitness-gym') ."</p><a target='_blank' href='". esc_url(ADVANCE_FITNESS_GYM_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','advance-fitness-gym') ."</a>",
		'section'=> 'advance_fitness_gym_footer_section'
	));

	$wp_customize->selective_refresh->add_partial( 'advance_fitness_gym_show_hide_footer', array(
		'selector' => '#footer',
		'render_callback' => 'advance_fitness_gym_customize_partial_advance_fitness_gym_show_hide_footer',
	));

	$wp_customize->add_setting('advance_fitness_gym_show_hide_footer',array(
		'default' => true,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
	));
	$wp_customize->add_control('advance_fitness_gym_show_hide_footer',array(
     	'type' => 'checkbox',
        'label' => __('Show / Hide Footer','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_footer_section',
	));

	$wp_customize->add_setting('advance_fitness_gym_footer_widget_areas',array(
        'default'           => 4,
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices',
    ));
    $wp_customize->add_control('advance_fitness_gym_footer_widget_areas',array(
        'type'        => 'select',
        'label'       => __('Footer widget area', 'advance-fitness-gym'),
        'section'     => 'advance_fitness_gym_footer_section',
        'description' => __('Select the number of widget areas you want in the footer. After that, go to Appearance > Widgets and add your widgets.', 'advance-fitness-gym'),
        'choices' => array(
            '1'     => __('One', 'advance-fitness-gym'),
            '2'     => __('Two', 'advance-fitness-gym'),
            '3'     => __('Three', 'advance-fitness-gym'),
            '4'     => __('Four', 'advance-fitness-gym')
        ),
    ));

    $wp_customize->add_setting('advance_fitness_gym_footer_widget_bg_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'advance_fitness_gym_footer_widget_bg_color', array(
		'label'    => __('Footer Widget Background Color', 'advance-fitness-gym'),
		'section'  => 'advance_fitness_gym_footer_section',
	)));

	$wp_customize->add_setting('advance_fitness_gym_footer_widget_bg_image',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'advance_fitness_gym_footer_widget_bg_image',array(
        'label' => __('Footer Widget Background Image','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_footer_section'
	)));

	$wp_customize->add_setting('advance_fitness_gym_footer_heading',array(
	    'default' => 'Left',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_footer_heading',array(
	    'type' => 'select',
	    'label' => __('Footer Heading Alignment','advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_footer_section',
	    'choices' => array(
	    	'Left' => __('Left','advance-fitness-gym'),
	        'Center' => __('Center','advance-fitness-gym'),
	        'Right' => __('Right','advance-fitness-gym')
	    ),
	) );

	$wp_customize->add_setting('advance_fitness_gym_footer_content',array(
	    'default' => 'Left',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_footer_content',array(
	    'type' => 'select',
	    'label' => __('Footer Content Alignment','advance-fitness-gym'),
	    'section' => 'advance_fitness_gym_footer_section',
	    'choices' => array(
	    	'Left' => __('Left','advance-fitness-gym'),
	        'Center' => __('Center','advance-fitness-gym'),
	        'Right' => __('Right','advance-fitness-gym')
	    ),
	) );

	$wp_customize->add_setting('advance_fitness_gym_footer_font_size',array(
		'default'=> 24,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float'
	));
	$wp_customize->add_control('advance_fitness_gym_footer_font_size',array(
		'label'	=> __('Footer Heading Font Size','advance-fitness-gym'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'advance_fitness_gym_footer_section',
		'type'=> 'number'
	));

	$wp_customize->add_setting('advance_fitness_gym_footer_heading_font_weight',array(
        'default' => '600',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
    ));
    $wp_customize->add_control('advance_fitness_gym_footer_heading_font_weight',array(
        'type' => 'select',
        'label' => __('Footer Heading Font Weight','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_footer_section',
        'choices' => array(
            '100' => __('100','advance-fitness-gym'),
            '200' => __('200','advance-fitness-gym'),
            '300' => __('300','advance-fitness-gym'),
            '400' => __('400','advance-fitness-gym'),
            '500' => __('500','advance-fitness-gym'),
            '600' => __('600','advance-fitness-gym'),
            '700' => __('700','advance-fitness-gym'),
            '800' => __('800','advance-fitness-gym'),
            '900' => __('900','advance-fitness-gym'),
        ),
	) );

	$wp_customize->add_setting('advance_fitness_gym_footer_text_tranform',array(
		'default' => 'Uppercase',
		'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
 	));
 	$wp_customize->add_control('advance_fitness_gym_footer_text_tranform',array(
		'type' => 'radio',
		'label' => __('Footer Heading Text Transform','advance-fitness-gym'),
		'section' => 'advance_fitness_gym_footer_section',
		'choices' => array(
		   'Uppercase' => __('Uppercase','advance-fitness-gym'),
		   'Lowercase' => __('Lowercase','advance-fitness-gym'),
		   'Capitalize' => __('Capitalize','advance-fitness-gym'),
		),
	) );

	$wp_customize->selective_refresh->add_partial('advance_fitness_gym_show_hide_copyright', array(
		'selector' => '.copyright p',
		'render_callback' => 'advance_fitness_gym_customize_partial_advance_fitness_gym_show_hide_copyright',
	));

	$wp_customize->add_setting('advance_fitness_gym_show_hide_copyright',array(
		'default' => true,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
	));
	$wp_customize->add_control('advance_fitness_gym_show_hide_copyright',array(
     	'type' => 'checkbox',
      'label' => __('Show / Hide Copyright','advance-fitness-gym'),
      'section' => 'advance_fitness_gym_footer_section',
	));

	$wp_customize->add_setting('advance_fitness_gym_footer_copy', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control('advance_fitness_gym_footer_copy', array(
		'label'   => __('Copyright Text', 'advance-fitness-gym'),
		'section' => 'advance_fitness_gym_footer_section',
		'type'    => 'text',
	));

	$wp_customize->add_setting('advance_fitness_gym_copyright_content_align',array(
        'default' => 'center',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_copyright_content_align',array(
        'type' => 'select',
        'label' => __('Copyright Text Alignment ','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_footer_section',
        'choices' => array(
            'left' => __('Left','advance-fitness-gym'),
            'right' => __('Right','advance-fitness-gym'),
            'center' => __('Center','advance-fitness-gym'),
        ),
	) );

	$wp_customize->add_setting('advance_fitness_gym_footer_content_font_size',array(
		'default'=> 15,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_footer_content_font_size',array(
		'label' => esc_html__( 'Copyright Font Size','advance-fitness-gym' ),
		'section'=> 'advance_fitness_gym_footer_section',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
        'type' => 'number',
	));

	$wp_customize->add_setting('advance_fitness_gym_copyright_padding',array(
		'default'=> 15,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_copyright_padding',array(
		'label'	=> __('Copyright Padding','advance-fitness-gym'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'advance_fitness_gym_footer_section',
		'type'=> 'number'
	));

	$wp_customize->add_setting('advance_fitness_gym_footer_text_color', array(
		'default'           => '#000',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'advance_fitness_gym_footer_text_color', array(
		'label'    => __('Copyright Text Color', 'advance-fitness-gym'),
		'section'  => 'advance_fitness_gym_footer_section',
	)));

	$wp_customize->add_setting('advance_fitness_gym_footer_text_bg_color', array(
		'default'           => 'var(--primary-color)',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'advance_fitness_gym_footer_text_bg_color', array(
		'label'    => __('Copyright Background Color', 'advance-fitness-gym'),
		'section'  => 'advance_fitness_gym_footer_section',
	)));

	$wp_customize->selective_refresh->add_partial( 'advance_fitness_gym_enable_disable_scroll', array(
		'selector' => '#scroll-top i',
		'render_callback' => 'advance_fitness_gym_customize_partial_advance_fitness_gym_enable_disable_scroll',
	));

	$wp_customize->add_setting('advance_fitness_gym_enable_disable_scroll',array(
        'default' => true,
        'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
	));
	$wp_customize->add_control('advance_fitness_gym_enable_disable_scroll',array(
     	'type' => 'checkbox',
      	'label' => __('Show / Hide Scroll Top Button','advance-fitness-gym'),
      	'section' => 'advance_fitness_gym_footer_section',
	));

	$wp_customize->add_setting('advance_fitness_gym_back_to_top_icon',array(
		'default'	=> 'fas fa-chevron-up',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
        $wp_customize,'advance_fitness_gym_back_to_top_icon',array(
		'label'	=> __('Scroll Back to Top Icon','advance-fitness-gym'),
		'transport' => 'refresh',
		'section'	=> 'advance_fitness_gym_footer_section',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('advance_fitness_gym_back_to_top_bg_color', array(
		'default'           => 'var(--primary-color)',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'advance_fitness_gym_back_to_top_bg_color', array(
		'label'    => __('Back to Top Background Color', 'advance-fitness-gym'),
		'section'  => 'advance_fitness_gym_footer_section',
	)));

    $wp_customize->add_setting('advance_fitness_gym_back_to_top_bg_hover_color', array(
		'default'           => 'var(--primary-color)',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'advance_fitness_gym_back_to_top_bg_hover_color', array(
		'label'    => __('Back to Top Background Hover Color', 'advance-fitness-gym'),
		'section'  => 'advance_fitness_gym_footer_section',
	)));

	$wp_customize->add_setting('advance_fitness_gym_scroll_setting',array(
        'default' => 'Right',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_scroll_setting',array(
        'type' => 'select',
        'label' => __('Scroll Back to Top Position','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_footer_section',
        'choices' => array(
            'Left' => __('Left','advance-fitness-gym'),
            'Right' => __('Right','advance-fitness-gym'),
            'Center' => __('Center','advance-fitness-gym'),
        ),
	));

	$wp_customize->add_setting('advance_fitness_gym_scroll_font_size_icon',array(
		'default'=> 20,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float',
	));
	$wp_customize->add_control('advance_fitness_gym_scroll_font_size_icon',array(
		'label'	=> __('Scroll Icon Font Size','advance-fitness-gym'),
		'section'=> 'advance_fitness_gym_footer_section',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
        'type' => 'number',
	));

	//Footer Social Icon
	$wp_customize->add_section( 'advance_fitness_gym_footer_social_icon' , array(
    	'title'      => __( 'Footer Social Icon Settings', 'advance-fitness-gym' ),
		'panel' => 'advance_fitness_gym_panel_id'
	) );

	$wp_customize->add_setting('advance_fitness_gym_show_hide_footer_social_icon',array(
		'default' => false,
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_checkbox'
	));
	$wp_customize->add_control('advance_fitness_gym_show_hide_footer_social_icon',array(
     	'type' => 'checkbox',
      	'label' => __('Show / Hide Footer Social Icon','advance-fitness-gym'),
      	'section' => 'advance_fitness_gym_footer_social_icon',
	));

	for ( $advance_fitness_gym_j = 1; $advance_fitness_gym_j <= 5; $advance_fitness_gym_j++ ) {
		$wp_customize->add_setting('advance_fitness_gym_social_icon_url' .$advance_fitness_gym_j,array(
			'default'	=> '',
			'sanitize_callback'	=> 'esc_url_raw'
		));	
		$wp_customize->add_control('advance_fitness_gym_social_icon_url' .$advance_fitness_gym_j,array(
			'label'	=> __('Add Social link','advance-fitness-gym'),
			'section'	=> 'advance_fitness_gym_footer_social_icon',
			'setting'	=> 'advance_fitness_gym_social_icon_url' .$advance_fitness_gym_j,
			'type'	=> 'url'
		));

		$wp_customize->add_setting('advance_fitness_gym_select_social_icon' .$advance_fitness_gym_j,array(
			'default'	=> 'fab fa-facebook-f',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control(new Advance_Fitness_Gym_Icon_Changer(
	        $wp_customize,'advance_fitness_gym_select_social_icon' .$advance_fitness_gym_j,array(
			'label'	=> __('Add Social Icon','advance-fitness-gym'),
			'transport' => 'refresh',
			'section'	=> 'advance_fitness_gym_footer_social_icon',
			'type'		=> 'icon'
		)));
	}

	$wp_customize->add_setting('advance_fitness_gym_align_footer_social_icon',array(
        'default' => 'center',
        'sanitize_callback' => 'advance_fitness_gym_sanitize_choices'
	));
	$wp_customize->add_control('advance_fitness_gym_align_footer_social_icon',array(
        'type' => 'select',
        'label' => __('Social Icon Alignment ','advance-fitness-gym'),
        'section' => 'advance_fitness_gym_footer_social_icon',
        'choices' => array(
            'left' => __('Left','advance-fitness-gym'),
            'right' => __('Right','advance-fitness-gym'),
            'center' => __('Center','advance-fitness-gym'),
        ),
	) );

	$wp_customize->add_setting('advance_fitness_gym_footer_icon_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'advance_fitness_gym_sanitize_float'
	));
	$wp_customize->add_control('advance_fitness_gym_footer_icon_font_size',array(
		'label'	=> __('Footer Icon Font Size','advance-fitness-gym'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'advance_fitness_gym_footer_social_icon',
		'type'=> 'number'
	));

	$wp_customize->add_setting('advance_fitness_gym_footer_icon_color', array(
		'default'           => '#000',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'advance_fitness_gym_footer_icon_color', array(
		'label'    => __('Icon Color', 'advance-fitness-gym'),
		'section'  => 'advance_fitness_gym_footer_social_icon',
	)));

	// Copyright Sticky //
	$wp_customize->add_setting( 'advance_fitness_gym_copyright_sticky',array(
      'default' => 0,
      'transport' => 'refresh',
      'sanitize_callback' => 'advance_fitness_gym_sanitize_checkbox'
    ) );
    $wp_customize->add_control('advance_fitness_gym_copyright_sticky',array(
		'type' => 'checkbox',
      'label' => __('Show / Hide Sticky Copyright','advance-fitness-gym'),
      'section' => 'advance_fitness_gym_footer_section',
    ));

}
add_action('customize_register', 'advance_fitness_gym_customize_register');

// logo resize
	load_template( trailingslashit( get_template_directory() ) . '/inc/logo/logo-resizer.php' );

load_template( ABSPATH . 'wp-includes/class-wp-customize-control.php' );

class Advance_Fitness_Gym_Image_Radio_Control extends WP_Customize_Control {

    public function render_content() {
 
        if (empty($this->choices))
            return;
 
        $name = '_customize-radio-' . $this->id;
        ?>
        <span class="customize-control-title"><?php echo esc_html($this->label); ?></span>
        <ul class="controls" id='advance-fitness-gym-img-container'>
            <?php
            foreach ($this->choices as $value => $label) :
                $class = ($this->value() == $value) ? 'advance-fitness-gym-radio-img-selected advance-fitness-gym-radio-img-img' : 'advance-fitness-gym-radio-img-img';
                ?>
                <li style="display: inline;">
                    <label>
                        <input <?php $this->link(); ?>style = 'display:none' type="radio" value="<?php echo esc_attr($value); ?>" name="<?php echo esc_attr($name); ?>" <?php
                              $this->link();
                              checked($this->value(), $value);
                              ?> />
                        <img src='<?php echo esc_url($label); ?>' class='<?php echo esc_attr($class); ?>' />
                    </label>
                </li>
                <?php
            endforeach;
            ?>
        </ul>
        <?php
    } 
}

/**
 * Singleton class for handling the theme's customizer integration.
 *
 * @since  1.0.0
 * @access public
 */
final class Advance_Fitness_Gym_Customize {

	/**
	 * Returns the instance.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return object
	 */
	public static function get_instance() {

		static $instance = null;

		if (is_null($instance)) {
			$instance = new self;
			$instance->setup_actions();
		}

		return $instance;
	}

	/**
	 * Constructor method.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function __construct() {}

	/**
	 * Sets up initial actions.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function setup_actions() {

		// Register panels, sections, settings, controls, and partials.
		add_action('customize_register', array($this, 'sections'));

		// Register scripts and styles for the conadvance_fitness_gym_Customizetrols.
		add_action('customize_controls_enqueue_scripts', array($this, 'enqueue_control_scripts'), 0);
	}

	/**
	 * Sets up the customizer sections.
	 *
	 * @since  1.0.0
	 * @access public
	 * @param  object  $manager
	 * @return void
	 */
	public function sections($manager) {

		// Load custom sections.
		load_template(trailingslashit(get_template_directory()).'/inc/section-pro.php');

		// Register custom section types.
		$manager->register_section_type('Advance_Fitness_Gym_Customize_Section_Pro');

		// Register sections.
		$manager->add_section(
			new Advance_Fitness_Gym_Customize_Section_Pro(
				$manager,
				'advance_fitness_gym_example_1',
				array(
					'priority' => 9,
					'title'    => esc_html__('Fitness Gym Pro', 'advance-fitness-gym'),
					'pro_text' => esc_html__('Get Pro', 'advance-fitness-gym'),
					'pro_url'  => esc_url('https://www.themescaliber.com/products/wordpress-fitness-theme'),
				)
			)
		);

		$manager->add_section(
			new Advance_Fitness_Gym_Customize_Section_Pro(
				$manager,
				'advance_fitness_gym_doc_link',
				array(
					'priority' => 10,
					'title'    => esc_html__('Guide', 'advance-fitness-gym'),
					'pro_text' => esc_html__('Documentation', 'advance-fitness-gym'),
					'pro_url'  => esc_url('https://preview.themescaliber.com/doc/free-advance-fitness-gym/'),
				)
			)
		);

		$manager->add_section(
			new Advance_Fitness_Gym_Customize_Section_Pro(
				$manager,
				'advance_fitness_gym_demo_link',
				array(
					'priority' => 11,
					'title'    => esc_html__('Live Demo', 'advance-fitness-gym'),
					'pro_text' => esc_html__('Preview', 'advance-fitness-gym'),
					'pro_url'  => esc_url('https://preview.themescaliber.com/advance-fitness-gym-pro/'),
				)
			)
		);
	}

	/**
	 * Loads theme customizer CSS.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return void
	 */
	public function enqueue_control_scripts() {

		wp_enqueue_script('advance-fitness-gym-customize-controls', trailingslashit(esc_url(get_template_directory_uri())).'/js/customize-controls.js', array('customize-controls'));

		wp_enqueue_style('advance-fitness-gym-customize-controls', trailingslashit(esc_url(get_template_directory_uri())).'/css/customize-controls.css');
	}
}

// Doing this customizer thang!
Advance_Fitness_Gym_Customize::get_instance();