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

$wp_customize->add_setting(
    'blogsky_options[enable_preloader_options]',
    array(
        'default'           => $blogsky_default['enable_preloader_options'],
        'sanitize_callback' => 'blogsky_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'blogsky_options[enable_preloader_options]',
    array(
        'label'       => esc_html__( 'Enable Preloader Option', 'blogsky' ),
        'section'     => 'preloader_options',
        'type'        => 'checkbox',
    )
);

$wp_customize->add_setting(
    'blogsky_options[blogsky_preloader_style]',
    array(
        'default'           => $blogsky_default['blogsky_preloader_style'],
        'sanitize_callback' => 'blogsky_sanitize_select',
    )
);
$wp_customize->add_control(
    'blogsky_options[blogsky_preloader_style]',
    array(
        'label'         => esc_html__( 'Select Preloader Style', 'blogsky' ),
        'section'     => 'preloader_options',
        'type'        => 'select',
        'choices'       => blogsky_preloader_style_option(),

    )
);
