<?php get_header(); ?>

<div id="myModal" class="modal">
  <!-- Modal content -->
  <div class="modal-content">
<div class="close">&times;</div>
<h2>لینک کوتاه<h2>	
<h3>لـیـنـک زیـر را کـپـی کـنـیـد !</h3>		
<h4><?php echo wp_get_shortlink(); ?></h4>
</div>
</div>

<?php global $qaleb;?>
<div class="container">
<div class="wrapper">
<div class="ap-single">
<div class="single-main">
<div class="post-entry">
<div class="post-content">

<div class="post-header">
<div class="breadcrumb"><a href="<?php bloginfo('url'); ?>">صفحه نخست </a> <span class="arrow button-next"></span> <?php the_title(); ?>
<li><span>انتشار : </span><?php the_time(' d F Y  -  G:i');  ?></li>
<li><span>مشاهده : </span><?php echo getPostViews (get_the_ID()); ?></li>
<li><span>ارسال : </span><?php the_author_posts_link(); ?></li>
</div>
<h1 class="post-title"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
</div>

<div class="entry">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php setPostViews(get_the_ID());?>
<?php the_content(); ?>
<?php endwhile; else : endif; ?>	
</div>

</div>

<div class="post-controll">
<div class="inn">
<div class="post-share">
<ul>
<?php if($qaleb['single-social-ac']=='1'){?>
<li><a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>"><i class="fa fa-facebook"></i></a></li>
<li><a target="_blank" href="http://twitter.com/home?status=<?php the_permalink(); ?>"><i class="fa fa-twitter"></i></a></li>
<li><a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&amp;url=<?php the_permalink() ?>"><i class="fa fa-linkedin"></i></a></li>
<li><a target="_blank" href="https://telegram.me/share/url?url=<?php the_permalink(); ?>"><i class="fa fa-send-o"></i></a></li>
<li><a target="_blank" href="https://wa.me/?text=<?php the_permalink(); ?>"><i class="fa fa-whatsapp"></i></a></li>
<?php } ?>
</ul>
</div>
<div class="post-icons">
<ul>
<?php if($qaleb['single-font-ac']=='1'){?>
<li class="font-size-control plus" title="بزرگنمایی" data-action="increase"><i class="fa fa-font" aria-hidden="true"></i></li>
<li class="font-size-control" title="کوچکنمایی" data-action="decrease"><i class="fa fa-font" aria-hidden="true"></i></li>
<?php } ?>
<?php if($qaleb['print']=='1'){?><li><a class="print" href="#" onclick='window.open("<?php the_permalink();?>?print=1", "printwin","left=200,top=200,width=820,height=550,toolbar=1,resizable=0,status=0,scrollbars=1");'><i class="fa fa-print"></i></a></li><?php } ?>
<?php if($qaleb['singl-link-ac']=='1'){?><li><a id="myBtn"><i class="fa fa-link" aria-hidden="true"></i></a></li><?php } ?>
<?php if($qaleb['send']=='1'){?><li><i class="fa fa-envelope-o" aria-hidden="true"><?php echo direct_email('') ?></i></li><?php } ?>
</ul>
</div>
</div>
</div>
</div>
<div id="comments" class="comments-area">
<div class="ttit"><h3>ارسال دیدگاه</h3>
</div>
<?php comments_template(); ?>
</div>
</div>
<div class="single-sidebar sidebar">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('index-post') ) : ?><?php endif; ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>