<?php
/**
 * Creative One Page Theme Customizer
 *
 * @package Creative One Page
 */

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

function creative_one_page_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' => '.creative-one-page-logo .site-title a',
	 	'render_callback' => 'creative_one_page_customize_partial_blogname',
	));

	$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
		'selector' => 'p.site-description',
		'render_callback' => 'creative_one_page_customize_partial_blogdescription',
	));
	
	//add home page setting pannel
	$wp_customize->add_panel('creative_one_page_panel_id', array(
		'priority'       => 12,
		'capability'     => 'edit_theme_options',
		'theme_supports' => '',
		'title'          => __('Theme Settings', 'creative-one-page'),
		'description'    => __('Description of what this panel does.', 'creative-one-page'),
	));	

	// font array
	$creative_one_page_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( 'creative_one_page_typography', array(
    	'title'      => __( 'Typography', 'creative-one-page' ),
		'priority'   => 30,
		'panel' => 'creative_one_page_panel_id'
	) );

	$wp_customize->add_setting('creative_one_page_typography_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_typography_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_typography'
	));
	
	// This is Paragraph Color picker setting
	$wp_customize->add_setting( 'creative_one_page_paragraph_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_paragraph_color', array(
		'label' => __('Paragraph Color', 'creative-one-page'),
		'section' => 'creative_one_page_typography',
		'settings' => 'creative_one_page_paragraph_color',
	)));

	//This is Paragraph FontFamily picker setting
	$wp_customize->add_setting('creative_one_page_paragraph_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control(
	    'creative_one_page_paragraph_font_family', array(
	    'section'  => 'creative_one_page_typography',
	    'label'    => __( 'Paragraph Fonts','creative-one-page'),
	    'type'     => 'select',
	    'choices'  => $creative_one_page_font_array,
	));

	$wp_customize->add_setting('creative_one_page_paragraph_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_paragraph_font_size',array(
		'label'	=> __('Paragraph Font Size','creative-one-page'),
		'section'	=> 'creative_one_page_typography',
		'setting'	=> 'creative_one_page_paragraph_font_size',
		'type'	=> 'text'
	));

	// This is "a" Tag Color picker setting
	$wp_customize->add_setting( 'creative_one_page_atag_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_atag_color', array(
		'label' => __('"a" Tag Color', 'creative-one-page'),
		'section' => 'creative_one_page_typography',
		'settings' => 'creative_one_page_atag_color',
	)));

	//This is "a" Tag FontFamily picker setting
	$wp_customize->add_setting('creative_one_page_atag_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control(
	    'creative_one_page_atag_font_family', array(
	    'section'  => 'creative_one_page_typography',
	    'label'    => __( '"a" Tag Fonts','creative-one-page'),
	    'type'     => 'select',
	    'choices'  => $creative_one_page_font_array,
	));

	// This is "a" Tag Color picker setting
	$wp_customize->add_setting( 'creative_one_page_li_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_li_color', array(
		'label' => __('"li" Tag Color', 'creative-one-page'),
		'section' => 'creative_one_page_typography',
		'settings' => 'creative_one_page_li_color',
	)));

	//This is "li" Tag FontFamily picker setting
	$wp_customize->add_setting('creative_one_page_li_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control(
	    'creative_one_page_li_font_family', array(
	    'section'  => 'creative_one_page_typography',
	    'label'    => __( '"li" Tag Fonts','creative-one-page'),
	    'type'     => 'select',
	    'choices'  => $creative_one_page_font_array,
	));

	// This is H1 Color picker setting
	$wp_customize->add_setting( 'creative_one_page_h1_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_h1_color', array(
		'label' => __('H1 Color', 'creative-one-page'),
		'section' => 'creative_one_page_typography',
		'settings' => 'creative_one_page_h1_color',
	)));

	//This is H1 FontFamily picker setting
	$wp_customize->add_setting('creative_one_page_h1_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control(
	    'creative_one_page_h1_font_family', array(
	    'section'  => 'creative_one_page_typography',
	    'label'    => __( 'H1 Fonts','creative-one-page'),
	    'type'     => 'select',
	    'choices'  => $creative_one_page_font_array,
	));

	//This is H1 FontSize setting
	$wp_customize->add_setting('creative_one_page_h1_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_h1_font_size',array(
		'label'	=> __('H1 Font Size','creative-one-page'),
		'section'	=> 'creative_one_page_typography',
		'setting'	=> 'creative_one_page_h1_font_size',
		'type'	=> 'text'
	));

	// This is H2 Color picker setting
	$wp_customize->add_setting( 'creative_one_page_h2_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_h2_color', array(
		'label' => __('h2 Color', 'creative-one-page'),
		'section' => 'creative_one_page_typography',
		'settings' => 'creative_one_page_h2_color',
	)));

	//This is H2 FontFamily picker setting
	$wp_customize->add_setting('creative_one_page_h2_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control(
	    'creative_one_page_h2_font_family', array(
	    'section'  => 'creative_one_page_typography',
	    'label'    => __( 'h2 Fonts','creative-one-page'),
	    'type'     => 'select',
	    'choices'  => $creative_one_page_font_array,
	));

	//This is H2 FontSize setting
	$wp_customize->add_setting('creative_one_page_h2_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_h2_font_size',array(
		'label'	=> __('h2 Font Size','creative-one-page'),
		'section'	=> 'creative_one_page_typography',
		'setting'	=> 'creative_one_page_h2_font_size',
		'type'	=> 'text'
	));

	// This is H3 Color picker setting
	$wp_customize->add_setting( 'creative_one_page_h3_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_h3_color', array(
		'label' => __('h3 Color', 'creative-one-page'),
		'section' => 'creative_one_page_typography',
		'settings' => 'creative_one_page_h3_color',
	)));

	//This is H3 FontFamily picker setting
	$wp_customize->add_setting('creative_one_page_h3_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control(
	    'creative_one_page_h3_font_family', array(
	    'section'  => 'creative_one_page_typography',
	    'label'    => __( 'h3 Fonts','creative-one-page'),
	    'type'     => 'select',
	    'choices'  => $creative_one_page_font_array,
	));

	//This is H3 FontSize setting
	$wp_customize->add_setting('creative_one_page_h3_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_h3_font_size',array(
		'label'	=> __('h3 Font Size','creative-one-page'),
		'section'	=> 'creative_one_page_typography',
		'setting'	=> 'creative_one_page_h3_font_size',
		'type'	=> 'text'
	));

	// This is H4 Color picker setting
	$wp_customize->add_setting( 'creative_one_page_h4_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_h4_color', array(
		'label' => __('h4 Color', 'creative-one-page'),
		'section' => 'creative_one_page_typography',
		'settings' => 'creative_one_page_h4_color',
	)));

	//This is H4 FontFamily picker setting
	$wp_customize->add_setting('creative_one_page_h4_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control(
	    'creative_one_page_h4_font_family', array(
	    'section'  => 'creative_one_page_typography',
	    'label'    => __( 'h4 Fonts','creative-one-page'),
	    'type'     => 'select',
	    'choices'  => $creative_one_page_font_array,
	));

	//This is H4 FontSize setting
	$wp_customize->add_setting('creative_one_page_h4_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_h4_font_size',array(
		'label'	=> __('h4 Font Size','creative-one-page'),
		'section'	=> 'creative_one_page_typography',
		'setting'	=> 'creative_one_page_h4_font_size',
		'type'	=> 'text'
	));

	// This is H5 Color picker setting
	$wp_customize->add_setting( 'creative_one_page_h5_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_h5_color', array(
		'label' => __('h5 Color', 'creative-one-page'),
		'section' => 'creative_one_page_typography',
		'settings' => 'creative_one_page_h5_color',
	)));

	//This is H5 FontFamily picker setting
	$wp_customize->add_setting('creative_one_page_h5_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control(
	    'creative_one_page_h5_font_family', array(
	    'section'  => 'creative_one_page_typography',
	    'label'    => __( 'h5 Fonts','creative-one-page'),
	    'type'     => 'select',
	    'choices'  => $creative_one_page_font_array,
	));

	//This is H5 FontSize setting
	$wp_customize->add_setting('creative_one_page_h5_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_h5_font_size',array(
		'label'	=> __('h5 Font Size','creative-one-page'),
		'section'	=> 'creative_one_page_typography',
		'setting'	=> 'creative_one_page_h5_font_size',
		'type'	=> 'text'
	));

	// This is H6 Color picker setting
	$wp_customize->add_setting( 'creative_one_page_h6_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_h6_color', array(
		'label' => __('h6 Color', 'creative-one-page'),
		'section' => 'creative_one_page_typography',
		'settings' => 'creative_one_page_h6_color',
	)));

	//This is H6 FontFamily picker setting
	$wp_customize->add_setting('creative_one_page_h6_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control(
	    'creative_one_page_h6_font_family', array(
	    'section'  => 'creative_one_page_typography',
	    'label'    => __( 'h6 Fonts','creative-one-page'),
	    'type'     => 'select',
	    'choices'  => $creative_one_page_font_array,
	));

	//This is H6 FontSize setting
	$wp_customize->add_setting('creative_one_page_h6_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_h6_font_size',array(
		'label'	=> __('h6 Font Size','creative-one-page'),
		'section'	=> 'creative_one_page_typography',
		'setting'	=> 'creative_one_page_h6_font_size',
		'type'	=> 'text'
	));

  	$wp_customize->add_setting('creative_one_page_background_skin_mode',array(
        'default' => 'Transparent Background',
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_background_skin_mode',array(
        'type' => 'select',
        'label' => __('Background Type','creative-one-page'),
        'section' => 'background_image',
        'choices' => array(
            'With Background' => __('With Background','creative-one-page'),
            'Transparent Background' => __('Transparent Background','creative-one-page'),
        ),
	) );

	// woocommerce section
	$wp_customize->add_section('creative_one_page_woocommerce_settings', array(
		'title'    => __('WooCommerce Settings', 'creative-one-page'),
		'priority' => null,
		'panel'    => 'woocommerce',
	));

	$wp_customize->add_setting( 'creative_one_page_shop_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ) );
    $wp_customize->add_control('creative_one_page_shop_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Show / Hide Shop Page Sidebar','creative-one-page'),
		'section' => 'creative_one_page_woocommerce_settings'
    ));

    // shop page sidebar alignment
    $wp_customize->add_setting('creative_one_page_shop_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'creative_one_page_sanitize_choices',
	));
	$wp_customize->add_control('creative_one_page_shop_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Shop Page layout', 'creative-one-page'),
		'section'        => 'creative_one_page_woocommerce_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'creative-one-page'),
			'Right Sidebar' => __('Right Sidebar', 'creative-one-page'),
		),
	));

	$wp_customize->add_setting( 'creative_one_page_wocommerce_single_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ) );
    $wp_customize->add_control('creative_one_page_wocommerce_single_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Show / Hide Single Product Page Sidebar','creative-one-page'),
		'section' => 'creative_one_page_woocommerce_settings'
    ));
    
    // single product page sidebar alignment
    $wp_customize->add_setting('creative_one_page_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'creative_one_page_sanitize_choices',
	));
	$wp_customize->add_control('creative_one_page_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single product Page layout', 'creative-one-page'),
		'section'        => 'creative_one_page_woocommerce_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'creative-one-page'),
			'Right Sidebar' => __('Right Sidebar', 'creative-one-page'),
		),
	));

	$wp_customize->add_setting('creative_one_page_show_related_products',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_show_related_products',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Related Product','creative-one-page'),
       'section' => 'creative_one_page_woocommerce_settings',
    ));

	$wp_customize->add_setting('creative_one_page_show_wooproducts_border',array(
       'default' => false,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_show_wooproducts_border',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Product Border','creative-one-page'),
       'section' => 'creative_one_page_woocommerce_settings',
    ));

    $wp_customize->add_setting( 'creative_one_page_wooproducts_per_columns' , array(
		'default'           => 4,
		'transport'         => 'refresh',
		'sanitize_callback' => 'creative_one_page_sanitize_choices',
	) );
	$wp_customize->add_control( 'creative_one_page_wooproducts_per_columns', array(
		'label'    => __( 'Display Product Per Columns', 'creative-one-page' ),
		'section'  => 'creative_one_page_woocommerce_settings',
		'type'     => 'select',
		'choices'  => array(
			'2' => '2',
			'3' => '3',
			'4' => '4',
			'5' => '5',
		),
	)  );

	$wp_customize->add_setting('creative_one_page_wooproducts_per_page',array(
		'default'	=> 9,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));	
	$wp_customize->add_control('creative_one_page_wooproducts_per_page',array(
		'label'	=> __('Display Product Per Page','creative-one-page'),
		'section'	=> 'creative_one_page_woocommerce_settings',
		'type'		=> 'number'
	));

	$wp_customize->add_setting( 'creative_one_page_top_bottom_wooproducts_padding',array(
		'default' => 0,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control( 'creative_one_page_top_bottom_wooproducts_padding',	array(
		'label' => esc_html__( 'Top Bottom Product Padding','creative-one-page' ),
		'section' => 'creative_one_page_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'number'
	));

	$wp_customize->add_setting( 'creative_one_page_left_right_wooproducts_padding',array(
		'default' => 0,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control( 'creative_one_page_left_right_wooproducts_padding',	array(
		'label' => esc_html__( 'Right Left Product Padding','creative-one-page' ),
		'section' => 'creative_one_page_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'number'
	));

	$wp_customize->add_setting( 'creative_one_page_wooproducts_border_radius',array(
		'default' => 0,
		'sanitize_callback'	=> 'creative_one_page_sanitize_number_range',
	));
	$wp_customize->add_control('creative_one_page_wooproducts_border_radius',array(
		'label' => esc_html__( 'Product Border Radius','creative-one-page' ),
		'section' => 'creative_one_page_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type' => 'range'
	));

	$wp_customize->add_setting( 'creative_one_page_wooproducts_box_shadow',array(
		'default' => 0,
		'sanitize_callback'	=> 'creative_one_page_sanitize_number_range',
	));
	$wp_customize->add_control('creative_one_page_wooproducts_box_shadow',array(
		'label' => esc_html__( 'Product Box Shadow','creative-one-page' ),
		'section' => 'creative_one_page_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'range'
	));

	$wp_customize->add_setting('creative_one_page_products_navigation',array(
       'default' => 'Yes',
       'sanitize_callback'	=> 'creative_one_page_sanitize_choices'
    ));
    $wp_customize->add_control('creative_one_page_products_navigation',array(
       'type' => 'radio',
       'label' => __('Woocommerce Products Navigation','creative-one-page'),
       'choices' => array(
            'Yes' => __('Yes','creative-one-page'),
            'No' => __('No','creative-one-page'),
        ),
       'section' => 'creative_one_page_woocommerce_settings',
    ));

	$wp_customize->add_setting( 'creative_one_page_top_bottom_product_button_padding',array(
		'default' => 10,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_top_bottom_product_button_padding',	array(
		'label' => esc_html__( 'Product Button Top Bottom Padding','creative-one-page' ),
		'section' => 'creative_one_page_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'number',
	));

	$wp_customize->add_setting( 'creative_one_page_left_right_product_button_padding',array(
		'default' => 16,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_left_right_product_button_padding',array(
		'label' => esc_html__( 'Product Button Right Left Padding','creative-one-page' ),
		'section' => 'creative_one_page_woocommerce_settings',
		'type'		=> 'number',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'creative_one_page_product_button_border_radius',array(
		'default' => 0,
		'sanitize_callback'	=> 'creative_one_page_sanitize_number_range',
	));
	$wp_customize->add_control('creative_one_page_product_button_border_radius',array(
		'label' => esc_html__( 'Product Button Border Radius','creative-one-page' ),
		'section' => 'creative_one_page_woocommerce_settings',
		'type'		=> 'range',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting('creative_one_page_align_product_sale',array(
        'default' => 'Right',
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_align_product_sale',array(
        'type' => 'radio',
        'label' => __('Product Sale Button Alignment','creative-one-page'),
        'section' => 'creative_one_page_woocommerce_settings',
        'choices' => array(
            'Right' => __('Right','creative-one-page'),
            'Left' => __('Left','creative-one-page'),
        ),
	) );

	$wp_customize->add_setting( 'creative_one_page_border_radius_product_sale',array(
		'default' => 0,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_border_radius_product_sale', array(
        'label'  => __('Product Sale Button Border Radius','creative-one-page'),
        'section'  => 'creative_one_page_woocommerce_settings',
        'type'        => 'number',
        'input_attrs' => array(
        	'step'=> 1,
            'min' => 0,
            'max' => 50,
        )
    ) );

	$wp_customize->add_setting('creative_one_page_product_sale_font_size',array(
		'default'=> 14,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float'
	));
	$wp_customize->add_control('creative_one_page_product_sale_font_size',array(
		'label'	=> __('Product Sale Button Font Size','creative-one-page'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'creative_one_page_woocommerce_settings',
		'type'=> 'number'
	));

	// sale button padding
	$wp_customize->add_setting( 'creative_one_page_sale_padding_top',array(
		'default' => 0,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control( 'creative_one_page_sale_padding_top',	array(
		'label' => esc_html__( ' Product Sale Top Bottom Padding','creative-one-page' ),
		'section' => 'creative_one_page_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'number'
	));

	$wp_customize->add_setting( 'creative_one_page_sale_padding_left',array(
		'default' => 0,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control( 'creative_one_page_sale_padding_left',	array(
		'label' => esc_html__( ' Product Sale Left Right Padding','creative-one-page' ),
		'section' => 'creative_one_page_woocommerce_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'number'
	));

	// Add the Theme Color Option section.
	$wp_customize->add_section( 'creative_one_page_theme_color_option', array( 
		'panel' => 'creative_one_page_panel_id', 
		'title' => esc_html__( 'Theme Color Option', 'creative-one-page' ) )
	);

	$wp_customize->add_setting('creative_one_page_theme_color_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_theme_color_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_theme_color_option'
	));

  	$wp_customize->add_setting( 'creative_one_page_theme_color_first', array(
	    'default' => '#90c908',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_theme_color_first', array(
  		'label' => __( 'Color Option', 'creative-one-page' ),
  		'description' => __('One can change complete theme color on just one click.', 'creative-one-page'),
	    'section' => 'creative_one_page_theme_color_option',
	    'settings' => 'creative_one_page_theme_color_first',
  	)));

	//Top Bar
	$wp_customize->add_section('creative_one_page_topbar',array(
		'title'	=> __('Topbar Section','creative-one-page'),
		'description'	=> __('Add topbar content','creative-one-page'),
		'priority'	=> null,
		'panel' => 'creative_one_page_panel_id',
	));

	$wp_customize->add_setting('creative_one_page_topbar_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_topbar_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_topbar'
	));

	$wp_customize->add_setting('creative_one_page_search_option',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_search_option',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Search','creative-one-page'),
       'section' => 'creative_one_page_topbar'
    ));

	$wp_customize->add_setting('creative_one_page_search_icon',array(
		'default'	=> 'fas fa-search',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_search_icon',array(
		'label'	=> __('Search Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_topbar',
		'type'		=> 'icon'
	)));

    //Sticky Header
	$wp_customize->add_setting( 'creative_one_page_sticky_header',array(
		'default' => false,
      	'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ) );
    $wp_customize->add_control('creative_one_page_sticky_header',array(
    	'type' => 'checkbox',
        'label' => __( 'Sticky Header','creative-one-page' ),
        'section' => 'creative_one_page_topbar'
    ));

	$wp_customize->add_setting('creative_one_page_facebook_icon',array(
		'default'	=> 'fab fa-facebook-f',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_facebook_icon',array(
		'label'	=> __('Facebook Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_topbar',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_facebook_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('creative_one_page_facebook_url',array(
		'label'	=> __('Add Facebook link','creative-one-page'),
		'section'	=> 'creative_one_page_topbar',
		'setting'	=> 'creative_one_page_facebook_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('creative_one_page_twitter_icon',array(
		'default'	=> 'fab fa-twitter',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_twitter_icon',array(
		'label'	=> __('Twitter Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_topbar',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_twitter_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('creative_one_page_twitter_url',array(
		'label'	=> __('Add Twitter link','creative-one-page'),
		'section'	=> 'creative_one_page_topbar',
		'setting'	=> 'creative_one_page_twitter_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('creative_one_page_linkedin_icon',array(
		'default'	=> 'fab fa-linkedin-in',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_linkedin_icon',array(
		'label'	=> __('Linkedin Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_topbar',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_linkedin_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('creative_one_page_linkedin_url',array(
		'label'	=> __('Add Linkedin link','creative-one-page'),
		'section'	=> 'creative_one_page_topbar',
		'setting'	=> 'creative_one_page_linkedin_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('creative_one_page_instagram_icon',array(
		'default'	=> 'fab fa-instagram',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_instagram_icon',array(
		'label'	=> __('Instagram Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_topbar',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_instagram_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('creative_one_page_instagram_url',array(
		'label'	=> __('Add Instagram link','creative-one-page'),
		'section'	=> 'creative_one_page_topbar',
		'setting'	=> 'creative_one_page_instagram_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('creative_one_page_phone_icon',array(
		'default'	=> 'fas fa-phone',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_phone_icon',array(
		'label'	=> __('Phone Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_topbar',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_phone1',array(
		'default'	=> '',
		'sanitize_callback'	=> 'creative_one_page_sanitize_phone_number',
	));
	$wp_customize->add_control('creative_one_page_phone1',array(
		'label'	=> __('Phone Number','creative-one-page'),
		'section'	=> 'creative_one_page_topbar',
		'type'	=> 'text'
	));

	$wp_customize->add_setting('creative_one_page_mail_icon',array(
		'default'	=> 'fas fa-envelope',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_mail_icon',array(
		'label'	=> __('Mail Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_topbar',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_mail1',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_email',
	));
	$wp_customize->add_control('creative_one_page_mail1',array(
		'label'	=> __('Mail Address','creative-one-page'),
		'section'	=> 'creative_one_page_topbar',
		'type'	=> 'text'
	));

	//Menu Settings
	$wp_customize->add_section('creative_one_page_menu_settings',array(
		'title'	=> __('Menus Settings','creative-one-page'),
		'panel' => 'creative_one_page_panel_id',
	));

	$wp_customize->add_setting('creative_one_page_menu_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_menu_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_menu_settings'
	));

	$wp_customize->add_setting('creative_one_page_text_tranform_menu',array(
		'default' => 'Uppercase',
		'sanitize_callback' => 'creative_one_page_sanitize_choices'
 	));
 	$wp_customize->add_control('creative_one_page_text_tranform_menu',array(
		'type' => 'radio',
		'label' => __('Menu Text Transform','creative-one-page'),
		'section' => 'creative_one_page_menu_settings',
		'choices' => array(
		   'Uppercase' => __('Uppercase','creative-one-page'),
		   'Lowercase' => __('Lowercase','creative-one-page'),
		   'Capitalize' => __('Capitalize','creative-one-page'),
		),
	) );

	$wp_customize->add_setting('creative_one_page_menus_font_size',array(
		'default'=> 12,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float'
	));
	$wp_customize->add_control('creative_one_page_menus_font_size',array(
		'label'	=> __('Menus Font Size','creative-one-page'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'creative_one_page_menu_settings',
		'type'=> 'number'
	));

	$wp_customize->add_setting('creative_one_page_menu_weight',array(
		'default'=> '',
		'sanitize_callback'	=> 'creative_one_page_sanitize_choices',
	));
	$wp_customize->add_control('creative_one_page_menu_weight',array(
		'label'	=> __('Menus Font Weight ','creative-one-page'),
		'section'=> 'creative_one_page_menu_settings',
		'type' => 'select',
		'choices' => array(
            '100' => __('100','creative-one-page'),
            '200' => __('200','creative-one-page'),
            '300' => __('300','creative-one-page'),
            '400' => __('400','creative-one-page'),
            '500' => __('500','creative-one-page'),
            '600' => __('600','creative-one-page'),
            '700' => __('700','creative-one-page'),
            '800' => __('800','creative-one-page'),
            '900' => __('900','creative-one-page'),
        ),
	));

	$wp_customize->add_setting('creative_one_page_menus_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'creative_one_page_sanitize_float'
	));
	$wp_customize->add_control('creative_one_page_menus_padding',array(
		'label'	=> __('Menus Padding','creative-one-page'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'creative_one_page_menu_settings',
		'type'=> 'number'
	));

	$wp_customize->add_setting('creative_one_page_menus_item_style',array(
		'default' => '',
		'transport' => 'refresh',
		'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_menus_item_style',array(
		'type' => 'select',
		'section' => 'creative_one_page_menu_settings',
		'label' => __('Menu Hover Effect','creative-one-page'),
		'choices' => array(
			'None' => __('None','creative-one-page'),
			'Zoom In' => __('Zoom In','creative-one-page'),
		),
	) );

	$wp_customize->add_setting( 'creative_one_page_menu_color_settings', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_menu_color_settings', array(
  		'label' => __('Menu Color', 'creative-one-page'),
	    'section' => 'creative_one_page_menu_settings',
	    'settings' => 'creative_one_page_menu_color_settings',
  	)));

  	$wp_customize->add_setting( 'creative_one_page_menu_hover_color_settings', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_menu_hover_color_settings', array(
  		'label' => __('Menu Hover Color', 'creative-one-page'),
	    'section' => 'creative_one_page_menu_settings',
	    'settings' => 'creative_one_page_menu_hover_color_settings',
  	)));

  	$wp_customize->add_setting( 'creative_one_page_submenu_color_settings', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_submenu_color_settings', array(
  		'label' => __('Sub-menu Color', 'creative-one-page'),
	    'section' => 'creative_one_page_menu_settings',
	    'settings' => 'creative_one_page_submenu_color_settings',
  	)));

  	$wp_customize->add_setting( 'creative_one_page_submenu_hover_color_settings', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_submenu_hover_color_settings', array(
  		'label' => __('Sub-menu Hover Color', 'creative-one-page'),
	    'section' => 'creative_one_page_menu_settings',
	    'settings' => 'creative_one_page_submenu_hover_color_settings',
  	)));

	//Slider
	$wp_customize->add_section( 'creative_one_page_slider' , array(
    	'title'      => __( 'Slider Settings', 'creative-one-page' ),
		'priority'   => null,
		'panel' => 'creative_one_page_panel_id'
	) );

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

	$wp_customize->add_setting('creative_one_page_slider_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_slider_hide',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide slider','creative-one-page'),
       'section' => 'creative_one_page_slider'
    ));

    $wp_customize->add_setting('creative_one_page_slider_title_Show_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_slider_title_Show_hide',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Slider Title','creative-one-page'),
       'section' => 'creative_one_page_slider'
    ));

    $wp_customize->add_setting('creative_one_page_slider_content_Show_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_slider_content_Show_hide',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Slider Content','creative-one-page'),
       'section' => 'creative_one_page_slider'
    ));

    $wp_customize->add_setting('creative_one_page_slider_button_show_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_slider_button_show_hide',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Slider Button','creative-one-page'),
       'section' => 'creative_one_page_slider'
    ));

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

		$wp_customize->add_setting( 'creative_one_page_slider_page' . $count, array(
			'default'           => '',
			'sanitize_callback' => 'creative_one_page_sanitize_dropdown_pages'
		) );
		$wp_customize->add_control( 'creative_one_page_slider_page' . $count, array(
			'label'    => __( 'Select Slide Image Page', 'creative-one-page' ),
			'description'	=> __('Size of image should be 1600 x 633','creative-one-page'),
			'section'  => 'creative_one_page_slider',
			'type'     => 'dropdown-pages'
		) );
	}

	//Slider excerpt
	$wp_customize->add_setting( 'creative_one_page_slider_excerpt_length', array(
		'default'              => 20,
		'sanitize_callback'	=> 'absint',
	) );
	$wp_customize->add_control( 'creative_one_page_slider_excerpt_length', array(
		'label'       => esc_html__( 'Slider Excerpt length','creative-one-page' ),
		'section'     => 'creative_one_page_slider',
		'type'        => 'number',
		'settings'    => 'creative_one_page_slider_excerpt_length',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting('creative_one_page_slider_overlay',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_slider_overlay',array(
       'type' => 'checkbox',
       'label' => __('Home Page Slider Overlay','creative-one-page'),
		'description'    => __('This option will add colors over the slider.','creative-one-page'),
       'section' => 'creative_one_page_slider'
    ));

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

	//Opacity
	$wp_customize->add_setting('creative_one_page_slider_image_opacity',array(
      'default'              => 0.7,
      'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control( 'creative_one_page_slider_image_opacity', array(
	'label'       => esc_html__( 'Slider Image Opacity','creative-one-page' ),
	'section'     => 'creative_one_page_slider',
	'type'        => 'select',
	'settings'    => 'creative_one_page_slider_image_opacity',
	'choices' => array(
		'0' =>  esc_attr__('0','creative-one-page'),
		'0.1' =>  esc_attr__('0.1','creative-one-page'),
		'0.2' =>  esc_attr__('0.2','creative-one-page'),
		'0.3' =>  esc_attr__('0.3','creative-one-page'),
		'0.4' =>  esc_attr__('0.4','creative-one-page'),
		'0.5' =>  esc_attr__('0.5','creative-one-page'),
		'0.6' =>  esc_attr__('0.6','creative-one-page'),
		'0.7' =>  esc_attr__('0.7','creative-one-page'),
		'0.8' =>  esc_attr__('0.8','creative-one-page'),
		'0.9' =>  esc_attr__('0.9','creative-one-page')
	),
	));

	$wp_customize->add_setting( 'creative_one_page_slider_speed_option',array(
		'default' => 3000,
		'sanitize_callback'=> 'creative_one_page_sanitize_number_range',
	));
	$wp_customize->add_control( 'creative_one_page_slider_speed_option',array(
		'label' => esc_html__( 'Slider Speed Option','creative-one-page' ),
		'section' => 'creative_one_page_slider',
		'type'        => 'range',
		'input_attrs' => array(
			'min' => 1000,
			'max' => 5000,
			'step' => 500,
		),
	));

	$wp_customize->add_setting('creative_one_page_slider_image_height',array(
		'default'=> __('550','creative-one-page'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_slider_image_height',array(
		'label'	=> __('Slider Image Height','creative-one-page'),
		'section'=> 'creative_one_page_slider',
		'type'=> 'text'
	));

	$wp_customize->add_setting('creative_one_page_slider_button',array(
		'default'=> __('Read More','creative-one-page'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_slider_button',array(
		'label'	=> __('Slider Button Text','creative-one-page'),
		'section'=> 'creative_one_page_slider',
		'type'=> 'text'
	));

	$wp_customize->add_setting('creative_one_page_slider_button_url',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('creative_one_page_slider_button_url',array(
		'label'	=> esc_html__('Add Button Link','creative-one-page'),
		'section'=> 'creative_one_page_slider',
		'type'=> 'url'
	));

	$wp_customize->add_setting('creative_one_page_slider_btn_bg_color', array(
		'default'           => 'var(--primary-color)',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'creative_one_page_slider_btn_bg_color', array(
		'label'    => __('Slider Button Background Color', 'creative-one-page'),
		'section'  => 'creative_one_page_slider',
	)));

	$wp_customize->add_setting('creative_one_page_top_bottom_slider_content_space',array(
		'default'=> '',
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_top_bottom_slider_content_space',array(
		'label'	=> __('Top Bottom Slider Content Space','creative-one-page'),
		'section'=> 'creative_one_page_slider',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'type'=> 'number'
	));

	$wp_customize->add_setting('creative_one_page_left_right_slider_content_space',array(
		'default'=> '',
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_left_right_slider_content_space',array(
		'label'	=> __('Left Right Slider Content Space','creative-one-page'),
		'section'=> 'creative_one_page_slider',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'type'=> 'number'
	));

	// Our Services Settings
	$wp_customize->add_section('creative_one_page_services_setting',array(
		'title'	=> __('Our Services Settings','creative-one-page'),
		'panel' => 'creative_one_page_panel_id',
	));

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

	$wp_customize->add_setting('creative_one_page_our_services_number',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_our_services_number',array(
		'label'	=> __('Increase the services number','creative-one-page'),
		'description' => __('Publish and Refresh the page after select the services number','creative-one-page'),
		'section'=> 'creative_one_page_services_setting',
		'type'=> 'number'
	));

	$count =  get_theme_mod('creative_one_page_our_services_number'); 
        for( $i=1; $i<=$count; $i++) { 

		$wp_customize->add_setting('creative_one_page_our_services_icon'.$i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
	        $wp_customize,'creative_one_page_our_services_icon'.$i,array(
			'label'	=> __('Icon','creative-one-page').$i,
			'transport' => 'refresh',
			'section'	=> 'creative_one_page_services_setting',
			'type'		=> 'icon'
		)));

		$wp_customize->add_setting('creative_one_page_our_services_title'.$i,array(
			'default'=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('creative_one_page_our_services_title'.$i,array(
			'label'	=> __('Title','creative-one-page').$i,
			'section'=> 'creative_one_page_services_setting',
			'type'=> 'text'
		));

		$wp_customize->add_setting('creative_one_page_our_services_text'.$i,array(
			'default'=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('creative_one_page_our_services_text'.$i,array(
			'label'	=> __('Text','creative-one-page').$i,
			'section'=> 'creative_one_page_services_setting',
			'type'=> 'text'
		));
	}

	// Our Work Settings

	$wp_customize->add_section('creative_one_page_projects',array(
		'title' => __("Our Work Settings",'creative-one-page'),
		'panel' => 'creative_one_page_panel_id',
    ));

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

    $wp_customize->add_setting('creative_one_page_projects_title',array(
        'default'=> '',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('creative_one_page_projects_title',array(
        'label' => __('Section Title','creative-one-page'),
        'section'=> 'creative_one_page_projects',
        'setting'=> 'creative_one_page_projects_title',
        'type'=> 'text'
    ));

    $wp_customize->add_setting('creative_one_page_tab_number',array(
        'default'   => '',
        'sanitize_callback' => 'sanitize_text_field',
    ));
    $wp_customize->add_control('creative_one_page_tab_number',array(
        'label' => __('Number of Tabs to show','creative-one-page'),
        'description' => __('Publish and Refresh the page after select the number of tab','creative-one-page'),
        'section'   => 'creative_one_page_projects',
        'type'      => 'number'
    ));

    $count =  get_theme_mod('creative_one_page_tab_number');
    $categories = get_categories();
    $cats = array();
    $i = 0;
    foreach($categories as $category){
        if($i==0){
            $default = $category->slug;
            $i++;
        }
        $cats[$category->slug] = $category->name;
    }
    for($i=1;$i<=$count;$i++) {

        $wp_customize->add_setting('creative_one_page_our_project_tab_title'.$i,array(
            'default'=> '',
            'sanitize_callback' => 'sanitize_text_field'
        ));
        $wp_customize->add_control('creative_one_page_our_project_tab_title'.$i,array(
            'label' => __('Tab Title','creative-one-page').$i,
            'section'=> 'creative_one_page_projects',
            'setting'=> 'creative_one_page_our_project_tab_title'.$i,
            'type'=> 'text'
        ));

        $wp_customize->add_setting('creative_one_page_cate_tab'.$i,array(
            'sanitize_callback' => 'sanitize_text_field',
        ));
        $wp_customize->add_control('creative_one_page_cate_tab'.$i,array(
            'type'    => 'select',
            'choices' => $cats,
            'label' => __('Select Tab project category','creative-one-page').$i,
            'section' => 'creative_one_page_projects',
        ));

        $wp_customize->add_setting('creative_one_page_tab_category_limit'.$i,array(
          'default'   => '',
          'sanitize_callback' => 'sanitize_text_field',
        ));
        $wp_customize->add_control('creative_one_page_tab_category_limit'.$i,array(
          'label' => __('Number of Projects to show in this category','creative-one-page').$i,
          'section'   => 'creative_one_page_projects',
          'type'      => 'number'
        ));
    }

	//Blog Post
	$wp_customize->add_section('creative_one_page_blog_post',array(
		'title'	=> __('Blog Page Settings','creative-one-page'),
		'panel' => 'creative_one_page_panel_id',
	));	

	$wp_customize->add_setting('creative_one_page_blog_post_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_blog_post_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_blog_post'
	));

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

	$wp_customize->add_setting('creative_one_page_date_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_date_hide',array(
       'type' => 'checkbox',
       'label' => __('Post Date','creative-one-page'),
       'section' => 'creative_one_page_blog_post'
    ));

	$wp_customize->add_setting('creative_one_page_date_icon',array(
		'default'	=> 'fa fa-calendar',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_date_icon',array(
		'label'	=> __('Post Date Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_blog_post',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('creative_one_page_author_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_author_hide',array(
       'type' => 'checkbox',
       'label' => __('Author','creative-one-page'),
       'section' => 'creative_one_page_blog_post'
    ));

	$wp_customize->add_setting('creative_one_page_author_icon',array(
		'default'	=> 'fa fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_author_icon',array(
		'label'	=> __('Author Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_blog_post',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('creative_one_page_comment_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_comment_hide',array(
       'type' => 'checkbox',
       'label' => __('Comments','creative-one-page'),
       'section' => 'creative_one_page_blog_post'
    ));

	$wp_customize->add_setting('creative_one_page_comment_icon',array(
		'default'	=> 'fas fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_comment_icon',array(
		'label'	=> __('Comments Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_blog_post',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('creative_one_page_time_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_time_hide',array(
       'type' => 'checkbox',
       'label' => __('Time','creative-one-page'),
       'section' => 'creative_one_page_blog_post'
    ));

	$wp_customize->add_setting('creative_one_page_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_time_icon',array(
		'label'	=> __('Time Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_blog_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_show_post_category',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_show_post_category',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Category','creative-one-page'),
       'section' => 'creative_one_page_blog_post'
    ));

    $wp_customize->add_setting('creative_one_page_show_featured_image_post',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_show_featured_image_post',array(
       'type' => 'checkbox',
       'label' => __('Blog Post Image','creative-one-page'),
       'section' => 'creative_one_page_blog_post'
    ));

    $wp_customize->add_setting( 'creative_one_page_blog_img_border_radius', array(
		'default'=> 0,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	) );
	$wp_customize->add_control( 'creative_one_page_blog_img_border_radius', array(
		'label'       => esc_html__( 'Blog Post Image Border Radius','creative-one-page' ),
		'section'     => 'creative_one_page_blog_post',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 100,
		),
	) );

	$wp_customize->add_setting( 'creative_one_page_blog_img_box_shadow',array(
		'default' => 0,
		'sanitize_callback'    => 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_blog_img_box_shadow',array(
		'label' => esc_html__( 'Blog Post Image Shadow','creative-one-page' ),
		'section' => 'creative_one_page_blog_post',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type' => 'number'
	));

	// Image Dimension Option
	$wp_customize->add_setting('creative_one_page_blog_image_dimension', array(
		'default'           => 'default',
		'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_blog_image_dimension', array(
		'type'    => 'radio',
		'label'   => __('Blog Post Featured Image Dimension', 'creative-one-page'),
		'section' => 'creative_one_page_blog_post',
		'choices' => array(
			'default' => __('Default', 'creative-one-page'),
			'custom'  => __('Custom Image Size', 'creative-one-page'),
		),
	));

	// Custom Width 
	$wp_customize->add_setting('creative_one_page_feature_image_custom_width', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_feature_image_custom_width', array(
		'label'       => __('Featured Image Custom Width', 'creative-one-page'),
		'section'     => 'creative_one_page_blog_post',
		'description' => __('Measurement is in pixel.', 'creative-one-page'),
		'input_attrs' => array(
			'min'  => 0,
			'max'  => 800,
			'step' => 1,
		),
		'type'             => 'number',
		'active_callback'  => 'creative_one_page_blog_image_dimension'
	));

	// Custom Height 
	$wp_customize->add_setting('creative_one_page_feature_image_custom_height', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_feature_image_custom_height', array(
		'label'       => __('Featured Image Custom Height', 'creative-one-page'),
		'section'     => 'creative_one_page_blog_post',
		'description' => __('Measurement is in pixel.', 'creative-one-page'),
		'input_attrs' => array(
			'min'  => 0,
			'max'  => 500,
			'step' => 1,
		),
		'type'             => 'number',
		'active_callback'  => 'creative_one_page_blog_image_dimension'
	));

	$wp_customize->add_setting('creative_one_page_show_first_caps',array(
        'default' => false,
        'sanitize_callback' => 'creative_one_page_sanitize_checkbox',
    ));
	$wp_customize->add_control( 'creative_one_page_show_first_caps',array(
		'label' => esc_html__('First Cap (First Capital Letter)', 'creative-one-page'),
		'type' => 'checkbox',
		'section' => 'creative_one_page_blog_post',
	));

	$wp_customize->add_setting('creative_one_page_blog_post_description_option',array(
    	'default'   => 'Excerpt Content', 
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_blog_post_description_option',array(
        'type' => 'radio',
        'label' => __('Post Description Length','creative-one-page'),
        'section' => 'creative_one_page_blog_post',
        'choices' => array(
            'No Content' => __('No Content','creative-one-page'),
            'Excerpt Content' => __('Excerpt Content','creative-one-page'),
            'Full Content' => __('Full Content','creative-one-page'),
        ),
	) );

    $wp_customize->add_setting( 'creative_one_page_excerpt_number', array(
		'default'              => 20,
		'sanitize_callback'	=> 'absint',
	) );
	$wp_customize->add_control( 'creative_one_page_excerpt_number', array(
		'label'       => esc_html__( 'Excerpt length','creative-one-page' ),
		'section'     => 'creative_one_page_blog_post',
		'type'        => 'number',
		'settings'    => 'creative_one_page_excerpt_number',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting( 'creative_one_page_post_suffix_option', array(
		'default'   => __('...','creative-one-page'), 
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'creative_one_page_post_suffix_option', array(
		'label'       => esc_html__( 'Post Excerpt Indicator Option','creative-one-page' ),
		'section'     => 'creative_one_page_blog_post',
		'type'        => 'text',
		'settings'    => 'creative_one_page_post_suffix_option',
	) );

	$wp_customize->add_setting( 'creative_one_page_metabox_separator_blog_post', array(
		'default'   => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'creative_one_page_metabox_separator_blog_post', array(
		'label'       => esc_html__( 'Meta Box Separator','creative-one-page' ),
		'input_attrs' => array(
            'placeholder' => __( 'Add Meta Separator. e.g.: "|", "/", etc.', 'creative-one-page' ),
        ),
		'section'     => 'creative_one_page_blog_post',
		'type'        => 'text',
		'settings'    => 'creative_one_page_metabox_separator_blog_post',
	) );

	$wp_customize->add_setting('creative_one_page_display_blog_page_post',array(
        'default' => 'In Box',
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_display_blog_page_post',array(
        'type' => 'radio',
        'label' => __('Display Blog Page Post :','creative-one-page'),
        'section' => 'creative_one_page_blog_post',
        'choices' => array(
            'In Box' => __('In Box','creative-one-page'),
            'Without Box' => __('Without Box','creative-one-page'),
        ),
	) );

	$wp_customize->add_setting('creative_one_page_blog_post_alignment',array(
	    'default' => 'Left',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_blog_post_alignment',array(
	    'type' => 'select',
	    'label' => __('Blog Post Alignment','creative-one-page'),
	    'section' => 'creative_one_page_blog_post',
	    'choices' => array(
	    	'Left' => __('Left','creative-one-page'),
	        'Center' => __('Center','creative-one-page'),
	        'Right' => __('Right','creative-one-page')
	    ),
	) );

	$wp_customize->add_setting('creative_one_page_blog_post_pagination',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_blog_post_pagination',array(
       'type' => 'checkbox',
       'label' => __('Pagination in Blog Page','creative-one-page'),
       'section' => 'creative_one_page_blog_post'
    ));

	$wp_customize->add_setting( 'creative_one_page_pagination_settings', array(
        'default'			=> 'Numeric Pagination',
        'sanitize_callback'	=> 'creative_one_page_sanitize_choices'
    ));
    $wp_customize->add_control( 'creative_one_page_pagination_settings', array(
        'section' => 'creative_one_page_blog_post',
        'type' => 'radio',
        'label' => __( 'Post Pagination', 'creative-one-page' ),
        'choices'		=> array(
            'Numeric Pagination'  => __( 'Numeric Pagination', 'creative-one-page' ),
            'next-prev' => __( 'Next / Previous', 'creative-one-page' ),
    )));

	$wp_customize->add_setting('creative_one_page_pagination_alignment',array(
	    'default' => 'Left',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_pagination_alignment',array(
	    'type' => 'select',
	    'label' => __('Pagination Alignment','creative-one-page'),
	    'section' => 'creative_one_page_blog_post',
	    'choices' => array(
	    	'Left' => __('Left','creative-one-page'),
	        'Center' => __('Center','creative-one-page'),
	        'Right' => __('Right','creative-one-page')
	    ),
	) );

	// Button
	$wp_customize->add_section( 'creative_one_page_theme_button', array(
		'title' => __('Button Option','creative-one-page'),
		'panel' => 'creative_one_page_panel_id',
	));

	$wp_customize->add_setting('creative_one_page_theme_button_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_theme_button_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_theme_button'
	));

	$wp_customize->selective_refresh->add_partial( 'creative_one_page_button_text', array(
		'selector' => '.page-box .new-text .read-more-btn',
		'render_callback' => 'creative_one_page_customize_partial_creative_one_page_button_text',
	));

	$wp_customize->add_setting('creative_one_page_button_text',array(
		'default'=> __('Read More','creative-one-page'), 
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_button_text',array(
		'label'	=> __('Add Button Text','creative-one-page'),
		'section'=> 'creative_one_page_theme_button',
		'type'=> 'text'
	));

	$wp_customize->add_setting('creative_one_page_button_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'creative_one_page_sanitize_float'
	));
	$wp_customize->add_control('creative_one_page_button_font_size',array(
		'label'	=> __('Button Font Size','creative-one-page'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'creative_one_page_theme_button',
		'type'=> 'number'
	));

	$wp_customize->add_setting('creative_one_page_btn_font_weight',array(
		'default'=> '',
		'sanitize_callback'	=> 'creative_one_page_sanitize_choices',
	));
	$wp_customize->add_control('creative_one_page_btn_font_weight',array(
		'label'	=> __('Button Font Weight','creative-one-page'),
		'section'=> 'creative_one_page_theme_button',
		'type' => 'select',
		'choices' => array(
            '100' => __('100','creative-one-page'),
            '200' => __('200','creative-one-page'),
            '300' => __('300','creative-one-page'),
            '400' => __('400','creative-one-page'),
            '500' => __('500','creative-one-page'),
            '600' => __('600','creative-one-page'),
            '700' => __('700','creative-one-page'),
            '800' => __('800','creative-one-page'),
            '900' => __('900','creative-one-page'),
        ),
	));

	// button letter spacing
	$wp_customize->add_setting( 'creative_one_page_button_letter_spacing',array(
		'default' => '',
		'sanitize_callback' => 'creative_one_page_sanitize_float'
	));
	$wp_customize->add_control('creative_one_page_button_letter_spacing', array(
		'label'  =>  esc_html__('Button Letter Spacing','creative-one-page'),
		'type'=> 'number',
		'section'  => 'creative_one_page_theme_button',
		'input_attrs' => array(
			'step' => 1,
			'min' => 0,
			'max' => 50,
		)
	));

	$wp_customize->add_setting('creative_one_page_button_text_transform',array(
		'default' => 'Uppercase',
		'sanitize_callback' => 'creative_one_page_sanitize_choices'
 	));
 	$wp_customize->add_control('creative_one_page_button_text_transform',array(
		'type' => 'radio',
		'label' => __('Button Text Transform','creative-one-page'),
		'section' => 'creative_one_page_theme_button',
		'choices' => array(
		   'Uppercase' => __('Uppercase','creative-one-page'),
		   'Lowercase' => __('Lowercase','creative-one-page'),
		   'Capitalize' => __('Capitalize','creative-one-page'),
		),
	) );

	$wp_customize->add_setting('creative_one_page_button_padding_top_bottom',array(
		'default'=> '',
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_button_padding_top_bottom',array(
		'label'	=> __('Top and Bottom Padding','creative-one-page'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'creative_one_page_theme_button',
		'type'=> 'number'
	));

	$wp_customize->add_setting('creative_one_page_button_padding_left_right',array(
		'default'=> '',
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_button_padding_left_right',array(
		'label'	=> __('Left and Right Padding','creative-one-page'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'creative_one_page_theme_button',
		'type'=> 'number'
	));

	$wp_customize->add_setting( 'creative_one_page_button_border_radius', array(
		'default'=> '',
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	) );
	$wp_customize->add_control( 'creative_one_page_button_border_radius', array(
		'label'       => esc_html__( 'Button Border Radius','creative-one-page' ),
		'section'     => 'creative_one_page_theme_button',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	//Single Post Settings
	$wp_customize->add_section('creative_one_page_single_post',array(
		'title'	=> __('Single Post Settings','creative-one-page'),
		'panel' => 'creative_one_page_panel_id',
	));	

	$wp_customize->add_setting('creative_one_page_single_post_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_single_post_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_single_post'
	));

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

	$wp_customize->add_setting('creative_one_page_single_post_date_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_single_post_date_hide',array(
       'type' => 'checkbox',
       'label' => __('Single Post Date','creative-one-page'),
       'section' => 'creative_one_page_single_post'
    ));

	$wp_customize->add_setting('creative_one_page_single_post_date_icon',array(
		'default'	=> 'fa fa-calendar',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_single_post_date_icon',array(
		'label'	=> __('Single Post Date Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_single_post',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('creative_one_page_single_post_author_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_single_post_author_hide',array(
       'type' => 'checkbox',
       'label' => __('Single Post Author','creative-one-page'),
       'section' => 'creative_one_page_single_post'
    ));

	$wp_customize->add_setting('creative_one_page_single_post_author_icon',array(
		'default'	=> 'fa fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_single_post_author_icon',array(
		'label'	=> __('Single Post Author Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_single_post',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('creative_one_page_single_post_comment_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_single_post_comment_hide',array(
       'type' => 'checkbox',
       'label' => __('Single Post Comments','creative-one-page'),
       'section' => 'creative_one_page_single_post'
    ));

	$wp_customize->add_setting('creative_one_page_single_post_comment_icon',array(
		'default'	=> 'fas fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_single_post_comment_icon',array(
		'label'	=> __('Single Post Comments Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_single_post',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('creative_one_page_single_post_time_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_single_post_time_hide',array(
       'type' => 'checkbox',
       'label' => __('Single Post Time','creative-one-page'),
       'section' => 'creative_one_page_single_post'
    ));

	$wp_customize->add_setting('creative_one_page_single_post_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_single_post_time_icon',array(
		'label'	=> __('Single Post Time Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_single_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_tags_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_tags_hide',array(
       'type' => 'checkbox',
       'label' => __('Single Post Tags','creative-one-page'),
       'section' => 'creative_one_page_single_post'
    ));

    $wp_customize->add_setting('creative_one_page_show_featured_image_single_post',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_show_featured_image_single_post',array(
       'type' => 'checkbox',
       'label' => __('Single Post Image','creative-one-page'),
       'section' => 'creative_one_page_single_post'
    ));

    $wp_customize->add_setting( 'creative_one_page_single_img_border_radius', array(
		'default'=> 0,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	) );
	$wp_customize->add_control( 'creative_one_page_single_img_border_radius', array(
		'label'       => esc_html__( 'Single Post Image Border Radius','creative-one-page' ),
		'section'     => 'creative_one_page_single_post',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 100,
		),
	) );

	$wp_customize->add_setting( 'creative_one_page_single_img_box_shadow',array(
		'default' => 0,
		'sanitize_callback'    => 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_single_img_box_shadow',array(
		'label' => esc_html__( 'Single Post Image Shadow','creative-one-page' ),
		'section' => 'creative_one_page_single_post',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type' => 'number'
	));

	$wp_customize->add_setting('creative_one_page_single_post_first_caps',array(
        'default' => false,
        'sanitize_callback' => 'creative_one_page_sanitize_checkbox',
    ));
	$wp_customize->add_control( 'creative_one_page_single_post_first_caps',array(
		'label' => esc_html__('First Cap (First Capital Letter)', 'creative-one-page'),
		'type' => 'checkbox',
		'section' => 'creative_one_page_single_post',
	));

    $wp_customize->add_setting( 'creative_one_page_post_comment',array(
		'default' => true,
		'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
		) );
	$wp_customize->add_control('creative_one_page_post_comment',array(
		'type' => 'checkbox',
		'label' => __('Single Post Comment Box','creative-one-page'),
		'section' => 'creative_one_page_single_post'
		));

	$wp_customize->add_setting( 'creative_one_page_single_post_breadcrumb',array(
		'default' => false,
		'transport' => 'refresh',
      	'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ) );
    $wp_customize->add_control('creative_one_page_single_post_breadcrumb',array(
    	'type' => 'checkbox',
        'label' => __( 'Show / Hide Single Post Breadcrumb','creative-one-page' ),
        'section' => 'creative_one_page_single_post'
    ));

    // show/hide single post pagination
    $wp_customize->add_setting('creative_one_page_show_single_post_pagination',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_show_single_post_pagination',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Pagination','creative-one-page'),
       'section' => 'creative_one_page_single_post'
    ));

    $wp_customize->add_setting('creative_one_page_category_show_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_category_show_hide',array(
       'type' => 'checkbox',
       'label' => __('Single Post Category','creative-one-page'),
       'section' => 'creative_one_page_single_post'
    ));

    $wp_customize->add_setting('creative_one_page_title_comment_form',array(
       'default' => __('Leave a Reply','creative-one-page'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('creative_one_page_title_comment_form',array(
       'type' => 'text',
       'label' => __('Comment Form Heading Text','creative-one-page'),
       'section' => 'creative_one_page_single_post'
    ));

    $wp_customize->add_setting('creative_one_page_comment_form_button_content',array(
       'default' => __('Post Comment','creative-one-page'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('creative_one_page_comment_form_button_content',array(
       'type' => 'text',
       'label' => __('Comment Form Button Text','creative-one-page'),
       'section' => 'creative_one_page_single_post'
    ));

    //Comment Textarea Width
    $wp_customize->add_setting( 'creative_one_page_comment_width', array(
		'default'=> '100',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(
	    'creative_one_page_comment_width', array(
		'label'  => __('Comment Textarea Width','creative-one-page'),
		'section'  => 'creative_one_page_single_post',
		'description' => __('Measurement is in %.','creative-one-page'),
		'input_attrs' => array(
		   'step'=> 1,
		   'min' => 0,
		   'max' => 100,
		),
		'type'		=> 'number'
    ));

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

	//Grid Post Settings
	$wp_customize->add_section('creative_one_page_grid_post',array(
		'title'	=> __('Grid Post Settings','creative-one-page'),
		'panel' => 'creative_one_page_panel_id',
	));	

	$wp_customize->add_setting('creative_one_page_grid_post_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_grid_post_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_grid_post'
	));

	$wp_customize->add_setting('creative_one_page_grid_post_date',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_grid_post_date',array(
       'type' => 'checkbox',
       'label' => __('Post Date','creative-one-page'),
       'section' => 'creative_one_page_grid_post'
    ));

    $wp_customize->add_setting('creative_one_page_grid_post_date_icon',array(
		'default'	=> 'fa fa-calendar',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_grid_post_date_icon',array(
		'label'	=> __('Date Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_grid_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_grid_post_author',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_grid_post_author',array(
       'type' => 'checkbox',
       'label' => __('Post Author','creative-one-page'),
       'section' => 'creative_one_page_grid_post'
    ));

    $wp_customize->add_setting('creative_one_page_grid_post_author_icon',array(
		'default'	=> 'fa fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_grid_post_author_icon',array(
		'label'	=> __('Author Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_grid_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_grid_post_comment',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_grid_post_comment',array(
       'type' => 'checkbox',
       'label' => __('Post Comment','creative-one-page'),
       'section' => 'creative_one_page_grid_post'
    ));

    $wp_customize->add_setting('creative_one_page_grid_post_comment_icon',array(
		'default'	=> 'fas fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_grid_post_comment_icon',array(
		'label'	=> __('Comment Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_grid_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_grid_post_time',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_grid_post_time',array(
       'type' => 'checkbox',
       'label' => __('Post Time','creative-one-page'),
       'section' => 'creative_one_page_grid_post'
    ));

    $wp_customize->add_setting('creative_one_page_grid_post_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_grid_post_time_icon',array(
		'label'	=> __('Time Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_grid_post',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_grid_post_alignment',array(
	    'default' => 'Left',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_grid_post_alignment',array(
	    'type' => 'select',
	    'label' => __('Grid Post Alignment','creative-one-page'),
	    'section' => 'creative_one_page_grid_post',
	    'choices' => array(
	    	'Left' => __('Left','creative-one-page'),
	        'Center' => __('Center','creative-one-page'),
	        'Right' => __('Right','creative-one-page')
	    ),
	) );

	$wp_customize->add_setting('creative_one_page_grid_post_description_option',array(
    	'default'   => 'Excerpt Content',
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_grid_post_description_option',array(
        'type' => 'radio',
        'label' => __('Post Description Length','creative-one-page'),
        'section' => 'creative_one_page_grid_post',
        'choices' => array(
            'No Content' => __('No Content','creative-one-page'),
            'Excerpt Content' => __('Excerpt Content','creative-one-page'),
            'Full Content' => __('Full Content','creative-one-page'),
        ),
	) );

	$wp_customize->add_setting( 'creative_one_page_grid_excerpt_number', array(
		'default'              => 20,
		'sanitize_callback'	=> 'absint',
	) );
	$wp_customize->add_control( 'creative_one_page_grid_excerpt_number', array(
		'label'       => esc_html__( 'Excerpt length','creative-one-page' ),
		'section'     => 'creative_one_page_grid_post',
		'type'        => 'number',
		'settings'    => 'creative_one_page_grid_excerpt_number',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 50,
		),
	) );
	
	$wp_customize->add_setting( 'creative_one_page_grid_post_suffix_option', array(
		'default'   => __('...','creative-one-page'),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'creative_one_page_grid_post_suffix_option', array(
		'label'       => esc_html__( 'Excerpt Indicator Option','creative-one-page' ),
		'section'     => 'creative_one_page_grid_post',
		'type'        => 'text',
		'settings'    => 'creative_one_page_grid_post_suffix_option',
	) );

	$wp_customize->add_setting( 'creative_one_page_metabox_separator_grid_post', array(
		'default'   => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'creative_one_page_metabox_separator_grid_post', array(
		'label'       => esc_html__( 'Meta Box Separator','creative-one-page' ),
		'input_attrs' => array(
            'placeholder' => __( 'Add Meta Separator. e.g.: "|", "/", etc.', 'creative-one-page' ),
        ),
		'section'     => 'creative_one_page_grid_post',
		'type'        => 'text',
		'settings'    => 'creative_one_page_metabox_separator_grid_post',
	) );

    $wp_customize->add_setting('creative_one_page_show_featured_image_grid_post',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_show_featured_image_grid_post',array(
       'type' => 'checkbox',
       'label' => __('Grid Post Image','creative-one-page'),
       'section' => 'creative_one_page_grid_post'
    ));

    $wp_customize->add_setting( 'creative_one_page_grid_img_border_radius', array(
		'default'=> 0,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	) );
	$wp_customize->add_control( 'creative_one_page_grid_img_border_radius', array(
		'label'       => esc_html__( 'Grid Post Image Border Radius','creative-one-page' ),
		'section'     => 'creative_one_page_grid_post',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 100,
		),
	) );

	$wp_customize->add_setting('creative_one_page_display_grid_page_post',array(
        'default' => 'In Box',
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_display_grid_page_post',array(
        'type' => 'radio',
        'label' => __('Display Grid Post Box :','creative-one-page'),
        'section' => 'creative_one_page_grid_post',
        'choices' => array(
            'In Box' => __('In Box','creative-one-page'),
            'Without Box' => __('Without Box','creative-one-page'),
        ),
	) );

	//Related Post Settings
	$wp_customize->add_section('creative_one_page_related_post',array(
		'title'	=> __('Related Post Settings','creative-one-page'),
		'panel' => 'creative_one_page_panel_id',
	));	

	$wp_customize->add_setting('creative_one_page_related_post_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_related_post_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_related_post'
	));

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

	$wp_customize->add_setting( 'creative_one_page_show_related_post',array(
		'default' => true,
      	'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ) );
    $wp_customize->add_control('creative_one_page_show_related_post',array(
    	'type' => 'checkbox',
        'label' => __( 'Related Post','creative-one-page' ),
        'section' => 'creative_one_page_related_post'
    ));

    $wp_customize->add_setting('creative_one_page_related_posts_taxanomies_options',array(
        'default' => 'categories',
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_related_posts_taxanomies_options',array(
        'type' => 'radio',
        'label' => __('Related Post Taxonomies','creative-one-page'),
        'section' => 'creative_one_page_related_post',
        'choices' => array(
            'categories' => __('Categories','creative-one-page'),
            'tags' => __('Tags','creative-one-page'),
        ),
	) );

	$wp_customize->add_setting('creative_one_page_related_post_title',array(
		'default'=> __('Related Posts','creative-one-page'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_related_post_title',array(
		'label'	=> __('Related Post Title','creative-one-page'),
		'section'=> 'creative_one_page_related_post',
		'type'=> 'text'
	));

    $wp_customize->add_setting('creative_one_page_show_featured_image_related_post',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_show_featured_image_related_post',array(
       'type' => 'checkbox',
       'label' => __('Related Post Image','creative-one-page'),
       'section' => 'creative_one_page_related_post'
    ));

   	$wp_customize->add_setting('creative_one_page_related_posts_number',array(
		'default'=> 3,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_related_posts_number',array(
		'label'	=> __('Related Post Number','creative-one-page'),
		'section'=> 'creative_one_page_related_post',
		'type'=> 'number',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
	));

	$wp_customize->add_setting('creative_one_page_related_post_excerpt_number',array(
		'default'=> 20,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_related_post_excerpt_number',array(
		'label'	=> __('Related Post Content Limit','creative-one-page'),
		'section'=> 'creative_one_page_related_post',
		'type'=> 'number',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
	));

	$wp_customize->add_setting('creative_one_page_related_date_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_related_date_hide',array(
       'type' => 'checkbox',
       'label' => __('Post Date','creative-one-page'),
       'section' => 'creative_one_page_related_post'
    ));

	$wp_customize->add_setting('creative_one_page_related_date_icon',array(
		'default'	=> 'fa fa-calendar',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_related_date_icon',array(
		'label'	=> __('Post Date Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_related_post',
		'type'		=> 'icon'
	)));
	
	$wp_customize->add_setting('creative_one_page_related_button_text',array(
		'default'=> esc_html__('Read More','creative-one-page'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_related_button_text',array(
		'label'	=> esc_html__('Add Button Text','creative-one-page'),
		'input_attrs' => array(
        'placeholder' => esc_html__( 'Read More', 'creative-one-page' ),
        ),
		'section'=> 'creative_one_page_related_post',
		'type'=> 'text'
	));

	//Layouts
	$wp_customize->add_section('creative_one_page_left_right', array(
		'title'    => __('Layout Settings', 'creative-one-page'),
		'priority' => null,
		'panel'    => 'creative_one_page_panel_id',
	));

	$wp_customize->add_setting('creative_one_page_left_right_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_left_right_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_left_right'
	));

	$wp_customize->add_setting('creative_one_page_theme_options',array(
        'default' => 'Default',
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_theme_options',array(
        'type' => 'radio',
        'label' => __('Container Box','creative-one-page'),
        'description' => __('Here you can change the Width layout. ','creative-one-page'),
        'section' => 'creative_one_page_left_right',
        'choices' => array(
            'Default' => __('Default','creative-one-page'),
            'Container' => __('Container','creative-one-page'),
            'Box Container' => __('Box Container','creative-one-page'),
        ),
	) );

	$wp_customize->add_setting('creative_one_page_preloader_option',array(
       'default' => false,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_preloader_option',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Preloader','creative-one-page'),
       'section' => 'creative_one_page_left_right'
    ));

    $wp_customize->add_setting('creative_one_page_preloader_type_options', array(
		'default'           => 'Preloader 1',
		'sanitize_callback' => 'creative_one_page_sanitize_choices',
	));
	$wp_customize->add_control('creative_one_page_preloader_type_options',array(
		'type'           => 'radio',
		'label'          => __('Preloader Type', 'creative-one-page'),
		'section'        => 'creative_one_page_left_right',
		'choices'        => array(
			'Preloader 1'  => __('Preloader 1', 'creative-one-page'),
			'Preloader 2' => __('Preloader 2', 'creative-one-page'),
		),
	));

	$wp_customize->add_setting('creative_one_page_preloader_bg_image',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'creative_one_page_preloader_bg_image',array(
        'label' => __('Preloader Background Image','creative-one-page'),
        'section' => 'creative_one_page_left_right'
	)));

    $wp_customize->add_setting( 'creative_one_page_loader_background_color_first', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_loader_background_color_first', array(
  		'label' => __('Background Color for Preloader', 'creative-one-page'),
	    'section' => 'creative_one_page_left_right',
	    'settings' => 'creative_one_page_loader_background_color_first',
  	)));

  	$wp_customize->add_setting( 'creative_one_page_breadcrumb_color', array(
	    'default' => '#fff',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_breadcrumb_color', array(
  		'label' => __('Breadcrumb Color', 'creative-one-page'),
	    'section' => 'creative_one_page_left_right',
	    'settings' => 'creative_one_page_breadcrumb_color',
  	)));

  	$wp_customize->add_setting( 'creative_one_page_breadcrumb_bg_color', array(
	    'default' => 'var(--primary-color)',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_breadcrumb_bg_color', array(
  		'label' => __('Breadcrumb Background Color', 'creative-one-page'),
	    'section' => 'creative_one_page_left_right',
	    'settings' => 'creative_one_page_breadcrumb_bg_color',
  	)));

    $wp_customize->add_setting( 'creative_one_page_single_page_breadcrumb',array(
		'default' => false,
      	'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ) );
    $wp_customize->add_control('creative_one_page_single_page_breadcrumb',array(
    	'type' => 'checkbox',
        'label' => __( 'Show / Hide Single Page Breadcrumb','creative-one-page' ),
        'section' => 'creative_one_page_left_right'
    ));

	$wp_customize->add_setting('creative_one_page_layout_options', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'creative_one_page_sanitize_choices',
	));
	$wp_customize->add_control('creative_one_page_layout_options',array(
		'type'           => 'radio',
		'label'          => __('Blog Page Layouts', 'creative-one-page'),
		'section'        => 'creative_one_page_left_right',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'creative-one-page'),
			'Right Sidebar' => __('Right Sidebar', 'creative-one-page'),
			'One Column'    => __('One Column', 'creative-one-page'),
			'Three Columns' => __('Three Columns', 'creative-one-page'),
			'Four Columns'  => __('Four Columns', 'creative-one-page'),
			'Grid Layout'   => __('Grid Layout', 'creative-one-page')
		),
	));

	$wp_customize->add_setting('creative_one_page_single_post_sidebar_layout', array(
		'default'           => 'Right Sidebar', 
		'sanitize_callback' => 'creative_one_page_sanitize_choices',
	));
	$wp_customize->add_control('creative_one_page_single_post_sidebar_layout',array(
		'type'           => 'radio',
		'label'          => __('Single Post Layouts', 'creative-one-page'),
		'section'        => 'creative_one_page_left_right',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'creative-one-page'),
			'Right Sidebar' => __('Right Sidebar', 'creative-one-page'),
			'One Column'    => __('One Column', 'creative-one-page'),
		),
	));

	$wp_customize->add_setting('creative_one_page_single_page_sidebar_layout', array(
		'default'           => 'One Column',
		'sanitize_callback' => 'creative_one_page_sanitize_choices',
	));
	$wp_customize->add_control('creative_one_page_single_page_sidebar_layout',array(
		'type'           => 'radio',
		'label'          => __('Single Page Layouts', 'creative-one-page'),
		'section'        => 'creative_one_page_left_right',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'creative-one-page'),
			'Right Sidebar' => __('Right Sidebar', 'creative-one-page'),
			'One Column'    => __('One Column', 'creative-one-page'),
		),
	));

	//no Result Found
	$wp_customize->add_section('creative_one_page_noresult_found',array(
		'title'	=> __('No Result Found','creative-one-page'),
		'panel' => 'creative_one_page_panel_id',
	));	

	$wp_customize->add_setting('creative_one_page_noresult_found_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_noresult_found_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_noresult_found'
	));

	$wp_customize->add_setting('creative_one_page_nosearch_found_title',array(
		'default'=> __('Nothing Found','creative-one-page'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_nosearch_found_title',array(
		'label'	=> __('No Result Found Title','creative-one-page'),
		'section'=> 'creative_one_page_noresult_found',
		'type'=> 'text'
	));

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

	$wp_customize->add_setting('creative_one_page_show_noresult_search',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_show_noresult_search',array(
       'type' => 'checkbox',
       'label' => __('No Result search','creative-one-page'),
       'section' => 'creative_one_page_noresult_found'
    ));

	//404 Page Setting
	$wp_customize->add_section('creative_one_page_404_page_setting',array(
		'title'	=> __('404 Page','creative-one-page'),
		'panel' => 'creative_one_page_panel_id',
	));	

	$wp_customize->add_setting('creative_one_page_404_page_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_404_page_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_404_page_setting'
	));

	$wp_customize->add_setting('creative_one_page_title_404_page',array(
		'default'=> __('404 Not Found','creative-one-page'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_title_404_page',array(
		'label'	=> __('404 Page Title','creative-one-page'),
		'section'=> 'creative_one_page_404_page_setting',
		'type'=> 'text'
	));

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

	$wp_customize->add_setting('creative_one_page_button_404_page',array(
		'default'=> __('Back to Home Page','creative-one-page'), 
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_button_404_page',array(
		'label'	=> __('404 Page Button','creative-one-page'),
		'section'=> 'creative_one_page_404_page_setting',
		'type'=> 'text'
	));

	//Responsive Media Settings
	$wp_customize->add_section('creative_one_page_responsive_setting',array(
		'title'	=> __('Responsive Settings','creative-one-page'),
		'panel' => 'creative_one_page_panel_id',
	));

	$wp_customize->add_setting('creative_one_page_responsive_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_responsive_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_responsive_setting'
	));

	$wp_customize->add_setting('creative_one_page_button_alignment',array(
        'default' => 'Center',
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_button_alignment',array(
        'type' => 'select',
        'label' => __('Menu Button Alignment','creative-one-page'),
        'section' => 'creative_one_page_responsive_setting',
        'choices' => array(
            'Left' => __('Left','creative-one-page'),
            'Right' => __('Right','creative-one-page'),
            'Center' => __('Center','creative-one-page'),
        ),
	) );

	$wp_customize->add_setting( 'creative_one_page_toggle_button_color_settings', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'creative_one_page_toggle_button_color_settings', array(
  		'label' => __('Toggle Button Color', 'creative-one-page'),
	    'section' => 'creative_one_page_responsive_setting',
	    'settings' => 'creative_one_page_toggle_button_color_settings',
  	)));

	$wp_customize->add_setting('creative_one_page_open_menu_icon',array(
		'default'	=> 'fas fa-bars',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_open_menu_icon',array(
		'label'	=> __('Open Menu Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_responsive_setting',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_close_menu_icon',array(
		'default'	=> 'far fa-times-circle',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_close_menu_icon',array(
		'label'	=> __('Close Menu Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_responsive_setting',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('creative_one_page_responsive_slider',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_responsive_slider',array(
       'type' => 'checkbox',
       'label' => __('Slider','creative-one-page'),
       'section' => 'creative_one_page_responsive_setting'
    ));

    $wp_customize->add_setting('creative_one_page_responsive_scroll',array(
       'default' => true,
       'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
    ));
    $wp_customize->add_control('creative_one_page_responsive_scroll',array(
       'type' => 'checkbox',
       'label' => __('Scroll To Top','creative-one-page'),
       'section' => 'creative_one_page_responsive_setting'
    ));

	$wp_customize->add_setting('creative_one_page_sidebar_hide_show',array(
		'default' => true,
		'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
	 ));
	 $wp_customize->add_control('creative_one_page_sidebar_hide_show',array(
		'type' => 'checkbox',
		'label' => __('Sidebar','creative-one-page'),
		'section' => 'creative_one_page_responsive_setting'
	 ));

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

	$wp_customize->add_control('creative_one_page_sidebar_animation',array(
	    'type' => 'checkbox',
	    'label' => __( 'Show / Hide Animations','creative-one-page' ),
	    'section' => 'creative_one_page_left_right'
	));

	//footer
	$wp_customize->add_section('creative_one_page_footer_section', array(
		'title'       => __('Footer Text', 'creative-one-page'),
		'priority'    => null,
		'panel'       => 'creative_one_page_panel_id',
	));

	$wp_customize->add_setting('creative_one_page_footer_premium_info',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('creative_one_page_footer_premium_info',array(
		'type'=> 'hidden',
		'description' => "<p>". esc_html__('Upgrade to premium for more features.','creative-one-page') ."</p><a target='_blank' href='". esc_url(CREATIVE_ONE_PAGE_BUY_NOW) ." '>". esc_html__('Upgrade to Pro','creative-one-page') ."</a>",
		'section'=> 'creative_one_page_footer_section'
	));

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

	$wp_customize->add_setting('creative_one_page_show_hide_footer',array(
		'default' => true,
		'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
	));
	$wp_customize->add_control('creative_one_page_show_hide_footer',array(
     	'type' => 'checkbox',
        'label' => __('Show / Hide Footer','creative-one-page'),
        'section' => 'creative_one_page_footer_section',
	));

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

    $wp_customize->add_setting('creative_one_page_footer_widget_bg_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'creative_one_page_footer_widget_bg_color', array(
		'label'    => __('Footer Widget Background Color', 'creative-one-page'),
		'section'  => 'creative_one_page_footer_section',
	)));

	$wp_customize->add_setting('creative_one_page_footer_widget_bg_image',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'creative_one_page_footer_widget_bg_image',array(
        'label' => __('Footer Widget Background Image','creative-one-page'),
        'section' => 'creative_one_page_footer_section'
	)));

	$wp_customize->add_setting('creative_one_page_footer_heading',array(
	    'default' => 'Left',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_footer_heading',array(
	    'type' => 'select',
	    'label' => __('Footer Heading Alignment','creative-one-page'),
	    'section' => 'creative_one_page_footer_section',
	    'choices' => array(
	    	'Left' => __('Left','creative-one-page'),
	        'Center' => __('Center','creative-one-page'),
	        'Right' => __('Right','creative-one-page')
	    ),
	) );

	$wp_customize->add_setting('creative_one_page_footer_content',array(
	    'default' => 'Left',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_footer_content',array(
	    'type' => 'select',
	    'label' => __('Footer Content Alignment','creative-one-page'),
	    'section' => 'creative_one_page_footer_section',
	    'choices' => array(
	    	'Left' => __('Left','creative-one-page'),
	        'Center' => __('Center','creative-one-page'),
	        'Right' => __('Right','creative-one-page')
	    ),
	) );

	$wp_customize->add_setting('creative_one_page_footer_font_size',array(
		'default'=> 24,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float'
	));
	$wp_customize->add_control('creative_one_page_footer_font_size',array(
		'label'	=> __('Footer Heading Font Size','creative-one-page'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'creative_one_page_footer_section',
		'type'=> 'number'
	));

	$wp_customize->add_setting('creative_one_page_footer_heading_font_weight',array(
        'default' => '600',
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
    ));
    $wp_customize->add_control('creative_one_page_footer_heading_font_weight',array(
        'type' => 'select',
        'label' => __('Footer Heading Font Weight','creative-one-page'),
        'section' => 'creative_one_page_footer_section',
        'choices' => array(
            '100' => __('100','creative-one-page'),
            '200' => __('200','creative-one-page'),
            '300' => __('300','creative-one-page'),
            '400' => __('400','creative-one-page'),
            '500' => __('500','creative-one-page'),
            '600' => __('600','creative-one-page'),
            '700' => __('700','creative-one-page'),
            '800' => __('800','creative-one-page'),
            '900' => __('900','creative-one-page'),
        ),
	) );

	$wp_customize->add_setting('creative_one_page_footer_text_tranform',array(
		'default' => 'Capitalize',
		'sanitize_callback' => 'creative_one_page_sanitize_choices'
 	));
 	$wp_customize->add_control('creative_one_page_footer_text_tranform',array(
		'type' => 'radio',
		'label' => __('Footer Heading Text Transform','creative-one-page'),
		'section' => 'creative_one_page_footer_section',
		'choices' => array(
		   'Uppercase' => __('Uppercase','creative-one-page'),
		   'Lowercase' => __('Lowercase','creative-one-page'),
		   'Capitalize' => __('Capitalize','creative-one-page'),
		),
	) );

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

	$wp_customize->add_setting('creative_one_page_show_hide_copyright',array(
		'default' => true,
		'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
	));
	$wp_customize->add_control('creative_one_page_show_hide_copyright',array(
     	'type' => 'checkbox',
      'label' => __('Show / Hide Copyright','creative-one-page'),
      'section' => 'creative_one_page_footer_section',
	));

	$wp_customize->add_setting('creative_one_page_footer_copy', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control('creative_one_page_footer_copy', array(
		'label'   => __('Copyright Text', 'creative-one-page'),
		'section' => 'creative_one_page_footer_section',
		'type'    => 'text',
	));

	$wp_customize->add_setting('creative_one_page_copyright_content_align',array(
        'default' => 'center',
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_copyright_content_align',array(
        'type' => 'select',
        'label' => __('Copyright Text Alignment ','creative-one-page'),
        'section' => 'creative_one_page_footer_section',
        'choices' => array(
            'left' => __('Left','creative-one-page'),
            'right' => __('Right','creative-one-page'),
            'center' => __('Center','creative-one-page'),
        ),
	) );

	$wp_customize->add_setting('creative_one_page_footer_content_font_size',array(
		'default'=> 16,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_footer_content_font_size',array(
		'label' => esc_html__( 'Copyright Font Size','creative-one-page' ),
		'section'=> 'creative_one_page_footer_section',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
        'type' => 'number',
	));

	$wp_customize->add_setting('creative_one_page_copyright_padding',array(
		'default'=> 15,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_copyright_padding',array(
		'label'	=> __('Copyright Padding','creative-one-page'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'creative_one_page_footer_section',
		'type'=> 'number'
	));

	$wp_customize->add_setting('creative_one_page_footer_text_color', array(
		'default'           => '#fff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'creative_one_page_footer_text_color', array(
		'label'    => __('Copyright Text Color', 'creative-one-page'),
		'section'  => 'creative_one_page_footer_section',
	)));

	$wp_customize->add_setting('creative_one_page_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, 'creative_one_page_footer_text_bg_color', array(
		'label'    => __('Copyright Background Color', 'creative-one-page'),
		'section'  => 'creative_one_page_footer_section',
	)));

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

	$wp_customize->add_setting('creative_one_page_enable_disable_scroll',array(
        'default' => true,
        'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
	));
	$wp_customize->add_control('creative_one_page_enable_disable_scroll',array(
     	'type' => 'checkbox',
      	'label' => __('Show / Hide Scroll Top Button','creative-one-page'),
      	'section' => 'creative_one_page_footer_section',
	));

	$wp_customize->add_setting('creative_one_page_back_to_top_icon',array(
		'default'	=> 'fas fa-chevron-up',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
        $wp_customize,'creative_one_page_back_to_top_icon',array(
		'label'	=> __('Scroll Back to Top Icon','creative-one-page'),
		'transport' => 'refresh',
		'section'	=> 'creative_one_page_footer_section',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('creative_one_page_back_to_top_icon_bg_color', array(
		'default'           => 'var(--primary-color)',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'creative_one_page_back_to_top_icon_bg_color', array(
		'label'    => __('Back to Top Background Color', 'creative-one-page'),
		'section'  => 'creative_one_page_footer_section',
	)));

    $wp_customize->add_setting('creative_one_page_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, 'creative_one_page_back_to_top_bg_hover_color', array(
		'label'    => __('Back to Top Background Hover Color', 'creative-one-page'),
		'section'  => 'creative_one_page_footer_section',
	)));

	$wp_customize->add_setting('creative_one_page_scroll_setting',array(
        'default' => 'Right',
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_scroll_setting',array(
        'type' => 'select',
        'label' => __('Scroll Back to Top Position','creative-one-page'),
        'section' => 'creative_one_page_footer_section',
        'choices' => array(
            'Left' => __('Left','creative-one-page'),
            'Right' => __('Right','creative-one-page'),
            'Center' => __('Center','creative-one-page'),
        ),
	) );

	$wp_customize->add_setting('creative_one_page_scroll_font_size_icon',array(
		'default'=> 20,
		'sanitize_callback'	=> 'creative_one_page_sanitize_float',
	));
	$wp_customize->add_control('creative_one_page_scroll_font_size_icon',array(
		'label'	=> __('Scroll Icon Font Size','creative-one-page'),
		'section'=> 'creative_one_page_footer_section',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 30,
        ),
        'type' => 'number',
	)	);

	//Footer Social Icon
	$wp_customize->add_section( 'creative_one_page_footer_social_icon' , array(
    	'title'      => __( 'Footer Social Icon Settings', 'creative-one-page' ),
		'panel' => 'creative_one_page_panel_id'
	) );

	$wp_customize->add_setting('creative_one_page_show_hide_footer_social_icon',array(
		'default' => false,
		'sanitize_callback'	=> 'creative_one_page_sanitize_checkbox'
	));
	$wp_customize->add_control('creative_one_page_show_hide_footer_social_icon',array(
     	'type' => 'checkbox',
      	'label' => __('Show / Hide Footer Social Icon','creative-one-page'),
      	'section' => 'creative_one_page_footer_social_icon',
	));

	for ( $creative_one_page_j = 1; $creative_one_page_j <= 5; $creative_one_page_j++ ) {
		$wp_customize->add_setting('creative_one_page_social_icon_url' .$creative_one_page_j,array(
			'default'	=> '',
			'sanitize_callback'	=> 'esc_url_raw'
		));	
		$wp_customize->add_control('creative_one_page_social_icon_url' .$creative_one_page_j,array(
			'label'	=> __('Add Social link','creative-one-page'),
			'section'	=> 'creative_one_page_footer_social_icon',
			'setting'	=> 'creative_one_page_social_icon_url' .$creative_one_page_j,
			'type'	=> 'url'
		));

		$wp_customize->add_setting('creative_one_page_select_social_icon' .$creative_one_page_j,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control(new Creative_One_Page_Icon_Changer(
	        $wp_customize,'creative_one_page_select_social_icon' .$creative_one_page_j,array(
			'label'	=> __('Add Social Icon','creative-one-page'),
			'transport' => 'refresh',
			'section'	=> 'creative_one_page_footer_social_icon',
			'type'		=> 'icon'
		)));
	}

	$wp_customize->add_setting('creative_one_page_align_footer_social_icon',array(
        'default' => 'center',
        'sanitize_callback' => 'creative_one_page_sanitize_choices'
	));
	$wp_customize->add_control('creative_one_page_align_footer_social_icon',array(
        'type' => 'select',
        'label' => __('Social Icon Alignment ','creative-one-page'),
        'section' => 'creative_one_page_footer_social_icon',
        'choices' => array(
            'left' => __('Left','creative-one-page'),
            'right' => __('Right','creative-one-page'),
            'center' => __('Center','creative-one-page'),
        ),
	) );

	$wp_customize->add_setting('creative_one_page_footer_icon_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'creative_one_page_sanitize_float'
	));
	$wp_customize->add_control('creative_one_page_footer_icon_font_size',array(
		'label'	=> __('Footer Icon Font Size','creative-one-page'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'creative_one_page_footer_social_icon',
		'type'=> 'number'
	));

	$wp_customize->add_setting('creative_one_page_footer_icon_color', array(
		'default'           => '#fff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'creative_one_page_footer_icon_color', array(
		'label'    => __('Icon Color', 'creative-one-page'),
		'section'  => 'creative_one_page_footer_social_icon',
	)));

	// Copyright Sticky //
	$wp_customize->add_setting( 'creative_one_page_copyright_sticky',array(
      'default' => 0,
      'transport' => 'refresh',
      'sanitize_callback' => 'creative_one_page_sanitize_checkbox'
    ) );
    $wp_customize->add_control('creative_one_page_copyright_sticky',array(
		'type' => 'checkbox',
      'label' => __('Show / Hide Sticky Copyright','creative-one-page'),
      'section' => 'creative_one_page_footer_section',
    ));

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

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

/**
 * Singleton class for handling the theme's customizer integration.
 *
 * @since  1.0.0
 * @access public
 */
final class Creative_One_Page_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 concreative_one_page_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('Creative_One_Page_Customize_Section_Pro');

		// Register sections.
		$manager->add_section(
			new Creative_One_Page_Customize_Section_Pro(
				$manager,
				'creative_one_page_example_1',
				array(
					'priority' => 9,
					'title'    => esc_html__('Creative One Page', 'creative-one-page'),
					'pro_text' => esc_html__('Get Pro', 'creative-one-page'),
					'pro_url'  => esc_url('https://www.themescaliber.com/products/premium-one-page-wordpress-theme/'),
				)
			)
		);

		$manager->add_section(
			new Creative_One_Page_Customize_Section_Pro(
				$manager,
				'creative_one_page_doc_link',
				array(
					'priority' => 10,
					'title'    => esc_html__('Guide', 'creative-one-page'),
					'pro_text' => esc_html__('Documentation', 'creative-one-page'),
					'pro_url'  => esc_url('https://preview.themescaliber.com/doc/free-advance-one-page/'),
				)
			)
		);

		$manager->add_section(
			new Creative_One_Page_Customize_Section_Pro(
				$manager,
				'creative_one_page_demo_link',
				array(
					'priority' => 11,

					'title'    => esc_html__('Live Demo', 'creative-one-page'),
					'pro_text' => esc_html__('Preview', 'creative-one-page'),
					'pro_url'  => esc_url('https://preview.themescaliber.com/creative-one-page-pro/'),
				)
			)
		);
	}

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

		wp_enqueue_script('creative-one-page-customize-controls', trailingslashit(esc_url(get_template_directory_uri())).'/js/customize-controls.js', array('customize-controls'));
		wp_enqueue_style('creative-one-page-customize-controls', trailingslashit(esc_url(get_template_directory_uri())).'/css/customize-controls.css');
	}
}

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