<?php
/**
 * Movers and Packers: Customizer
 *
 * @subpackage Movers and Packers
 * @since 1.0
 */

use WPTRT\Customize\Section\Movers_And_Packers_Button;

add_action( 'customize_register', function( $manager ) {

	$manager->register_section_type( Movers_And_Packers_Button::class );

	$manager->add_section(
		new Movers_And_Packers_Button( $manager, 'movers_and_packers_pro', [
			'title' => __( 'Movers and Packers Pro', 'movers-and-packers' ),
			'priority' => 0,
			'button_text' => __( 'Go Pro', 'movers-and-packers' ),
			'button_url'  => esc_url( 'https://www.luzuk.com/products/movers-packers-wordpress-theme/', 'movers-and-packers')
		] )
	);

} );

// Load the JS and CSS.
add_action( 'customize_controls_enqueue_scripts', function() {

	$version = wp_get_theme()->get( 'Version' );

	wp_enqueue_script(
		'movers-and-packers-customize-section-button',
		get_theme_file_uri( 'vendor/wptrt/customize-section-button/public/js/customize-controls.js' ),
		[ 'customize-controls' ],
		$version,
		true
	);

	wp_enqueue_style(
		'movers-and-packers-customize-section-button',
		get_theme_file_uri( 'vendor/wptrt/customize-section-button/public/css/customize-controls.css' ),
		[ 'customize-controls' ],
 		$version
	);

} );

