<?php
/**
 * Customizer callback functions.
 *
 * @package Blogbuster
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/*----------------------------- General Panel Callabck --------------------------------*/

    if ( ! function_exists( 'blogbuster_cb_has_enable_preloader' ) ) :

        /**
         * Check if the preloader option is enabled.
         *
         * @since 1.0.0
         *
         * @param WP_Customize_Control $control WP_Customize_Control instance.
         *
         * @return bool Whether the control is active to the current preview.
         */
        function blogbuster_cb_has_enable_preloader() {
            return blogbuster_get_customizer_option_value('blogbuster_preloader_enable');
        }

    endif;