<?php
/**
 * Header Loader Section
 * 
 * slug: business-coach-blocks/header-loader
 * title: Header Loader
 * categories: business-coach-blocks
 */

// Evaluate the toggle state
$business_coach_blocks_toggle = get_option( 'business_coach_blocks_preloader_toggle', 'off' );
$business_coach_blocks_preloader_display = $business_coach_blocks_toggle === 'on' ? 'block' : 'none';

return array(
    'title'      =>__( 'Header Loader', 'business-coach-blocks' ),
    'categories' => array( 'business-coach-blocks' ),
    'content'    => '<!-- wp:preformatted {"className":"preloader-main"} -->
<pre class="wp-block-preformatted preloader-main"><div class="preloader" id="preloader" style="display: ' . $business_coach_blocks_preloader_display . ';">
        <div class="loader"></div>
    </div></pre>
<!-- /wp:preformatted -->',
);