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

$wp_customize->add_setting(
    'newsmass_options[enable_preloader_options]',
    array(
        'default'           => $newsmass_default['enable_preloader_options'],
        'sanitize_callback' => 'newsmass_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'newsmass_options[enable_preloader_options]',
    array(
        'label'       => esc_html__( 'Enable Preloader Option', 'newsmass' ),
        'section'     => 'preloader_options',
        'type'        => 'checkbox',
    )
);

$wp_customize->add_setting(
    'newsmass_options[newsmass_preloader_style]',
    array(
        'default'           => $newsmass_default['newsmass_preloader_style'],
        'sanitize_callback' => 'newsmass_sanitize_select',
    )
);
$wp_customize->add_control(
    'newsmass_options[newsmass_preloader_style]',
    array(
        'label'         => esc_html__( 'Select Preloader Style', 'newsmass' ),
        'section'     => 'preloader_options',
        'type'        => 'select',
        'choices'       => newsmass_preloader_style_option(),

    )
);
