Current File : /home/honehdyv/readbtooom.com/wp-content/themes/toivo-lite/area-testimonial.php
			<?php 
			/**
			 * Testimonial area in Front Page Template.
			 *
			 * @package Toivo Lite
			 */
			
			if( ! get_theme_mod( 'hide_testimonials' ) ) : // Check do we want to show testimonials. ?>
			
				<?php // Testimonials area
					$testimonials = new WP_Query( apply_filters( 'toivo_lite_testimonials_arguments',array(
						'post_type'      => 'jetpack-testimonial',
						'orderby'        => 'rand',
						'posts_per_page' => 4,
						'no_found_rows'  => true,
					) ) );
				?>

				<?php if ( $testimonials->have_posts() ) : ?>

					<div id="testimonial-area" class="testimonial-area front-page-area">
				
						<?php
							$jetpack_options = get_theme_mod( 'jetpack_testimonials' );
							$toivo_lite_testimonial_heading = isset( $jetpack_options['page-title'] ) && '' != $jetpack_options['page-title'] ? esc_html( $jetpack_options['page-title'] ) : esc_html__( 'Testimonials', 'toivo-lite' );
							echo '<h2 class="entry-title" ' . hybrid_get_attr( 'entry-title' ) . '>' . $toivo_lite_testimonial_heading . '</h2>';
						?>
					
						<div class="testimonial-wrapper">

							<?php while ( $testimonials->have_posts() ) : $testimonials->the_post(); ?>

								<?php get_template_part( 'content', 'jetpack-testimonial' ); ?>

							<?php endwhile; ?>

						</div><!-- .testimonial-wrapper -->
					</div><!-- #testimonial-area -->

				<?php
					endif; // End loop.
					wp_reset_postdata(); // Reset post data.
				?>
			
			<?php endif; // End check for testimonials ?>