<?php global $qaleb;?>
<style>.ap_header.sticky-header .ap_logo{height:0px;}.ap_header .inn{padding:0px;}</style>
<div class="top_header">
<div class="container">
<div class="inn">
<div class="datee">

<?php if($qaleb['news-icon']=='1'){?>
<div class="ap-am">
<?php if($qaleb['all-news']=='1'){?><b><i class="fa fa-calendar-o" aria-hidden="true"></i>  <?php echo $qaleb['all-news-title'];?><span> <?php $num_posts = wp_count_posts( 'post' ); $num_posts = $num_posts->publish; echo '' . $num_posts . ''; ?></span></b><?php } ?>
<?php if($qaleb['corent-news']=='1'){?><b><i class="fa fa-calendar-check-o" aria-hidden="true"></i>  <?php echo $qaleb['corent-news-title'];?><span> <?php echo wpp_post_count_by_date(); ?></span></b><?php } ?>
</div>
<?php } ?>

<?php if($qaleb['fa-clock']=='1'){?>
<script type="text/javascript">
function startTime()
{
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
// add a zero in front of numbers<10
m=checkTime(m);
s=checkTime(s);
document.getElementById('clock').innerHTML=h+":"+m+":"+s;
t=setTimeout('startTime()',500);
}
function checkTime(i)
{
if (i<10)
  {
  i="0" + i;
  }
return i;
}
</script>
<?php } ?>
<?php if($qaleb['jalali']=='1'){?>
<li>
<i class="fa fa-calendar" aria-hidden="true"></i> 
<?php if(function_exists('parsidate')) { ?>
تاریخ : <?php echo parsidate('l, j F , Y'); ?>
<?php } else { ?>
افزونه پارسی دیت را نصب کنید
<?php } ?>
</li>
<?php } ?>
<?php if($qaleb['milad']=='1'){?><li> برابر با : <?php echo date ('l - j - F - Y') ; ?></li><?php } ?>
<?php if($qaleb['fa-clock']=='1'){?><i class="fa fa-clock-o" aria-hidden="true"></i> ساعت : <span id="clock"> <script type="text/javascript">startTime()</script></span><?php } ?>
</div>
<div class="top_menu"><?php wp_nav_menu( array( 'theme_location' => 'top' )); ?></div>
</div>
</div></div>
<nav class="ap_header">
<div class="container">
<div class="mendd">
<div class="inn">
<div class="ap_logo">
      <a href="<?php bloginfo('url'); ?>">
    <?php if($qaleb['logo-or-title'] == '1'){?>
      <img src="<?php echo $qaleb['siteicon_uploader']['url']; ?>" alt="<?php echo bloginfo("name");?>">
     <?php }else{ ?>
     <h1><?php echo bloginfo("name");?></h1>
     <?php } ?>
      </a>
</div>
</div></div><!-------------mendd----------->
</div>

<div class="menda">
<?php if($qaleb['progress-bar']=='1'){?><div class="progress-container"><div class="progress-bar" id="myBar"></div></div><?php } ?>
<div class="container">
<div class="inn">
<div class="ap_menu"><?php wp_nav_menu( array( 'theme_location' => 'primary' )); ?></div>
<div class="ic_menu"> <i class="fa fa-bars" aria-hidden="true"></i> </div>

<?php if($qaleb['mega-ac']=='1'){?>
<b class="me-icon">
<div class="feather feather-x icon-close"><i class="fa fa-times" aria-hidden="true"></i></div>
<div class="feather feather-x icon-meo"><i class="fa fa-sitemap" aria-hidden="true"></i></div>
</b>
<?php } ?>

<?php if($qaleb['share-menu'] == '1'){?>
<b class="share-icon">
<div class="feather feather-x icon-close"><i class="fa fa-times" aria-hidden="true"></i></div>
<div class="feather feather-x icon-shar"><i class="fa fa-share-alt" aria-hidden="true"></i></div>
</b>
<?php } ?>

<?php if($qaleb['searchform-ac']=='1'){?>
<b class="search-icon">
<div class="feather feather-x icon-close"><i class="fa fa-times" aria-hidden="true"></i></div>
<div class="feather feather-search icon-search"><i class="fa fa-search" aria-hidden="true"></i></div>
</b>
<?php } ?>


<?php if($qaleb['login-ac']=='1'){?>
<b class="le-icon">
<div class="feather feather-x icon-close"><i class="fa fa-times" aria-hidden="true"></i></div>
<div class="feather feather-x icon-leo"><i class="fa fa-user" aria-hidden="true"></i>
</div>
</b>
<?php } ?>

<?php if($qaleb['night']=='1'){?>
<input type="checkbox" id="wp-dark-mode-switch" class="wp-dark-mode-switch">
<div class="wp-dark-mode-switcher wp-dark-mode-ignore  style-1 floating left_bottom">
    <label for="wp-dark-mode-switch">
        <div class="modes">
            <div class="light"></div>
            <div class="dark"></div>
        </div>
    </label>
<?php } ?>
</div>
</div>
<?php get_template_part('inc/item/share'); ?>
<?php get_template_part('inc/item/searchform'); ?>
<?php get_template_part('inc/item/loginform'); ?>
</div>
<?php get_template_part('inc/item/vertical-menu'); ?>
</nav>

</div><!----------menda--------->
<?php get_template_part('inc/item/navigation'); ?>