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

$wp_customize->add_setting(
    'sportsx_options[enable_preloader_options]',
    array(
        'default'           => $sportsx_default['enable_preloader_options'],
        'sanitize_callback' => 'sportsx_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'sportsx_options[enable_preloader_options]',
    array(
        'label'       => esc_html__( 'Enable Preloader Option', 'sportsx' ),
        'section'     => 'preloader_options',
        'type'        => 'checkbox',
    )
);

$wp_customize->add_setting(
    'sportsx_options[sportsx_preloader_style]',
    array(
        'default'           => $sportsx_default['sportsx_preloader_style'],
        'sanitize_callback' => 'sportsx_sanitize_select',
    )
);
$wp_customize->add_control(
    'sportsx_options[sportsx_preloader_style]',
    array(
        'label'         => esc_html__( 'Select Preloader Style', 'sportsx' ),
        'section'     => 'preloader_options',
        'type'        => 'select',
        'choices'       => sportsx_preloader_style_option(),

    )
);
