adding repeater

This commit is contained in:
Manish 2024-03-12 15:59:02 +05:45
parent c4d4fe8483
commit f67864277a
31 changed files with 47 additions and 179 deletions

View File

@ -2,25 +2,33 @@
<div class="ltn__about-us-area pt-120 pb-120"> <div class="ltn__about-us-area pt-120 pb-120">
<div class="container"> <div class="container">
<div class="row"> <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="col-lg-6 align-self-center">
<div class="about-us-img-wrap about-img-left"> <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> </div>
<div class="col-lg-6 align-self-center"> <div class="col-lg-6 align-self-center">
<div class="about-us-info-wrap"> <div class="about-us-info-wrap">
<div class="section-title-area ltn__section-title-2"> <div class="section-title-area ltn__section-title-2">
<h6 class="section-subtitle ltn__secondary-color">About Us</h6> <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> </div>
<p>Welcome to ABC Hospitality Business, an esteemed player in the field of uniform craftsmanship. <p><?php the_sub_field('description'); ?></p>
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>
</div> </div>
<a href="about-us.php"> <button class='btn btn-custom-color'>Read More</button></a> <a href="about-us.php"> <button class='btn btn-custom-color'>Read More</button></a>
</div> </div>
<?php
endwhile;
endif;
?>
</div> </div>
</div> </div>
</div> </div>

View File

@ -13,94 +13,23 @@
</div> </div>
</div> </div>
<div class="row ltn__category-slider-active"> <div class="row ltn__category-slider-active">
<div class="col-12"> <?php
<div class="ltn__category-item ltn__category-item-3 text-center"> // Check if the ACF repeater field exists
<div class="ltn__category-item-img"> if( have_rows('clients', 197) ) :
<a href="shop.html"> // Loop through the repeater field
<img src="<?php echo get_template_directory_uri(); ?>/img/brand-logo/1.png" alt="Image"> while( have_rows('clients', 197) ) : the_row(); ?>
</a> <div class="col-12">
</div> <div class="ltn__category-item ltn__category-item-3 text-center">
</div> <div class="ltn__category-item-img">
</div> <a href="shop.html">
<div class="col-12"> <img src="<?php the_sub_field('logo'); ?>" alt="#">
<div class="ltn__category-item ltn__category-item-3 text-center"> </a>
<div class="ltn__category-item-img"> </div>
<a href="shop.html"> </div>
<img src="<?php echo get_template_directory_uri(); ?>/img/brand-logo/2.png" alt="Image"> </div>
</a> <?php endwhile; ?>
</div> <?php endif; ?>
</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>
</div> </div>
</div> </div>
</div> </div>

View File

@ -13,103 +13,34 @@
</div> </div>
</div> </div>
<div class="row ltn__testimonial-slider-3-active slick-arrow-1 slick-arrow-1-inner"> <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="col-lg-12">
<div class="ltn__testimonial-item ltn__testimonial-item-4"> <div class="ltn__testimonial-item ltn__testimonial-item-4">
<div class="ltn__testimoni-img"> <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>
<div class="ltn__testimoni-info"> <div class="ltn__testimoni-info">
<p> <p>
Lorem ipsum dolor sit amet, consectetur adipi sicing elit, <?php the_sub_field('description'); ?>
sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua.
</p> </p>
<h4>Rosalina D. William</h4> <h4><?php the_sub_field('name'); ?></h4>
<h6>Founder</h6> <h6><?php the_sub_field('job_title'); ?></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>
</div> </div>
<div class="ltn__testimoni-bg-icon"> <div class="ltn__testimoni-bg-icon">
<i class="far fa-comments"></i> <i class="far fa-comments"></i>
</div> </div>
</div> </div>
</div> </div>
<?php endwhile; ?>
<?php endif; ?>
<!-- --> <!-- -->
</div> </div>
</div> </div>
</div> </div>
<!-- TESTIMONIAL AREA END --> <!-- TESTIMONIAL AREA END -->

View File

@ -17,9 +17,9 @@
// Check if the ACF repeater field exists // Check if the ACF repeater field exists
if (have_rows('whyus', 54)) : if (have_rows('whyus', 54)) :
// Counter variable to keep track of the number of fields displayed // Counter variable to keep track of the number of fields displayed
$counter = 0; $counter = 1;
// Loop through the repeater field // 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 // Increment the counter
$counter++; $counter++;

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 923 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB