<?php $current_user = wp_get_current_user(); ?>
<header class="header_9 dimag_homepage_mo">
    <div class="container">
        <div class="row">
            <div class="col-3 col-md-1">
                <?php get_template_part('themeplat/responsive/header/menu-mobile', 'header'); ?>
                <div class="logo d-none d-lg-block">
                    <a href="<?php echo get_home_url(); ?>">
                        <img src="<?php echo ot_get_option('logo_blog_barsa'); ?>">
                    </a>
                </div> 
            </div>
            <div class="col-6 col-md-8">
                    <div class="logo d-block d-lg-none">
                        <a href="<?php echo get_home_url(); ?>">
                            <img src="<?php echo ot_get_option('logo_blog_barsa'); ?>">
                        </a>
                    </div> 
                <ul class="cd-main-nav mobile-menu-wrapperr right d-none d-lg-block">
                    <?php wp_nav_menu(array('theme_location' => 'main-menu', 'walker' => new ASG_Megamenu_Walker())); ?>
                </ul>
            </div>
            <div class="col-3 col-md-3">
                <ul class="item-head-respan">
                    <?php 
                        $display_search_header  = ot_get_option('display_search_header', false);
                        if ($display_search_header  == 'on') :
                    ?>
                    <li>
                        <div class="search_mo search-btn">
                            <a href="#search">
                                <i class="fal fa-search"></i>
                            </a>
                        </div>
                    </li>
                    <?php 
                    endif;
                        $profile_header  = ot_get_option('profile_header', false);
                        if ($profile_header  == 'on') :
                    ?>
                    <li>
                        <div class="user-pane_mo">
                            <?php get_template_part('themeplat/login/blo-but-login', 'button'); ?>
                        </div>
                    </li>
                    <?php endif;?>
                </ul>
            </div>
            <div class="col-12">
                <div class="hashtag">
                    <div class="hashtag__title">
                        <?php
                        $locations = get_nav_menu_locations();
                        $menu = wp_get_nav_menu_object($locations['hashtag-menu']);
                        echo $menu->name; // name of the menu
                        ?>
                        :‌
                    </div>
                    <div class="hashtag__wrapper">
                        <?php
                        wp_nav_menu(array(
                            'menu'                 => '',
                            'container'            => '',
                            'container_class'      => '',
                            'container_id'         => '',
                            'container_aria_label' => '',
                            'menu_class'           => '',
                            'menu_id'              => '',
                            'echo'                 => true,
                            'fallback_cb'          => 'wp_page_menu',
                            'before'               => '',
                            'after'                => '',
                            'link_before'          => '#',
                            'link_after'           => '',
                            'items_wrap'           => '<ul id="%1$s" class="%2$s">%3$s</ul>',
                            'item_spacing'         => 'preserve',
                            'depth'                => 0,
                            'walker'               => '',
                            'theme_location'       => 'hashtag-menu',
                        ));
                        ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</header>
<div class="d-block d-lg-none" style="margin-bottom: 1rem;"></div>
<?php get_template_part('themeplat/search/search-pop', 'search'); ?>
<?php get_template_part('themeplat/login/register', 'header'); ?>