<?php
/**
 * All settings related to preloader.
 *
 * @package FitNote
 */
$wp_customize->add_section(
	'preloader_options',
	array(
		'title' => esc_html__( 'Preloader Options', 'fitnote' ),
		'panel' => 'general_options_panel',
	)
);

$wp_customize->add_setting(
    'fitnote_options[enable_preloader_options]',
    array(
        'default'           => $fitnote_default['enable_preloader_options'],
        'sanitize_callback' => 'fitnote_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'fitnote_options[enable_preloader_options]',
    array(
        'label'       => esc_html__( 'Enable Preloader Option', 'fitnote' ),
        'section'     => 'preloader_options',
        'type'        => 'checkbox',
    )
);

$wp_customize->add_setting(
    'fitnote_options[fitnote_preloader_style]',
    array(
        'default'           => $fitnote_default['fitnote_preloader_style'],
        'sanitize_callback' => 'fitnote_sanitize_select',
    )
);
$wp_customize->add_control(
    'fitnote_options[fitnote_preloader_style]',
    array(
        'label'         => esc_html__( 'Select Preloader Style', 'fitnote' ),
        'section'     => 'preloader_options',
        'type'        => 'select',
        'choices'       => fitnote_preloader_style_option(),

    )
);
