<?php 
/* Template Name: Sales template */
get_header();
?>
<!----------------------- banner---------------------------------------------------->

<div class="bannerbox"><?php the_post_thumbnail();?></div>

<!----------------------- banner---------------------------------------------------->


<div class="container">
  <div class="pos_head">
      <div class="page_head"><h1><?php the_title();?></h1></div>
  </div>  

</div>

<div class="innerpages">
    <div class="container">
    	<div class="sale_tab">
            <!-- Nav tabs -->
            <ul class="nav nav-tabs jet_tab" role="tablist">
               <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">
               <img src="<?php echo get_template_directory_uri();?>/images/s1.jpg" width="233" height="73" /></a>
               </li>
               <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">
               <img src="<?php echo get_template_directory_uri();?>/images/s2.jpg" width="233" height="73" /></a>
               </li>
               <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">
               <img src="<?php echo get_template_directory_uri();?>/images/s3.jpg" width="233" height="73" /></a>
               </li>
            </ul>
    
            <!-- Tab panes -->
            <div class="tab-content">
              <div role="tabpanel" class="tab-pane fade in active" id="home">
              	<div class="row"><?php
 $i=0;
query_posts( 'cat=4 &order=asc' );while ( have_posts() ) : the_post();
$featuredImage = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID),'full'); 
?>
                	<div class="col-md-4 col-sm-4">
                    <div class="jet_panel">
                    <img src="<?php echo  $featuredImage[0];?>" />
                    <div class="blk_bg">
                   
                            <div class="row">
                                <div class="col-md-7">
                               <?php the_title();?>
                                </div>
                                <div class="col-md-5">
                              <?php the_content();?>
                                </div>
                            </div>
                      
                    </div>
                    </div>
                    </div>
                    
        <?php if($i==2){?><div class="clearfix"></div><?php }endwhile; ?>              
                    
                    
                  
                </div>
                
              </div>
              <div role="tabpanel" class="tab-pane fade" id="profile">
              <div class="row">
                	<?php
 $i=0;
query_posts( 'cat=5 &order=asc' );while ( have_posts() ) : the_post();
$featuredImage = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID),'full'); 
?>
                	<div class="col-md-4 col-sm-4">
                    <div class="jet_panel">
                    <img src="<?php echo  $featuredImage[0];?>" />
                    <div class="blk_bg">
                        <a href="#">
                            <div class="row">
                                <div class="col-md-7">
                               <?php the_title();?>
                                </div>
                                <div class="col-md-5">
                               <?php the_content();?>
                                </div>
                            </div>
                        </a>
                    </div>
                    </div>
                    </div>
                    
        <?php if($i==2){?><div class="clearfix"></div><?php }endwhile; ?>       
                    
                 </div>
              </div>
              <div role="tabpanel" class="tab-pane fade" id="messages">
              	<div class="row">
                	<?php
 $i=0;
query_posts( 'cat=6 &order=asc' );while ( have_posts() ) : the_post();
$featuredImage = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID),'full'); 
?>
                	<div class="col-md-4 col-sm-4">
                    <div class="jet_panel">
                    <img src="<?php echo  $featuredImage[0];?>" />
                    <div class="blk_bg">
                        <a href="#">
                            <div class="row">
                                <div class="col-md-7">
                               <?php the_title();?>
                                </div>
                                <div class="col-md-5">
                                <?php the_content();?>
                                </div>
                            </div>
                        </a>
                    </div>
                    </div>
                    </div>
                    
        <?php if($i==2){?><div class="clearfix"></div><?php }endwhile; ?>       
                </div>
                
                
              </div>
              
            </div>
       </div>
	</div>
</div>
<?php get_footer();?>
 