<?php
/**
* The template for displaying page
* template name: Case Study Template
*
* @package TSS technology
* @since TSS technology 1.0
*/

get_header();
?>

<!-- BANNER -->

	<div class="section banner-page about">
		<div class="container">
			<div class="row">
				<div class="col-sm-12 col-md-12">
					<div class="title-page"><?php the_title(); ?></div>
					<ol class="breadcrumb">
						<li><a href="<?php home_url(); ?>">Home</a></li>
						<li class="active"><?php the_title(); ?></li>
					</ol>
				</div>
			</div>
		</div>
	</div>

 <?php 

	$args = array('post_type'=>'case_study');

	$qr = new WP_Query($args);

	if($qr->have_posts())
	{ 

	 ?>
	<!-- Team -->
	<div class="section feature overlap">
	<div class="container">
		<div class="row">  
			
			 
			<div class="col-sm-12 col-md-12">
				<h2 class="section-heading"> </h2>
				<div class="history-2">
					<?php while ($qr->have_posts()) { 
						$qr->the_post();
						$content = get_the_content();
						$img_url = wp_get_attachment_url(get_post_thumbnail_id($post->ID),'full');

					?>
					<div class="timeline__item">
						<div class="media"><img src="<?php echo $img_url; ?>" class="img-responsive" alt=""></div>
						<div class="aksen"></div>
						<div class="text">
							
							<div class="title"><?php the_title(); ?></div> 
							<?php the_content(); ?>
							<div class="widget download">
						<a href="<?php the_field('pdf_links'); ?>" class="btn btn-secondary btn-block btn-sidebar">
							<!--<span class="fa  fa-file-pdf-o"></span>--> Read More
						</a>
					</div>
						</div>
						 	
					</div>
					
					<?php } ?>
					
				</div>
			</div>
		</div>
	</div>
</div>	
	<?php } ?>
<?php get_footer(); ?>