adding repeater
This commit is contained in:
@ -2,25 +2,33 @@
|
||||
<div class="ltn__about-us-area pt-120 pb-120">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<?php
|
||||
if( have_rows('about', 228) ) :
|
||||
// Loop through the repeater field
|
||||
while( have_rows('about', 228) ) : the_row(); ?>
|
||||
<div class="col-lg-6 align-self-center">
|
||||
|
||||
<div class="about-us-img-wrap about-img-left">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/others/about.png" alt="About Us Image">
|
||||
<img src="<?php the_sub_field('image'); ?>" alt="About Us Image">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 align-self-center">
|
||||
<div class="about-us-info-wrap">
|
||||
<div class="section-title-area ltn__section-title-2">
|
||||
<h6 class="section-subtitle ltn__secondary-color">About Us</h6>
|
||||
<h1 class="section-title">ABC Hospitality</h1>
|
||||
|
||||
<h1 class="section-title"><?php the_sub_field('title');?></h1>
|
||||
|
||||
</div>
|
||||
<p>Welcome to ABC Hospitality Business, an esteemed player in the field of uniform craftsmanship.
|
||||
Operating under the legal entity ABC Hospitality Business, we take pride in our pivotal role in
|
||||
the supply and trading of meticulously crafted uniforms, reinforcing our commitment to
|
||||
excellence in the dynamic hospitality industry.</p>
|
||||
<p><?php the_sub_field('description'); ?></p>
|
||||
</div>
|
||||
<a href="about-us.php"> <button class='btn btn-custom-color'>Read More</button></a>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
endwhile;
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -13,94 +13,23 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row ltn__category-slider-active">
|
||||
<div class="col-12">
|
||||
<div class="ltn__category-item ltn__category-item-3 text-center">
|
||||
<div class="ltn__category-item-img">
|
||||
<a href="shop.html">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/brand-logo/1.png" alt="Image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="ltn__category-item ltn__category-item-3 text-center">
|
||||
<div class="ltn__category-item-img">
|
||||
<a href="shop.html">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/brand-logo/2.png" alt="Image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="ltn__category-item ltn__category-item-3 text-center">
|
||||
<div class="ltn__category-item-img">
|
||||
<a href="shop.html">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/brand-logo/3.png" alt="Image">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="ltn__category-item ltn__category-item-3 text-center">
|
||||
<div class="ltn__category-item-img">
|
||||
<a href="shop.html">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/brand-logo/4.png" alt="Image">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="ltn__category-item ltn__category-item-3 text-center">
|
||||
<div class="ltn__category-item-img">
|
||||
<a href="shop.html">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/brand-logo/5.png" alt="Image">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="ltn__category-item ltn__category-item-3 text-center">
|
||||
<div class="ltn__category-item-img">
|
||||
<a href="shop.html">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/brand-logo/6.png" alt="Image">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="ltn__category-item ltn__category-item-3 text-center">
|
||||
<div class="ltn__category-item-img">
|
||||
<a href="shop.html">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/brand-logo/client7.jpeg" alt="Image">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="ltn__category-item ltn__category-item-3 text-center">
|
||||
<div class="ltn__category-item-img">
|
||||
<a href="shop.html">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/brand-logo/8.png" alt="Image">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="ltn__category-item ltn__category-item-3 text-center">
|
||||
<div class="ltn__category-item-img">
|
||||
<a href="shop.html">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/brand-logo/9.png" alt="Image">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
// Check if the ACF repeater field exists
|
||||
if( have_rows('clients', 197) ) :
|
||||
// Loop through the repeater field
|
||||
while( have_rows('clients', 197) ) : the_row(); ?>
|
||||
<div class="col-12">
|
||||
<div class="ltn__category-item ltn__category-item-3 text-center">
|
||||
<div class="ltn__category-item-img">
|
||||
<a href="shop.html">
|
||||
<img src="<?php the_sub_field('logo'); ?>" alt="#">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -13,103 +13,34 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row ltn__testimonial-slider-3-active slick-arrow-1 slick-arrow-1-inner">
|
||||
<?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-12">
|
||||
<div class="ltn__testimonial-item ltn__testimonial-item-4">
|
||||
<div class="ltn__testimoni-img">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/testimonial/6.jpg" alt="#" />
|
||||
<img src="<?php the_sub_field('image'); ?>" alt="#">
|
||||
</div>
|
||||
<div class="ltn__testimoni-info">
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipi sicing elit,
|
||||
sed do eiusmod tempor incididunt ut labore et dolore magna
|
||||
aliqua.
|
||||
<?php the_sub_field('description'); ?>
|
||||
</p>
|
||||
<h4>Rosalina D. William</h4>
|
||||
<h6>Founder</h6>
|
||||
</div>
|
||||
<div class="ltn__testimoni-bg-icon">
|
||||
<i class="far fa-comments"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<div class="ltn__testimonial-item ltn__testimonial-item-4">
|
||||
<div class="ltn__testimoni-img">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/testimonial/7.jpg" alt="#" />
|
||||
</div>
|
||||
<div class="ltn__testimoni-info">
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipi sicing elit,
|
||||
sed do eiusmod tempor incididunt ut labore et dolore magna
|
||||
aliqua.
|
||||
</p>
|
||||
<h4>Rosalina D. William</h4>
|
||||
<h6>Founder</h6>
|
||||
</div>
|
||||
<div class="ltn__testimoni-bg-icon">
|
||||
<i class="far fa-comments"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<div class="ltn__testimonial-item ltn__testimonial-item-4">
|
||||
<div class="ltn__testimoni-img">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/testimonial/1.jpg" alt="#" />
|
||||
</div>
|
||||
<div class="ltn__testimoni-info">
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipi sicing elit,
|
||||
sed do eiusmod tempor incididunt ut labore et dolore magna
|
||||
aliqua.
|
||||
</p>
|
||||
<h4>Rosalina D. William</h4>
|
||||
<h6>Founder</h6>
|
||||
</div>
|
||||
<div class="ltn__testimoni-bg-icon">
|
||||
<i class="far fa-comments"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<div class="ltn__testimonial-item ltn__testimonial-item-4">
|
||||
<div class="ltn__testimoni-img">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/testimonial/2.jpg" alt="#" />
|
||||
</div>
|
||||
<div class="ltn__testimoni-info">
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipi sicing elit,
|
||||
sed do eiusmod tempor incididunt ut labore et dolore magna
|
||||
aliqua.
|
||||
</p>
|
||||
<h4>Rosalina D. William</h4>
|
||||
<h6>Founder</h6>
|
||||
</div>
|
||||
<div class="ltn__testimoni-bg-icon">
|
||||
<i class="far fa-comments"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<div class="ltn__testimonial-item ltn__testimonial-item-4">
|
||||
<div class="ltn__testimoni-img">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/testimonial/5.jpg" alt="#" />
|
||||
</div>
|
||||
<div class="ltn__testimoni-info">
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipi sicing elit,
|
||||
sed do eiusmod tempor incididunt ut labore et dolore magna
|
||||
aliqua.
|
||||
</p>
|
||||
<h4>Rosalina D. William</h4>
|
||||
<h6>Founder</h6>
|
||||
<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 -->
|
||||
<!-- TESTIMONIAL AREA END -->
|
||||
|
@ -17,9 +17,9 @@
|
||||
// Check if the ACF repeater field exists
|
||||
if (have_rows('whyus', 54)) :
|
||||
// Counter variable to keep track of the number of fields displayed
|
||||
$counter = 0;
|
||||
$counter = 1;
|
||||
// Loop through the repeater field
|
||||
while (have_rows('whyus', 54) && $counter <= 2 ) : the_row();
|
||||
while (have_rows('whyus', 54) && $counter <= 3 ) : the_row();
|
||||
// Increment the counter
|
||||
$counter++;
|
||||
|
||||
|
Reference in New Issue
Block a user