<?php global $qaleb;?>
<section class="posts">
 <div class="box-header"><b><?php wp_title(""); ?></b></div>			
 <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?>
        <div class="post-item-excerpt clearfix">
        <div class="post-thumbnail medium">
              <?php if(has_post_thumbnail()){?>
                  <a class="attachment-medium size-medium wp-post-image" href="<?php the_permalink(); ?>"><?php $ata = get_the_title(); if ( has_post_thumbnail()) the_post_thumbnail('img-145', array('title' => esc_attr( $post->post_title ) , 'alt' => $ata ) ); ?></a>
                  <?php }else{ ?>
                  <img src="<?php bloginfo("template_url"); ?>/img/none.png">
                  <?php } ?>
				<span class="boxe-1-left-date"><?php the_time('d M Y'); ?></span>
        </div>
        <div class="post-excerpt">
		  <?php if(get_post_meta( get_the_ID(), 'meta-text-1', true )!=null){ ?> <small class="subtitle text-muted"><i class="fa fa-stop" aria-hidden="true"></i> <?php echo get_post_meta( get_the_ID(), 'meta-text-1', true ); ?></small> <?php } ?>
                <h3 class="post-title2">
                <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
            </h3>
            <div class="post-excerpt-summary">
                <p><?php if(get_meta('lead') != false) : echo get_meta('lead'); else : the_excerpt(); endif; ?></p>
            </div>
        </div>
    </div>	
	
   <?php endwhile;
				else:
				echo "<b>چیزی یافت نشد !</b>";
				 endif; ?>
      </section>

<?php if (function_exists("pagination")){ pagination($additional_loop->max_num_pages); } ?> 