abchospitality/wp-content/themes/abchospitality/testimonials.php
2024-04-18 15:32:23 +05:45

73 lines
2.8 KiB
PHP

<?php
/**
* Template Name: Testimonials
*/
get_header(); ?>
<?php
while ( have_posts() ) :
the_post();?>
<!-- BREADCRUMB AREA START -->
<div class="ltn__breadcrumb-area ltn__breadcrumb-area-2 ltn__breadcrumb-color-white bg-overlay-theme-black-90 bg-image"
data-bg="img/bg/breadcrumb.png">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="ltn__breadcrumb-inner ltn__breadcrumb-inner-2 justify-content-between">
<div class="section-title-area ltn__section-title-2">
<!-- <h6 class="section-subtitle ltn__secondary-color">// Welcome to our company</h6> -->
<h1 class="section-title white-color">Client Feedbacks</h1>
</div>
<div class="ltn__breadcrumb-list">
<ul>
<li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">Home</a></li>
<li>Testimonials</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- BREADCRUMB AREA END -->
<!-- TESTIMONIAL AREA START (testimonial-4) -->
<div class="ltn__testimonial-area section-bg-1 pt-90 pb-70 mb-80">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="section-title-area ltn__section-title-2 text-center">
<h1 class="section-title">Clients Feedbacks</h1>
</div>
</div>
</div>
<div class="row">
<?php
// Check if the ACF repeater field exists
if( have_rows('client_feedback', 180) ) :
// Loop through the repeater field
while( have_rows('client_feedback', 180) ) : the_row(); ?>
<div class="col-lg-6">
<div class="ltn__testimonial-item ltn__testimonial-item-4">
<div class="ltn__testimoni-img">
<img src="<?php the_sub_field('image'); ?>" alt="#">
</div>
<div class="ltn__testimoni-info">
<p>
<?php the_sub_field('description'); ?>
</p>
<h4><?php the_sub_field('name'); ?></h4>
<h6><?php the_sub_field('job_title'); ?></h6>
</div>
<div class="ltn__testimoni-bg-icon">
<i class="far fa-comments"></i>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
<!-- TESTIMONIAL AREA END -->
<?php
endwhile;
get_footer(); ?>