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

$wp_customize->add_setting(
    'nextzenmag_options[enable_preloader_options]',
    array(
        'default'           => $nextzenmag_default['enable_preloader_options'],
        'sanitize_callback' => 'nextzenmag_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'nextzenmag_options[enable_preloader_options]',
    array(
        'label'       => esc_html__( 'Enable Preloader Option', 'nextzenmag' ),
        'section'     => 'preloader_options',
        'type'        => 'checkbox',
    )
);

$wp_customize->add_setting(
    'nextzenmag_options[nextzenmag_preloader_style]',
    array(
        'default'           => $nextzenmag_default['nextzenmag_preloader_style'],
        'sanitize_callback' => 'nextzenmag_sanitize_select',
    )
);
$wp_customize->add_control(
    'nextzenmag_options[nextzenmag_preloader_style]',
    array(
        'label'         => esc_html__( 'Select Preloader Style', 'nextzenmag' ),
        'section'     => 'preloader_options',
        'type'        => 'select',
        'choices'       => nextzenmag_preloader_style_option(),

    )
);
