File "main-header-one.php"

Full Path: /home/safaelji/blog.automotomaroc.com/wp-content/themes/azure-blog/template-parts/header/main-header-one.php
File size: 2.7 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * Template part for displaying a content located in main header layout one.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Azure News
 * @subpackage Azure Blog
 * @since 1.0.0
 */

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

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

$azure_news_header_main_bg_type = azure_news_get_customizer_option_value( 'azure_news_header_main_bg_type' );

?>

<header id="masthead" class="site-header header--<?php echo esc_attr( $azure_news_header_main_bg_type ); ?>"
    <?php azure_news_schema_markup( 'header' ); ?>>


    <div class="main-header-wrapper ">
        <div class="azure-news-container azure-news-flex">
            <div class="sidebar-toggle-search-wrapper azure-news-flex">
                <?php


					// social icon
					if ( true === azure_news_get_customizer_option_value( 'azure_news_header_social_enable' ) ) {
						get_template_part( 'template-parts/partials/header/social', 'icons' );
					}
                    // sticky sidebar toggle icon
                    //azure_news_sticky_sidebar_toggle();


                ?>
            </div>
            <!-- sidebar-toggle-search-wrapper -->
            <?php
                // site logo
                get_template_part( 'template-parts/partials/header/site', 'logo' );
            ?>

            <div class=" subcribe-ads-button logo-ads-wrapper">
                <?php

                    // site mode switcher
                    azure_news_site_mode_switcher();

                    //search icon
                    get_template_part( 'template-parts/partials/header/search' );

                    // custom button
                   // get_template_part( 'template-parts/partials/header/custom', 'button' );
                ?>
                </div><!-- .logo-ads-wrapper -->

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

            ?>
        </div><!-- .azure-news-container -->
        <div class="azure-advertisement-wrapper">
            <div class="azure-news-container">
        <?php
        // header ads
                get_template_part( 'template-parts/partials/header/ads' );
        ?>
        </div><!-- .azure-news-container -->
      </div><!-- .azure-advertisement-wrapper -->
    </div> <!-- bottom-header-wrapper -->
</header><!-- #masthead -->