<?php
/**
 * The header for our theme
 *
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Prime Spa Center
 */
/**
* Hook - prime_spa_center_action_doctype.
*
* @hooked prime_spa_center_doctype -  10
*/
do_action( 'prime_spa_center_action_doctype' );
?>
<head>
    <?php
    /**
    * Hook - prime_spa_center_action_head.
    *
    * @hooked prime_spa_center_head -  10
    */
    do_action( 'prime_spa_center_action_head' );
    ?>

    <?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
    <?php do_action( 'wp_body_open' ); ?>

       <?php
            $prime_spa_center_preloader_setting = prime_spa_center_get_option('header_donate_preloader_setting', false);
            $prime_spa_center_loader_layout = get_theme_mod('prime_spa_center_loader_layout_setting', 'load');

            if ($prime_spa_center_preloader_setting && $prime_spa_center_loader_layout !== 'none') { ?>
                <div class="preloader">
                    <?php if ($prime_spa_center_loader_layout === 'both' || $prime_spa_center_loader_layout === 'load') { ?>
                        <div class="load">
                            <div class="loader"></div>
                        </div>
                    <?php } ?>
                    <?php if ($prime_spa_center_loader_layout === 'both' || $prime_spa_center_loader_layout === 'load-one') { ?>
                        <div class="load-one">
                            <hr/><hr/><hr/><hr/>
                        </div>
                    <?php } ?>
                    <?php if ($prime_spa_center_loader_layout === 'both' || $prime_spa_center_loader_layout === 'ctn-preloader') { ?>
                    <div id="preloader">
                        <div id="ctn-preloader" class="ctn-preloader">
                            <div class="animation-preloader">
                                
                                <!-- Spinner -->
                                <div class="spinner"></div>
                                
                                <!-- Start: Text Loading -->
                                <div class="txt-loading">
                                    <span data-text-preloader="S" class="letters-loading">S</span>
                                    <span data-text-preloader="P" class="letters-loading">P</span>
                                    <span data-text-preloader="A" class="letters-loading">A</span>
                                    <span data-text-preloader="" class="letters-loading">&nbsp</span>
                                    <span data-text-preloader="C" class="letters-loading">C</span>
                                    <span data-text-preloader="E" class="letters-loading">E</span>
                                    <span data-text-preloader="N" class="letters-loading">N</span>
                                    <span data-text-preloader="T" class="letters-loading">T</span>
                                    <span data-text-preloader="E" class="letters-loading">E</span>
                                    <span data-text-preloader="R" class="letters-loading">R</span>
                                </div>
                                <!-- End: Text Loading -->

                            </div>

                            <!-- Start: Preloader sides - Model 1 -->
                            <div class="loader-section section-left"></div>
                            <div class="loader-section section-right"></div>
                            <!-- End: Preloader sides - Model 1 -->

                        </div>
                    </div>
                    <?php } ?>
                </div>
            <?php } ?>

    <?php

    /**
    * Hook - prime_spa_center_action_before.
    *
    * @hooked prime_spa_center_page_start - 10
    */
    do_action( 'prime_spa_center_action_before' );

    /**
    *
    * @hooked prime_spa_center_header_start - 10
    */
    do_action( 'prime_spa_center_action_before_header' );

    /**
    *
    *@hooked prime_spa_center_site_branding - 10
    *@hooked prime_spa_center_header_end - 15 
    */
    do_action('prime_spa_center_action_header');

    /**
    *
    * @hooked prime_spa_center_content_start - 10
    */
    do_action( 'prime_spa_center_action_before_content' );

    /**
     * Banner start
     * 
     * @hooked prime_spa_center_banner_header - 10
    */
    do_action( 'prime_spa_center_banner_header' );  