<?php if(get_theme_mod( 'tromas_testimonial_section_enable')):?>
<!-- Start Testimonials -->
<section id="testimonials" class="testimonials section">
	<div class="container">
		<div class="row">
			<div class="col-12">
				<div class="testimonial-carousel">
						<?php
  						$i=1;
  						for($i=1;$i<7;$i++){
			                  $testimonial[$i] = get_theme_mod('tromas_testimonial_page_'.$i);    
			                  $testimonialposition[$i] = get_theme_mod('tromas_testimonial_position_'.$i);
		              		}
	                      $args = array (
	                          'post_type' => 'page',
	                          'posts_per_page' => $i,
	                          'post__in'      => $testimonial,
	                          'orderby'        =>'post__in',
	                        );
	                      $testimonialloop = new WP_Query($args);
	                      if ($testimonialloop->have_posts()) :  while ($testimonialloop->have_posts()) : $testimonialloop->the_post(); $k=1; ?>
							<!-- Single Testimonial -->
							<div class="single-testimonial">
								<div class="testimonial-content">
									<i class="fa fa-quote-left"></i>
									<p><?php the_content(); ?></p>
								</div>
								<div class="testimonial-info">
									<span class="arrow"></span>
									<?php if(has_post_thumbnail()): ?>
										<?php the_post_thumbnail('tromas-testimonial-thumb'); ?> 
									<?php endif; ?>
									<h6><?php the_title(); ?><span><?php echo esc_html($testimonialposition[$k]); ?></span></h6>
								</div>				
							</div>
							<!--/ End Single Testimonial -->	
					<?php  $k=$k+1; endwhile;
						              wp_reset_postdata();  
						            endif; ?>
				</div>
			</div>
		</div>
	</div>
</section>
<!--/ End Testimonial -->
<?php endif;?>