<!DOCTYPE html>
<html <?php language_attributes(); ?> dir="rtl">
<head>
<?php if (is_home()) { ?>
<title><?php bloginfo('name'); ?></title>
<?php } else { ?>
    <title><?php wp_title(''); ?> | <?php bloginfo('name'); ?></title>
<?php } global $qaleb; 
if($qaleb['favicon_uploader']['url'] != ''){
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="fa">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<meta name="description" content="<?php bloginfo('description'); ?>"/>
<link rel="shortcut icon" href="<?php echo $qaleb['favicon_uploader']['url']; ?>" />
<?php } ?>
<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" />
<?php wp_head(); ?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.js"></script>
</head>		
<body>
<?php get_template_part('style'); ?>
<?php if($qaleb['news-ac']=='1'){?><?php get_template_part('inc/templates/ticker'); ?><?php } ?>
<header id="header">
<div class="container">
<div class="he-1">
<div class="site-logo"><a href="<?php bloginfo('url'); ?>"><img src="<?php echo $qaleb['siteicon_uploader']['url']; ?>" alt="<?php echo bloginfo("name");?>"></a></div>
</div>
<div class="he-2">
<i class="fa fa-th" aria-hidden="true" data-toggle="modal" data-target="#left_modal_sm" ></i>
<nav class="nav-main"><?php wp_nav_menu( array( 'theme_location' => 'nav-main' )); ?></nav>
</div>
<div class="he-3">
<div class="he-3a">
<ul>
<?php if($qaleb['shopping']=='1'){?><li><a href="<?php echo $qaleb['cart-site'];?>"><i class="fa fa-shopping-bag" aria-hidden="true"></i><span><?= sizeof( WC()->cart->get_cart()); ?></span></a></li><?php } ?>
<?php if($qaleb['searchform-ac']=='1'){?><li><a data-toggle="modal" data-target="#top_modal"><i class="fa fa-search" aria-hidden="true"></i></a></li><?php } ?>
<?php if($qaleb['contact-form-ac']=='1'){?><li><a data-toggle="modal" data-target="#regular_modal"><i class="fa fa-envelope-o"></i></a></li><?php } ?>
<?php if($qaleb['login-ac']=='1'){?><li><a data-toggle="modal" data-target="#left_modal"><i class="fa fa-user"></i></a></li><?php } ?>
<?php if($qaleb['rss-ac'] == '1'){?><li><a href="<?php bloginfo('rss_url'); ?>"><i class="fa fa-rss"></i></a></li><?php } ?>
<?php if($qaleb['night']=='1'){?>
<div class="dark-button"> <i class="fa fa-moon-o" aria-hidden="true"></i></div>
<div class="light-button" style="display: none;" hidden="hidden"><i class="fa fa-sun-o" aria-hidden="true"></i></div>
<?php } ?>
</ul>
</div>
<div class="he-3b"></div>
</div>
</div>
</header>
<div class="modal modal-left fade" id="left_modal_sm" tabindex="-1" role="dialog" aria-labelledby="left_modal_sm">
  <div class="modal-dialog modal-sm" role="document">
    <div class="modal-menu">
      <div class="modal-header">
        <h5 class="modal-title">فهرست سایت</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
         <div id='sidebmenu'><?php wp_nav_menu( array( 'theme_location' => 'nav-mobile' )); ?></div>	  
        </div>
	  </div>
    </div>
  </div>
</div>