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

$wp_customize->add_setting(
    'newsmarks_options[enable_preloader_options]',
    array(
        'default'           => $newsmarks_default['enable_preloader_options'],
        'sanitize_callback' => 'newsmarks_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'newsmarks_options[enable_preloader_options]',
    array(
        'label'       => esc_html__( 'Enable Preloader Option', 'newsmarks' ),
        'section'     => 'preloader_options',
        'type'        => 'checkbox',
    )
);

$wp_customize->add_setting(
    'newsmarks_options[newsmarks_preloader_style]',
    array(
        'default'           => $newsmarks_default['newsmarks_preloader_style'],
        'sanitize_callback' => 'newsmarks_sanitize_select',
    )
);
$wp_customize->add_control(
    'newsmarks_options[newsmarks_preloader_style]',
    array(
        'label'         => esc_html__( 'Select Preloader Style', 'newsmarks' ),
        'section'     => 'preloader_options',
        'type'        => 'select',
        'choices'       => newsmarks_preloader_style_option(),

    )
);
