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

$wp_customize->add_setting(
    'blogbull_options[enable_preloader_options]',
    array(
        'default'           => $blogbull_default['enable_preloader_options'],
        'sanitize_callback' => 'blogbull_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'blogbull_options[enable_preloader_options]',
    array(
        'label'       => esc_html__( 'Enable Preloader Option', 'blogbull' ),
        'section'     => 'preloader_options',
        'type'        => 'checkbox',
    )
);

$wp_customize->add_setting(
    'blogbull_options[blogbull_preloader_style]',
    array(
        'default'           => $blogbull_default['blogbull_preloader_style'],
        'sanitize_callback' => 'blogbull_sanitize_select',
    )
);
$wp_customize->add_control(
    'blogbull_options[blogbull_preloader_style]',
    array(
        'label'         => esc_html__( 'Select Preloader Style', 'blogbull' ),
        'section'     => 'preloader_options',
        'type'        => 'select',
        'choices'       => blogbull_preloader_style_option(),

    )
);
