<?php
/**
 * Template part for displaying content in the main header.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Blogbuster
 */

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

/**
 * hook - blogbuster_before_main_header
 * 
 * @since 1.0.0
 */
do_action( 'blogbuster_before_main_header' );

?>

<header id="masthead" class="site-header" <?php blogbuster_schema_markup( 'header' ); ?>>

    <div class="header-main-wrapper">
        <div class="mt-container mt-flex">            
            <?php
                // primary menu
                get_template_part( 'template-parts/partials/header/primary', 'menu' );

                // site logo
                get_template_part( 'template-parts/partials/header/site', 'logo' );
            ?>
            <div class="mt-icon-elements-wrap">
                <?php
                    // social icon
                    if ( true === blogbuster_get_customizer_option_value( 'blogbuster_header_social_icons_enable' ) ) {
                        get_template_part( 'template-parts/partials/social', 'icons' );
                    }

                    // site mode switcher
                    blogbuster_site_mode_switcher();

                    // search icon
                    get_template_part( 'template-parts/partials/header/search' );
                ?>
            </div><!-- .mt-icon-elements-wrap -->
        </div><!-- .mt-container -->
    </div><!-- .header-main-wrapper -->
    


    <div class="responsive-header-wrapper">
        <div class="mt-container">
            <!-- Logo Section -->
            <div class="responsive-logo">
                <?php get_template_part( 'template-parts/partials/header/site', 'logo' ); ?>
            </div>
            <div class="responsive-menu-icon-wrapper mt-flex">
                <?php  get_template_part( 'template-parts/partials/header/primary', 'menu' );?>
                <div class="mt-icon-elements-wrap">
                    <?php
                        // social icon
                        if ( true === blogbuster_get_customizer_option_value( 'blogbuster_header_social_icons_enable' ) ) {
                            get_template_part( 'template-parts/partials/social', 'icons' );
                        }

                        // site mode switcher
                        blogbuster_site_mode_switcher();

                        // search icon
                        get_template_part( 'template-parts/partials/header/search' );
                    ?>
                </div><!-- .mt-icon-elements-wrap -->
            </div><!-- .responsive-menu-icon-wrapper mt-flex -->
        </div><!-- .mt-container -->
    </div><!-- .responsive-header-wrapper -->


</header><!-- #masthead -->