HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/dodolodge-net/wp-content/themes/hotel-wp/inc/widgets/testimonials/tpl/default.php
<?php
/**
 * Template for displaying default element.
 *
 *
 * @author      ThimPress
 * @package     Thim_Builder/Templates
 * @version     1.0.0
 * @author      Thimpress, tuanta
 */

$css_animation = esc_attr( $instance['css_animation'] );
$style         = esc_attr( $instance['style'] );
 $title         = $instance['title'];
$auto          = $instance['auto'];

$testimonials_args = array(
	'post_type'           => 'testimonials',
	'posts_per_page'      => $instance['number-posts'],
	'ignore_sticky_posts' => true,
);

$testimonials_qurey = new WP_Query( $testimonials_args );
?>

	<div class="thim-sc-testimonial <?php echo $style; ?>" data-animation="<?php echo $css_animation; ?>" data-auto="<?php echo $auto; ?>">
		<h4 class="block-title"><?php echo $title; ?></h4>
		<?php if ( $testimonials_qurey->have_posts() ) : ?>
			<div class="owl-carousel owl-theme testimonial-slider-<?php echo $style; ?>">
				<?php while ( $testimonials_qurey->have_posts() ) : $testimonials_qurey->the_post(); ?>
					<div class="testimonial-item">
						<div class="testimonial-content"><?php echo get_the_content(); ?></div>
						<p class="testimonial-rating"></p>
						<h5 class="testimonial-name"><?php the_title( ' ', ' ' ); ?></h5>
					</div>
				<?php endwhile; ?>
				<?php wp_reset_postdata(); ?>
			</div>
		<?php endif; ?>
	</div>

<?php