<?php global $qaleb;?>
<div class="navigation" id="navigation-demo">
<nav>
<div class="navigation-button">
<div class="ic_menu">
<span></span>
</div>
</div>

<h3><?php echo bloginfo("name");?></h3>


<?php if($qaleb['searchform-ac']=='1'){?>
<form method="get" action="<?php echo home_url(); ?>">
<input type="search" name="s" placeholder="<?php global $qaleb; echo $qaleb['search-text'];?>" type="text">
<button class='search-button' type='submit'><i class="fa fa-search" aria-hidden="true"></i></button>
</form>
<?php } ?>

<?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 } ?>

<div id='sidebmenu'><?php wp_nav_menu( array( 'theme_location' => 'mobile' )); ?></div>
<div class="bottomsocial">
<ul>
<?php if($qaleb['social-fb-ac']=='1'){?><li><a class="ap-icon tooltip tooltip-top" data-iro="فیسبوک" href="<?php echo $qaleb['social-fb'];?>"><i class="fa fa-facebook"></i></a></li><?php } ?>
<?php if($qaleb['social-tw-ac']=='1'){?><li><a class="ap-icon tooltip tooltip-top" data-iro="تویتر"  href="<?php echo $qaleb['social-tw'];?>"><i class="fa fa-twitter"></i></a></li><?php } ?>
<?php if($qaleb['social-in-ac']=='1'){?><li><a class="ap-icon tooltip tooltip-top" data-iro="اینستاگرام" href="<?php echo $qaleb['social-in'];?>"><i class="fa fa-instagram"></i></a></li><?php } ?>
<?php if($qaleb['social-tg-ac']=='1'){?><li><a class="ap-icon tooltip tooltip-top" data-iro="تلگرام" href="<?php echo $qaleb['social-tg'];?>"><i class="fa fa-paper-plane"></i></a></li><?php } ?>
<?php if($qaleb['social-yo-ac']=='1'){?><li><a class="ap-icon tooltip tooltip-top" data-iro="یوتیوب" href="<?php echo $qaleb['social-yo'];?>"><i class="fa fa-youtube"></i></a></li><?php } ?>
<?php if($qaleb['social-rss-ac']=='1'){?><li><a class="ap-icon tooltip tooltip-top" data-iro="فید مطالب" href="<?php bloginfo('rss_url'); ?>"><i class="fa fa-rss"></i></a></li><?php } ?>
<?php if($qaleb['social-gp-ac']=='1'){?><li><a class="ap-icon tooltip tooltip-top" data-iro="گوگل پلاس" href="<?php echo $qaleb['social-gp'];?>"><i class="fa fa-google-plus"></i></a></li><?php } ?>		
</li>
</ul>
 </div>
</nav>
</div>