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

$wp_customize->add_setting(
    'blogaura_options[enable_preloader_options]',
    array(
        'default'           => $blogaura_default['enable_preloader_options'],
        'sanitize_callback' => 'blogaura_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'blogaura_options[enable_preloader_options]',
    array(
        'label'       => esc_html__( 'Enable Preloader Option', 'blogaura' ),
        'section'     => 'preloader_options',
        'type'        => 'checkbox',
    )
);

$wp_customize->add_setting(
    'blogaura_options[blogaura_preloader_style]',
    array(
        'default'           => $blogaura_default['blogaura_preloader_style'],
        'sanitize_callback' => 'blogaura_sanitize_select',
    )
);
$wp_customize->add_control(
    'blogaura_options[blogaura_preloader_style]',
    array(
        'label'         => esc_html__( 'Select Preloader Style', 'blogaura' ),
        'section'     => 'preloader_options',
        'type'        => 'select',
        'choices'       => blogaura_preloader_style_option(),

    )
);
