<?php global $syrus; ?>
<?php do_action( 'head_theme_before_head' ); ?>

<div class="container topnav-2 header">
    <div class="row">
        <div class="col-2 text-center">
            <?php do_action( 'head_theme_before_title' ); ?>
                <a href="/" title="<?php echo get_bloginfo('title') ?>">
                    <img class="img-logo" src="<?php echo $args['logo_img'] ?>" alt="<?php echo get_bloginfo('title') ?>" width="200" height="200">
                </a>
			<?php do_action( 'head_theme_after_title' ); ?>
        </div>

        <div class="col-10">
            <?php do_action( 'head_theme_before_menu' ); ?>
            <div class="row d-flex justify-content-end align-items-center h-100 row-main-menu">

                <div class="col-auto d-block d-md-none">
                    <span class="dashicons dashicons-menu burger-menu"></span>
                </div>
                
                
                <div class="container-menu d-none d-md-flex col-auto">
                    <?php if($syrus->has_nav_menu('syrus-theme-main-menu')){
                            $menu_items = wp_get_nav_menu_items($syrus->get_current_main_menu_name());
                            $menu_items = wp_is_mobile() ? [$menu_items[0],$menu_items[1]] : $menu_items;
                            $menu_items = is_array($menu_items) ? $menu_items : [];
                            foreach($menu_items as $index => $menu_item){ ?>
                            <div class="col-auto nav-item main-menu d-flex align-items-center justify-content-center position-relative">
                                <a href="<?php echo $menu_item->url; ?>" style="">
                                    <?php echo $menu_item->title; ?>
                                </a>
                            </div>
                    <?php } } else if(current_user_can( 'manage_options' )) { ?>
                        <div class="col-4 d-flex p-2 p-md-0 nav-item main-menu d-flex align-items-center justify-content-center position-relative nav-item main-menu">
                            <a href="<?php echo admin_url('nav-menus.php') ?>" class="text-white">
                                <?php _e("Add a menu",'syrus') ?>
                            </a>
                        </div>
                    <?php } ?>
                </div>

            </div>
            <?php do_action( 'head_theme_after_menu' ); ?>
        </div>
    </div>
</div>

<div class="container-fluid topnav-2 container-img-header position-absolute start-0 top-0 p-0 m-0">
    <img src="<?php echo $args['set_image'] ?>" alt="">
    <?php if(display_header_text()) { ?>
        <h1 class="blog-title"><?php echo get_bloginfo('title') ?></h1>
        <h4 class="blog-motto"><?php echo get_bloginfo('description') ?></h4>
    <?php } ?>
    <div class="container-info">
        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem omnis ratione esse fugiat reprehenderit vel nulla repellat incidunt tempore! Distinctio quam accusantium dolores </p>
    </div>
</div>