<?php
/*
Template Name: Blog List
*/
 get_header();?>
  <div class="PageTitleSection">
  <div class="container">
<h2><?php the_title();?></h2>
</div>
 </div>
 
<section id="contentPart" class="contentPart innerPageContent">
      <div id="primary" class="content-area">
		<main id="main" class="site-main">
		<!--blogPageWrap-->
        <div class="BlogContentHolder">
 <div class="container">
  <div class="row">
  <div class="col-sm-8">
   <div class="Blogleftside">
   <?php $temp_query = $wp_query; ?>
			 <?php query_posts('post_type=POST&showposts=10&order=asc&paged='.$paged); ?>
			 <?php while (have_posts()) : the_post(); ?>
   <div class="BlogListBlock">
   <div class="title"><h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3></div>
   <div class="PostDetails"><strong>Posted by:</strong> <?php the_author(); ?> <span class="divider">|</span> <?php the_time('F j, Y') ?> <span class="divider">|</span> <?php the_category(', ') ?></div>
   <div class="BlogDescriptionWrap">
   <div class="row">
  <div class="col-sm-7">
   <div class="blog-left-cont-bx">
   <p><?php the_excerpt(); ?><a class="readmore" href="<?php the_permalink() ?>">Read more</a></p>
   </div>
   </div>
   <div class="col-sm-5">
   <div class="blog-right-cont-bx">
   <?php echo get_the_post_thumbnail( $post_id, $size, $attr ); ?>
    </div>
     </div>
      </div>
      </div>
      </div>
      <?php endwhile; ?>
      
      
      </div>
    </div>
    
    
<div class="col-sm-4">
<div class="BlogRightside">
<?php include('left-sidebar.php');?>
</div>
  </div>



    </div>
    </div>
   </div>
   
   
    
<!--blogPageWrap-->
		</main><!-- .site-main -->
	</div>
   </section> 

<!--/.contentPart--> 
 <?php get_footer();?>