<?php global $qaleb;?>
<?php if($qaleb['last-post-ac']=='1'){?>
<div class="clearfix"></div>
<div class="boxx">
<div class="tit">
<h4><span><?php echo $qaleb['last-post-title']; ?></span></h4>
</div>
<?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?>
<section class="apnews ne_three">
<div class="polist clearfix">
<div class="item clearfix">
<?php if($qaleb['da-last'] == '1'){?><div class="datee"><span><?php the_time('d');  ?></span><b><?php the_time('F');  ?></b></div><?php } ?>
<div class="thumbnail">
<?php if(has_post_thumbnail()){?>
<a href="<?php the_permalink(); ?>"><img src="<?php the_post_thumbnail_url('loop-bar'); ?>" alt="<?php the_title(); ?>"></a>
<?php }else{ ?>
<img src="<?php bloginfo("template_url"); ?>/img/none.png">
<?php } ?>
</div>
<div class="det">
<div class="met">
<?php if(get_post_meta( get_the_ID(), 'meta-text-1', true )!=null){ ?><span class="cat"><?php echo get_post_meta( get_the_ID(), 'meta-text-1', true ); ?></span> <?php } ?>
</div>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p><?php if(get_meta('lead') != false) : echo get_meta('lead'); else : the_excerpt(); endif; ?> </p>
</div>
</div>
</div>
</section>
   <?php endwhile;
				else:
				echo "<b>چیزی یافت نشد !</b>";
				 endif; ?>
<?php numeric_posts_nav(); ?>
</div>
<?php } ?>