<?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 Interior Designer
 */
/**
* Hook - prime_interior_designer_action_doctype.
*
* @hooked prime_interior_designer_doctype -  10
*/
do_action( 'prime_interior_designer_action_doctype' );
?>
<head>
    <?php
    /**
    * Hook - prime_interior_designer_action_head.
    *
    * @hooked prime_interior_designer_head -  10
    */
    do_action( 'prime_interior_designer_action_head' );
    ?>

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

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

        <?php
            $prime_interior_designer_preloader_setting = prime_interior_designer_get_option('header_donate_preloader_setting', false);
            $prime_interior_designer_loader_layout = get_theme_mod('prime_interior_designer_loader_layout_setting', 'load');

            if ($prime_interior_designer_preloader_setting && $prime_interior_designer_loader_layout !== 'none') { ?>
                <div class="preloader">
                    <?php if ($prime_interior_designer_loader_layout === 'both' || $prime_interior_designer_loader_layout === 'load') { ?>
                        <div class="load">
                            <div class="loader"></div>
                        </div>
                    <?php } ?>
                    <?php if ($prime_interior_designer_loader_layout === 'both' || $prime_interior_designer_loader_layout === 'load-one') { ?>
                        <div class="load-one">
                            <hr/><hr/><hr/><hr/>
                        </div>
                    <?php } ?>
                    <?php if ($prime_interior_designer_loader_layout === 'both' || $prime_interior_designer_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="I" class="letters-loading">I</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>
                                    <span data-text-preloader="I" class="letters-loading">I</span>
                                    <span data-text-preloader="O" class="letters-loading">O</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_interior_designer_action_before.
    *
    * @hooked prime_interior_designer_page_start - 10
    */
    do_action( 'prime_interior_designer_action_before' );

    /**
    *
    * @hooked prime_interior_designer_header_start - 10
    */
    do_action( 'prime_interior_designer_action_before_header' );

    /**
    *
    *@hooked prime_interior_designer_site_branding - 10
    *@hooked prime_interior_designer_header_end - 15 
    */
    do_action('prime_interior_designer_action_header');

    /**
    *
    * @hooked prime_interior_designer_content_start - 10
    */
    do_action( 'prime_interior_designer_action_before_content' );

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