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

$wp_customize->add_setting(
    'magfusion_options[enable_preloader_options]',
    array(
        'default'           => $magfusion_default['enable_preloader_options'],
        'sanitize_callback' => 'magfusion_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'magfusion_options[enable_preloader_options]',
    array(
        'label'       => esc_html__( 'Enable Preloader Option', 'magfusion' ),
        'section'     => 'preloader_options',
        'type'        => 'checkbox',
    )
);

$wp_customize->add_setting(
    'magfusion_options[magfusion_preloader_style]',
    array(
        'default'           => $magfusion_default['magfusion_preloader_style'],
        'sanitize_callback' => 'magfusion_sanitize_select',
    )
);
$wp_customize->add_control(
    'magfusion_options[magfusion_preloader_style]',
    array(
        'label'         => esc_html__( 'Select Preloader Style', 'magfusion' ),
        'section'     => 'preloader_options',
        'type'        => 'select',
        'choices'       => magfusion_preloader_style_option(),

    )
);
