<header id="main-header" class="st_menu">
    <?php $logo_url = st()->get_option('logo'); ?>
    <div class="header-top <?php echo apply_filters('st_header_top_class', '') ?>">
        <div class="container">
            <div class="row">
                <div class="col-md-3">
                    <a class="logo" href="<?php echo home_url('/') ?>">
                        <?php
                        if (!empty($logo_url)) {
                            ?>
                            <img src="<?php echo esc_url($logo_url); ?>" alt="logo"
                                 title="<?php bloginfo('name') ?>">
                            <?php
                        }
                        ?>
                    </a>
                </div>
                <?php get_template_part('users/user', 'nav'); ?>
            </div>
        </div>
    </div>
    <div class="main_menu_wrap" id="menu1">
        <div class="<?php echo apply_filters('st_default_menu_wrapper', "container"); ?>">
            <div class="nav">
                <?php
                $logo__mobile_url = st()->get_option('logo_mobile', $logo_url);
                $html_logo_mobile = "";
                if (!empty($logo__mobile_url)) {
                    $html_logo_mobile = '<a href=\'' . home_url('/') . '\'><img alt=\'' . TravelHelper::get_alt_image() . '\' width=auto height=40px class=st_logo_mobile src=' . esc_url($logo__mobile_url) . ' /></a>';
                }
                if (has_nav_menu('primary')) {
                    $mega_menu = st()->get_option('allow_megamenu', 'off');
                    if ($mega_menu == 'on') {
                        wp_nav_menu(array(
                            'theme_location' => 'primary',
                            "container" => "",
                            'items_wrap' => '<ul id="slimmenu" data-title="' . $html_logo_mobile . '" class="%2$s slimmenu">%3$s</ul>',
                            'depth' => 10,
                            'walker' => new ST_Mega_Menu_Walker(),
                        ));
                    } else {
                        wp_nav_menu(array(
                            'theme_location' => 'primary',
                            "container" => "",
                            'items_wrap' => '<ul id="slimmenu" data-title="' . $html_logo_mobile . '" class="%2$s slimmenu">%3$s</ul>',
                            'walker' => new st_menu_walker(),
                        ));
                    }
                }
                ?>
            </div>
        </div>
    </div><!-- End .main_menu_wrap-->
</header>