
<div class="left-header-box  header-one-one-4">

<?php if ( is_user_logged_in() ) { ?>


<div class="left-rr-user kkj-33434">
<i class="mdi mdi-account-outline"></i>
<b>حساب کاربری</b>
</br><div class="user-meta">
<a href="<?php echo home_url() ?>/my-account/"><i class="mdi mdi-view-dashboard-outline"></i>پنل کاربری </a>
<a href="<?php echo home_url() ?>/my-account/edit-account/"><i class="mdi mdi-account-outline"></i>ویرایش حساب کاربری </a>
<a href="<?php echo home_url() ?>/my-account/orders/"><i class="mdi mdi-card-bulleted-outline"></i> سفارش های شما </a>
<a href="<?php echo home_url() ?>/my-account/mywishlist/"><i class="mdi mdi-heart"></i> علاقه مندی های شما </a>

<div class="log-111">

<a  href="<?php echo home_url() ?>/my-account/customer-logout/"> <i class="mdi mdi-account-arrow-left-outline"></i>خروج از سایت </a>

</div>
</div>
</div>


 <?php } 
 else { ?>
 <a href="<?php echo home_url() ?>/my-account/" class="left-rr-user">
<i class="mdi mdi-account-outline"></i><b>ورود و عضویت</b>
</a>
 <?php } ?>
 <div class="ninkak-header">
<span  class="left-sabad min-car-6 iconic">
<i class="mdi mdi-basket"></i><span><div class="header-cart-count"><?php echo WC()->cart->get_cart_contents_count(); ?></div></span>
<div class="mini-cart-3">

<div class="widget_shopping_cart_content"><?php woocommerce_mini_cart(); ?></div> </div>
</span></div>
<span href="#" class="left-sabad etela trybut iconic">
<i class="mdi mdi-bell-ring-outline"></i>

<div class="box-etel">

<?php $query = new WP_Query(array('post_type' =>'elai',
	'posts_per_page'  => 10));
	if ($query){while($query->have_posts()) : $query->the_post(); ?>
	<a class="elktwo" href="<?php the_permalink(); ?>">
	<div class="elk-1">
	<h3><?php the_title(); ?></h3> 
	

	</div>
	
	</a>

	<?php endwhile; } ?>
	</div>
</span>

<a class="left-sabad iconic" id="myBtn">
<i class="mdi mdi-magnify"></i>
</a>
<a class="left-sabad menu-resp" onclick="openNav()">
<i class="mdi mdi-menu"></i>
</a>

</div>
<div class="searchnav mobin1">
<?php echo do_shortcode('[wcas-search-form]'); ?>

</div>
</div></div>

</div>


</div>
      <script type="text/javascript">   $('document').ready(function () {   $(".kkj-33434").click(function(){    $('.user-meta').slideToggle('slow');   });   });
</script>

      <script type="text/javascript">   $('document').ready(function () {   $(".trybut").click(function(){    $('.box-etel').slideToggle('slow');   });   });
</script>



<div id="mySidenav" class="sidenav">
  <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
<div class="mob-1"> 
          <form class="search" method="get" action="<?php bloginfo('url'); ?>">
<input type="text" placeholder="دنبال چی هستی؟
" onfocus="if (this.value == '') {this.value = '';}" onblur="if (this.value == '') {this.value = '';}" name="s" class="text">

<button type="submit" class="submit icon-search"><i class="mdi mdi-magnify"></i></button>
<input type="hidden" name="post_type" value="product" />
</form>

</div>
<div class="mobile-menu-1 stellarnav">
 <?php 
                        $defaults = array(
                            'theme_location' => 'header-menu',
                            'menu' => '',
                            'container' => '',
                            'container_class' => '',
                            'container_id' => '',
                            'menu_class' => 'main_menu',
                            'menu_id' => '',
                            'echo' => true,
                            'fallback_cb' => 'wp_page_menu',
							    'add_li_class'  => 'mega',
                            'before' => '',
                            'after' => '',
                            'link_before' => '',
                            'link_after' => ' ',
                            'items_wrap' => '<ul id="header_main_nav" class="nav header-nav header-bottom-nav nav-center  nav-uppercase">%3$s</ul>',
                            'depth' => 0,
                            'walker' => ''
                            );
                        wp_nav_menu($defaults);
                    ?>
</div>

<!-- required -->
	<script type="text/javascript">
		jQuery(document).ready(function($) {
			jQuery('.stellarnav').stellarNav({
				theme: 'dark',
				breakpoint: 3000,
				position: 'right',
				phoneBtn: '',
				locationBtn: ''
			});
		});
	</script>
	<!-- required --></div>

<!-- The Modal -->
<div id="myModal" class="modal">

  <!-- Modal content -->
  <div class="modal-content">
    <span class="close">&times;</span>
<?php echo do_shortcode('[wcas-search-form]'); ?>
  </div>

</div> 
 <script>
/* Set the width of the side navigation to 250px */
function openNav() {
  document.getElementById("mySidenav").style.display = "block";
}

/* Set the width of the side navigation to 0 */
function closeNav() {
  document.getElementById("mySidenav").style.display = "none";
} 
</script>
