<?php



// Template Name: Cases Template



?>

<?php get_header('inner'); ?>


<section class="middle row">
<div class="Mid_top Align_cent"><div class="container Gray2 OswalReg36 Letter_space2 Upparcase"><?php echo $data['case_header'];?></div></div>

<div class="Main_mid  contmain row Offset6">
<div class="container">

<?php
$paged = get_query_var('paged') ? get_query_var('paged') : 1;	
 query_posts(array('post_type' => 'cases', 'posts_per_page' =>'2', 'paged' => $paged )); 



             	if (have_posts()) : while (have_posts()) : the_post();
				$large_image =  wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'fullsize', false, '' ); 



                $large_image = $large_image[0]; 
				
				 $case_values = get_post_meta( $post->ID,'case_charges', true ); 
				?>

<div class="Cases row">
<div class="Cases_image "><a href="<?php the_permalink(); ?>">
<img src="<?php echo $large_image ?>" alt="img"></a>
<div class="Case_img_title">
<h2 class="Upparcase"><?php the_title(); ?></h2>
<p><?php echo $case_values; ?></p>
</div>
</div>
<div class="Cases_content ">
<?php the_content();  ?>

</div>

</div>

<?php endwhile; endif; ?>
<div class="row">


<?php if (function_exists("pagination")) {pagination();} ?>





</div>

</div>
</div>












</section>


<?php get_footer();?>