function movers_and_packers_customize_register( $wp_customize ) {

	$wp_customize->add_setting('movers_and_packers_logo_size',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_logo_size',array(
		'type' => 'range',
		'description' => __('Logo Size (0-100%)','movers-and-packers'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('movers_and_packers_logo_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('movers_and_packers_logo_padding',array(
		'label' => __('Logo Margin','movers-and-packers'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('movers_and_packers_logo_top_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_logo_top_padding',array(
		'type' => 'number',
		'description' => __('Top','movers-and-packers'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('movers_and_packers_logo_bottom_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_logo_bottom_padding',array(
		'type' => 'number',
		'description' => __('Bottom','movers-and-packers'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('movers_and_packers_logo_left_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_logo_left_padding',array(
		'type' => 'number',
		'description' => __('Left','movers-and-packers'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('movers_and_packers_logo_right_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
 	));
 	$wp_customize->add_control('movers_and_packers_logo_right_padding',array(
		'type' => 'number',
		'description' => __('Right','movers-and-packers'),
		'section' => 'title_tagline',
    ));

	$wp_customize->add_setting('movers_and_packers_show_site_title',array(
		'default' => true,
		'sanitize_callback'	=> 'movers_and_packers_sanitize_checkbox'
	));
	$wp_customize->add_control('movers_and_packers_show_site_title',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Site Title','movers-and-packers'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('movers_and_packers_site_title_fontsize',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_site_title_fontsize',array(
		'type' => 'number',
		'label' => __('Site Title Font Size','movers-and-packers'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('movers_and_packers_show_tagline',array(
		'default' => true,
		'sanitize_callback'	=> 'movers_and_packers_sanitize_checkbox'
	));
	$wp_customize->add_control('movers_and_packers_show_tagline',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Site Tagline','movers-and-packers'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('movers_and_packers_site_tagline_fontsize',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_site_tagline_fontsize',array(
		'type' => 'number',
		'label' => __('Site Tagline Font Size','movers-and-packers'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_panel( 'movers_and_packers_panel_id', array(
		'priority' => 10,
		'capability' => 'edit_theme_options',
		'theme_supports' => '',
		'title' => __( 'Theme Settings', 'movers-and-packers' ),
		'description' => __( 'Description of what this panel does.', 'movers-and-packers' ),
	) );

	$wp_customize->add_section( 'movers_and_packers_theme_options_section', array(
    	'title'      => __( 'General Settings', 'movers-and-packers' ),
		'priority'   => 30,
		'panel' => 'movers_and_packers_panel_id'
	) );

	$wp_customize->add_setting('movers_and_packers_theme_options',array(
		'default' => 'Right Sidebar',
		'sanitize_callback' => 'movers_and_packers_sanitize_choices'
	));
	$wp_customize->add_control('movers_and_packers_theme_options',array(
		'type' => 'select',
		'label' => __('Blog Page Sidebar Layout','movers-and-packers'),
		'section' => 'movers_and_packers_theme_options_section',
		'choices' => array(
		   'Left Sidebar' => __('Left Sidebar','movers-and-packers'),
		   'Right Sidebar' => __('Right Sidebar','movers-and-packers'),
		   'One Column' => __('One Column','movers-and-packers'),
		   'Three Columns' => __('Three Columns','movers-and-packers'),
		   'Four Columns' => __('Four Columns','movers-and-packers'),
		   'Grid Layout' => __('Grid Layout','movers-and-packers')
		),
	));

	$wp_customize->add_setting('movers_and_packers_single_post_sidebar',array(
		'default' => 'Right Sidebar',
		'sanitize_callback' => 'movers_and_packers_sanitize_choices'
	));
	$wp_customize->add_control('movers_and_packers_single_post_sidebar',array(
        'type' => 'select',
        'label' => __('Single Post Sidebar Layout','movers-and-packers'),
        'section' => 'movers_and_packers_theme_options_section',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','movers-and-packers'),
            'Right Sidebar' => __('Right Sidebar','movers-and-packers'),
            'One Column' => __('One Column','movers-and-packers')
        ),
	));

	$wp_customize->add_setting('movers_and_packers_page_sidebar',array(
		'default' => 'One Column',
		'sanitize_callback' => 'movers_and_packers_sanitize_choices'
	));
	$wp_customize->add_control('movers_and_packers_page_sidebar',array(
        'type' => 'select',
        'label' => __('Page Sidebar Layout','movers-and-packers'),
        'section' => 'movers_and_packers_theme_options_section',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','movers-and-packers'),
            'Right Sidebar' => __('Right Sidebar','movers-and-packers'),
            'One Column' => __('One Column','movers-and-packers')
        ),
	));

	$wp_customize->add_setting('movers_and_packers_archive_page_sidebar',array(
		'default' => 'Right Sidebar',
		'sanitize_callback' => 'movers_and_packers_sanitize_choices'
	));
	$wp_customize->add_control('movers_and_packers_archive_page_sidebar',array(
        'type' => 'select',
        'label' => __('Archive & Search Page Sidebar Layout','movers-and-packers'),
        'section' => 'movers_and_packers_theme_options_section',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','movers-and-packers'),
            'Right Sidebar' => __('Right Sidebar','movers-and-packers'),
            'One Column' => __('One Column','movers-and-packers'),
		    'Three Columns' => __('Three Columns','movers-and-packers'),
		    'Four Columns' => __('Four Columns','movers-and-packers'),
            'Grid Layout' => __('Grid Layout','movers-and-packers')
        ),
	));

	$wp_customize->add_setting( 'movers_and_packers_boxfull_width', array(
		'default'           => '',
		'sanitize_callback' => 'movers_and_packers_sanitize_choices'
	));
	
	$wp_customize->add_control( 'movers_and_packers_boxfull_width', array(
		'label'    => __( 'Section Width', 'movers-and-packers' ),
		'section'  => 'movers_and_packers_theme_options_section',
		'type'     => 'select',
		'choices'  => array(
			'container'  => __('Box Width', 'movers-and-packers'),
			'container-fluid' => __('Full Width', 'movers-and-packers'),
			'none' => __('None', 'movers-and-packers')
		),
	));

	$wp_customize->add_setting( 'movers_and_packers_dropdown_anim', array(
		'default'           => 'None',
		'sanitize_callback' => 'movers_and_packers_sanitize_choices'
	));
	$wp_customize->add_control( 'movers_and_packers_dropdown_anim', array(
		'label'    => __( 'Menu Dropdown Animations', 'movers-and-packers' ),
		'section'  => 'movers_and_packers_theme_options_section',
		'type'     => 'select',
		'choices'  => array(
			'bounceInUp'  => __('bounceInUp', 'movers-and-packers'),
			'fadeInUp' => __('fadeInUp', 'movers-and-packers'),
			'zoomIn'    => __('zoomIn', 'movers-and-packers'),
			'None'    => __('None', 'movers-and-packers')
		),
	));

	//Header
	$wp_customize->add_section( 'movers_and_packers_topheader_section' , array(
    	'title'    => __( 'Top Header', 'movers-and-packers' ),
		'priority' => null,
		'panel' => 'movers_and_packers_panel_id'
	) );

	$wp_customize->add_setting('movers_and_packers_topbar_text',array(
    	'default' => '',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('movers_and_packers_topbar_text',array(
	   	'type' => 'text',
	   	'label' => __('Add Topbar Text','movers-and-packers'),
	   	'section' => 'movers_and_packers_topheader_section',
	));

	$wp_customize->add_setting('movers_and_packers_phone_number',array(
    	'default' => '',
    	'sanitize_callback'	=> 'movers_and_packers_sanitize_phone_number'
	));
	$wp_customize->add_control('movers_and_packers_phone_number',array(
	   	'type' => 'text',
	   	'label' => __('Add Phone Number','movers-and-packers'),
	   	'section' => 'movers_and_packers_topheader_section',
	));

	$wp_customize->add_setting('movers_and_packers_email_address',array(
    	'default' => '',
    	'sanitize_callback'	=> 'sanitize_email'
	));
	$wp_customize->add_control('movers_and_packers_email_address',array(
	   	'type' => 'text',
	   	'label' => __('Add Email Address','movers-and-packers'),
	   	'section' => 'movers_and_packers_topheader_section',
	));

	$wp_customize->add_setting('movers_and_packers_facebook_url',array(
    	'default' => '',
    	'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('movers_and_packers_facebook_url',array(
	   	'type' => 'url',
	   	'label' => __('Add Facebook URL','movers-and-packers'),
	   	'section' => 'movers_and_packers_topheader_section',
	));

	$wp_customize->add_setting('movers_and_packers_instagram_url',array(
    	'default' => '',
    	'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('movers_and_packers_instagram_url',array(
	   	'type' => 'url',
	   	'label' => __('Add Instagram URL','movers-and-packers'),
	   	'section' => 'movers_and_packers_topheader_section',
	));

	$wp_customize->add_setting('movers_and_packers_twitter_url',array(
    	'default' => '',
    	'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('movers_and_packers_twitter_url',array(
	   	'type' => 'url',
	   	'label' => __('Add Twitter URL','movers-and-packers'),
	   	'section' => 'movers_and_packers_topheader_section',
	));

	$wp_customize->add_setting('movers_and_packers_linkedin_url',array(
    	'default' => '',
    	'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('movers_and_packers_linkedin_url',array(
	   	'type' => 'url',
	   	'label' => __('Add Linkedin URL','movers-and-packers'),
	   	'section' => 'movers_and_packers_topheader_section',
	));

	$wp_customize->add_setting( 'movers_and_packers_tptext_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_tptext_color', array(
		'label' => 'Top Header Text Color',
		'section' => 'movers_and_packers_topheader_section',
	)));

	$wp_customize->add_setting( 'movers_and_packers_tpicon_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_tpicon_color', array(
		'label' => 'Top Header Icon Color',
		'section' => 'movers_and_packers_topheader_section',
	)));

	$wp_customize->add_setting( 'movers_and_packers_tpbdr_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_tpbdr_color', array(
		'label' => 'Top Header Middle Border Color',
		'section' => 'movers_and_packers_topheader_section',
	)));

	$wp_customize->add_setting( 'movers_and_packers_social_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_social_color', array(
		'label' => 'Social Icons Color',
		'section' => 'movers_and_packers_topheader_section',
	)));

	$wp_customize->add_setting( 'movers_and_packers_topbarbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_topbarbg_color', array(
		'label' => 'Top Bar Background Color',
		'section' => 'movers_and_packers_topheader_section',
	)));

	//home page slider
	$wp_customize->add_section( 'movers_and_packers_slider_section' , array(
    	'title'    => __( 'Slider Settings', 'movers-and-packers' ),
		'priority' => null,
		'panel' => 'movers_and_packers_panel_id'
	) );

	$wp_customize->add_setting('movers_and_packers_slider_shortcode',array(
		'default' => '',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('movers_and_packers_slider_shortcode',array(
	   	'type' => 'text',
	   	'label' => __('Add Slider shortcode','movers-and-packers'),
	   	'section' => 'movers_and_packers_slider_section',
	));

	// Add description text to the slider section
	$wp_customize->add_setting('luzuk_movers_and_packers_slider_description', array(
		'sanitize_callback' => 'wp_kses_post',
	));

	$wp_customize->add_control(new WP_Customize_Control(
		$wp_customize,
		'luzuk_movers_and_packers_slider_description',
		array(
			'type'     => 'hidden',
			'section'  => 'movers_and_packers_slider_section',
			'description' => __(
				'This is the Movers and Packers Theme. Use the shortcode <b>[lms_movers_and_packers]</b> to display the content after installing and activating our plugin.<br><br>
				To add a slider to this theme, please install and activate the <b>Luzuk Multi Slider</b> plugin. This plugin offers various slider options, allowing you to set up a slider as per your preference.<br><br>
				
				<b>Steps to Add a Slider After Plugin Activation:</b><br>
				1. Navigate to the <b>Luzuk Multi Slider</b> plugin, which will appear in the side panel.<br>
				2. Go to <b>"Add New Post"</b> inside the plugin, add the slider content, and publish it. You can add multiple sliders this way.<br>
				3. Open the plugin <b>Dashboard</b> and choose a slider design.<br>
				4. Copy the shortcode of your preferred design and paste it into a post, page, or the slider shortcode setting in the Customizer.<br><br>
				Note: If the slider does not change, please refresh the page after adding the shortcode.',
				'movers-and-packers'
			),
		)
	));
	

	//Services Section
	$wp_customize->add_section('movers_and_packers_service_section',array(
		'title'	=> __('Service Section','movers-and-packers'),
		'description'=> __('Note : This section will appear below the slider.','movers-and-packers'),
		'panel' => 'movers_and_packers_panel_id',
	));

    $wp_customize->add_setting('movers_and_packers_small_title',array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('movers_and_packers_small_title',array(
		'label'	=> __('Section Small Title','movers-and-packers'),
		'section' => 'movers_and_packers_service_section',
		'type' => 'text'
	));

	$wp_customize->add_setting('movers_and_packers_small_title_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_small_title_font_size',array(
		'type' => 'number',
		'label' => __('Font Size','movers-and-packers'),
		'section' => 'movers_and_packers_service_section',
	));

    $wp_customize->add_setting('movers_and_packers_section_title',array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('movers_and_packers_section_title',array(
		'label'	=> __('Section Title','movers-and-packers'),
		'section' => 'movers_and_packers_service_section',
		'type' => 'text'
	));

	$wp_customize->add_setting('movers_and_packers_section_title_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_section_title_font_size',array(
		'type' => 'number',
		'label' => __('Font Size','movers-and-packers'),
		'section' => 'movers_and_packers_service_section',
	));

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

	$wp_customize->add_setting('movers_and_packers_category_setting',array(
		'default' => 'select',
		'sanitize_callback' => 'movers_and_packers_sanitize_choices',
	));
	$wp_customize->add_control('movers_and_packers_category_setting',array(
		'type' => 'select',
		'choices' => $cat_pst,
		'label' => __('Select Category To Display Post','movers-and-packers'),
		'section' => 'movers_and_packers_service_section',
	));

	$wp_customize->add_setting('movers_and_packers_img_size',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_img_size',array(
		'type' => 'number',
		'description' => __('Image Size','movers-and-packers'),
		'section' => 'movers_and_packers_service_section',
	));

	$wp_customize->add_setting('movers_and_packers_img_border_radius',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_img_border_radius',array(
		'type' => 'range',
		'description' => __('Border Radius','movers-and-packers'),
		'section' => 'movers_and_packers_service_section',
		'inputs_attrs' => array(
			'min' => 0,
			'max' => 100,
			'step' => 1,
		),
	));

	$wp_customize->add_setting('movers_and_packers_service_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_service_font_size',array(
		'type' => 'number',
		'label' => __('Title Font Size','movers-and-packers'),
		'section' => 'movers_and_packers_service_section',
	));

	$wp_customize->add_setting('movers_and_packers_service_text_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_service_text_font_size',array(
		'type' => 'number',
		'label' => __('Text Font Size','movers-and-packers'),
		'section' => 'movers_and_packers_service_section',
	));

	$wp_customize->add_setting( 'movers_and_packers_service_smt_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_service_smt_color', array(
		'label' => 'Small Title Color',
		'section' => 'movers_and_packers_service_section',
	)));

	$wp_customize->add_setting( 'movers_and_packers_service_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_service_color', array(
		'label' => 'Title Color',
		'section' => 'movers_and_packers_service_section',
	)));

	$wp_customize->add_setting( 'movers_and_packers_service_post_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_service_post_color', array(
		'label' => 'Post Title Color',
		'section' => 'movers_and_packers_service_section',
	)));

	$wp_customize->add_setting( 'movers_and_packers_service_post_text_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_service_post_text_color', array(
		'label' => 'Post Text Color',
		'section' => 'movers_and_packers_service_section',
	)));

	$wp_customize->add_setting( 'movers_and_packers_service_post_btn_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_service_post_btn_color', array(
		'label' => 'Post Button Color',
		'section' => 'movers_and_packers_service_section',
	)));

	$wp_customize->add_setting( 'movers_and_packers_service_postbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_service_postbg_color', array(
		'label' => 'Box BG Color',
		'section' => 'movers_and_packers_service_section',
	)));

	//Footer
    $wp_customize->add_section( 'movers_and_packers_footer', array(
    	'title'  => __( 'Footer Setting', 'movers-and-packers' ),
		'priority' => null,
		'panel' => 'movers_and_packers_panel_id'
	) );

	$wp_customize->add_setting('movers_and_packers_show_back_totop',array(
       'default' => true,
       'sanitize_callback'	=> 'movers_and_packers_sanitize_checkbox'
    ));
    $wp_customize->add_control('movers_and_packers_show_back_totop',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Back to Top','movers-and-packers'),
       'section' => 'movers_and_packers_footer'
    ));

    $wp_customize->add_setting('movers_and_packers_footer_copy',array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('movers_and_packers_footer_copy',array(
		'label'	=> __('Copyright Text','movers-and-packers'),
		'section' => 'movers_and_packers_footer',
		'setting' => 'movers_and_packers_footer_copy',
		'type' => 'text'
	));

	$wp_customize->add_setting('movers_and_packers_footer_copy_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'movers_and_packers_sanitize_float'
	));
	$wp_customize->add_control('movers_and_packers_footer_copy_font_size',array(
		'type' => 'number',
		'label' => __('Font Size','movers-and-packers'),
		'section' => 'movers_and_packers_footer',
	));

	$wp_customize->add_setting( 'movers_and_packers_footer_widget_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_footer_widget_color', array(
		'label' => 'Widgets Title Color',
		'section' => 'movers_and_packers_footer',
	)));

	$wp_customize->add_setting( 'movers_and_packers_footer_widget_menu_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_footer_widget_menu_color', array(
		'label' => 'Widgets Menus Color',
		'section' => 'movers_and_packers_footer',
	)));

	$wp_customize->add_setting( 'movers_and_packers_footer_copy_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_footer_copy_color', array(
		'label' => 'Copyright Text Color',
		'section' => 'movers_and_packers_footer',
	)));

	$wp_customize->add_setting( 'movers_and_packers_footer_copybg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_footer_copybg_color', array(
		'label' => 'Copyright Bg Color',
		'section' => 'movers_and_packers_footer',
	)));

	$wp_customize->add_setting( 'movers_and_packers_footer_copy_bdr_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_footer_copy_bdr_color', array(
		'label' => 'Copyright Border Color',
		'section' => 'movers_and_packers_footer',
	)));

	$wp_customize->add_setting( 'movers_and_packers_footerbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'movers_and_packers_footerbg_color', array(
		'label' => 'Footer Bg Color',
		'section' => 'movers_and_packers_footer',
	)));

	$wp_customize->get_setting( 'blogname' )->transport          = 'postMessage';
	$wp_customize->get_setting( 'blogdescription' )->transport   = 'postMessage';
	$wp_customize->get_setting( 'header_textcolor' )->transport  = 'postMessage';

	$wp_customize->selective_refresh->add_partial( 'blogname', array(
		'selector' => '.site-title a',
		'render_callback' => 'movers_and_packers_customize_partial_blogname',
	) );
	$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
		'selector' => '.site-description',
		'render_callback' => 'movers_and_packers_customize_partial_blogdescription',
	) );
}
add_action( 'customize_register', 'movers_and_packers_customize_register' );

function movers_and_packers_customize_partial_blogname() {
	bloginfo( 'name' );
}

function movers_and_packers_customize_partial_blogdescription() {
	bloginfo( 'description' );
}

function movers_and_packers_is_static_front_page() {
	return ( is_front_page() && ! is_home() );
}

function movers_and_packers_is_view_with_layout_option() {
	// This option is available on all pages. It's also available on archives when there isn't a sidebar.
	return ( is_page() || ( is_archive() && ! is_active_sidebar( 'sidebar-1' ) ) );
}