<?php
/**
 * Template Name: Testimonials Grid 
 * The main template file for display blog page.
 *
 * @package WordPress
*/

get_header(); 




?>



 
   <!-- start section -->
            <section class=" half-section">
                <div class="container-fluid">
                    <div class="row justify-content-center">
	 <?php


$key = 0;

if (have_posts()) : while (have_posts()) : the_post();
		$career_ID = get_the_ID();
	$animate_layer = $key+7;
	$image_thumb = '';
								
	if(has_post_thumbnail(get_the_ID(), 'full'))
	{
	    $image_id = get_post_thumbnail_id(get_the_ID());
	    $image_thumb = wp_get_attachment_image_src($image_id, 'full', true);
	    $image=$image_thumb[0];
	}
	else
	{
	    $image = TMPL . "assets/images/fav.png";
	}
?>    

<!-- start testimonial item -->
                    <div class="col-12 col-lg-4 col-md-6 col-sm-8 md-margin-50px-bottom xs-margin-35px-bottom">
                        <div class="testimonials testimonials-style-01 bg-light-gray padding-3-half-rem-all pe-0 lg-padding-3-rem-all sm-padding-4-rem-all">
                            <i class="testimonials-quotes ti-quote-left icon-large text-fast-blue"></i>
                            <div class="testimonials-bubble text-extra-medium d-block w-75 lg-w-85"><?php the_content(); ?></div>
                            <div class="w-100 h-1px bg-medium-gray margin-35px-tb lg-margin-30px-tb"></div>
                            <div class="author">
                                <img class="rounded-circle w-60px h-60px margin-15px-right" src="<?php echo esc_url($image); ?>" alt="<?php the_title(); ?>">
                                <div class="d-inline-block align-middle">
                                    <span class="alt-font text-medium font-weight-500 line-height-20px text-extra-dark-gray d-block text-uppercase"><?php the_title(); ?></span>
                                    <span class="d-block text-small text-uppercase">Graphic designer</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- end testimonial item -->
    
 
    

<?php 
	if($key > 0 && ($key+1)%2 == 0)
	{
?>

<?php
	}
?>
<?php $key++; ?>
<?php endwhile; endif; ?>

			<?php
			    if($wp_query->max_num_pages > 1)
			    { ?>
 <!-- start pagination -->
                        <div class="col-12 d-flex justify-content-center margin-3-half-rem-top md-margin-3-rem-top wow animate__fadeIn">
			    <?php	if (function_exists("swap_pagination")) 
			    	{?>
			    	
			    	    
			    	        <?php	    swap_pagination($wp_query->max_num_pages);?>
			   
			     <?php	}
			    	else
			    	{
			    	?>
			    	    <?php posts_nav_link(' '); ?>
			    	<?php
			    	}
			    ?>
			   
			     
			     </div>
                        <!-- end pagination -->
			     
			     <?php
			     }
			?>
		</div>
</div>




</section>
 
 
 
 

			
 
 

<?php get_footer(); ?>