
<?php if ( $the_query->have_posts() ) : ?>
	<div class="tm-sc tm-sc-testimonials tm-sc-testimonials-thumb-carousel <?php echo esc_attr(implode(' ', $classes)); ?>">
		<?php include('filter-carousel.php'); ?>

		<div id="<?php echo esc_attr( $holder_id ) ?>" class="owl-carousel owl-theme tm-owl-thumb-carousel"  data-slider-id="<?php echo esc_attr( $holder_id ) ?>" <?php echo html_entity_decode( esc_attr( implode(' ', $owl_carousel_data_info) ) ) ?>>
			<!-- the loop -->
			<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
			<div class="tm-carousel-item">
				<div id="post-<?php the_ID() ?>" <?php post_class( 'tm-testimonial' ); ?>>
					<div class="testimonial-inner">
						<div class="testimonial-text-holder">
							<?php if ( $show_testimonial_title == 'true' && ! empty( $show_testimonial_title ) && ! empty( educacion_mascot_get_rwmb_group( 'educacion_mascot_' . "testimonials_mb_settings", 'testimonial_title' ) ) ) : ?>
							<<?php echo esc_attr( $title_tag );?> class="testimonial-title"><?php echo wp_kses_post( educacion_mascot_get_rwmb_group( 'educacion_mascot_' . "testimonials_mb_settings", 'testimonial_title' ) );?></<?php echo esc_attr( $title_tag );?>>
							<?php endif; ?>

							<?php if ( $show_testimonial_text == 'true' ) : ?>
							<?php educacion_mascot_get_cpt_template_part( 'author-text', null, 'testimonials/shortcodes/tpl', $params, false ); ?>
							<?php endif; ?>
								
							<?php if ( $show_rating == 'true' ) : ?>
							<?php include( 'star-rating.php' ); ?>
							<?php endif; ?>
						</div>

						<div class="testimonial-author-details">
							<div class="testimonial-author-info-holder">
								<?php if ( $show_author_name == 'true' ) : ?>
								<<?php echo esc_attr( $author_name_tag );?> class="name"><?php echo esc_html( educacion_mascot_get_rwmb_group( 'educacion_mascot_' . "testimonials_mb_settings", 'author_name' ) );?></<?php echo esc_attr( $author_name_tag );?>> 
								<?php endif; ?>

								<?php if ( $show_author_job_position == 'true' ) : ?>
								<span class="job-position"><?php echo esc_html( educacion_mascot_get_rwmb_group( 'educacion_mascot_' . "testimonials_mb_settings", 'author_job_position' ) );?></span>
								<?php endif; ?>

								<?php if ( $show_author_company == 'true' ) : ?>
								<a class="company-url" href="<?php echo esc_url( educacion_mascot_get_rwmb_group( 'educacion_mascot_' . "testimonials_mb_settings", 'author_company_URL' ) );?>"><?php echo esc_html( educacion_mascot_get_rwmb_group( 'educacion_mascot_' . "testimonials_mb_settings", 'author_company' ) );?></a>
								<?php endif; ?>
							</div>
						</div>
					</div>
				</div>
			</div>
			<?php endwhile; ?>
			<!-- end of the loop -->
		</div>
		<div class="owl-carousel owl-theme tm-owl-thumbs"  data-slider-id="<?php echo esc_attr( $holder_id ) ?>" <?php echo html_entity_decode( esc_attr( implode(' ', $owl_carousel_data_info) ) ) ?>>
			<!-- the loop -->
			<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
			<div class="tm-owl-thumb-item">
				<?php if ( has_post_thumbnail() && $show_thumb == 'true' ) : ?>
				<?php echo get_the_post_thumbnail( get_the_ID(), $feature_thumb_image_size, array( 'class' => 'img-thumbnail rounded-circle' ) );?>
				<?php endif; ?>
			</div>
			<?php endwhile; ?>
			<!-- end of the loop -->
		</div>
		<?php wp_reset_postdata(); ?>
	</div>

<?php else : ?>
	<?php educacion_mascot_no_posts_match_criteria_text(); ?>
<?php endif; ?>