bib_wp/abchospitalitynepal.com/wp-content/themes/abchospitality/bib-parts/remember-us.php
2024-03-12 11:17:45 +05:45

153 lines
6.4 KiB
PHP

<!-- PRODUCT TAB AREA START (product-item-3) -->
<div class="ltn__product-tab-area ltn__product-gutter pt-60 pb--90">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-12">
<div class="section-title-area ltn__section-title-2 section-title-style-3 text-center">
<div class="section-title-in">
<h1 class="section-title" style="color:#017BAA">Remember Us For</h1>
</div>
</div>
</div>
<div class="ltn__tab-menu ltn__tab-menu-2 ltn__tab-menu-top-right-- text-uppercase text-center">
<div class="nav">
<a class="active show" data-bs-toggle="tab" href="#liton_tab_3_1">Hospitality Kits</a>
<a data-bs-toggle="tab" href="#liton_tab_3_2" class="">Amenities</a>
<a data-bs-toggle="tab" href="#liton_tab_3_3" class="">Consumables</a>
</div>
</div>
<div class="tab-content">
<div class="tab-pane fade active show" id="liton_tab_3_1">
<div class="ltn__product-tab-content-inner">
<div class="row ltn__tab-product-slider-one-active slick-arrow-1">
<!-- ltn__product-item -->
<?php
// Reset the counter
$counter = 0;
// Check if the ACF repeater field exists
if (have_rows('remember_us', 175)) :
// Loop through the repeater field
while (have_rows('remember_us', 175)) : the_row();
// Increment the counter
$counter++;
// Display the next three fields on the right side
if ($counter >= 1 && $counter <= 4) :
?>
<div class="col-lg-12">
<div class="ltn__product-item ltn__product-item-3 text-center">
<div class="product-img">
<img src="<?php the_sub_field('image'); ?>" alt="#">
</div>
<div class="product-info">
<h2 class="product-title"><?php the_sub_field('title');?>
</h2>
</div>
</div>
</div>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
<!-- ltn__product-item -->
</div>
<!-- -->
</div>
</div>
<div class="tab-pane fade" id="liton_tab_3_2">
<div class="ltn__product-tab-content-inner">
<div class="row ltn__tab-product-slider-one-active slick-arrow-1">
<!-- ltn__product-item -->
<?php
// Reset the counter
$counter = 0;
// Check if the ACF repeater field exists
if (have_rows('remember_us', 175)) :
// Loop through the repeater field
while (have_rows('remember_us', 175)) : the_row();
// Increment the counter
$counter++;
// Display the 5th to 8th fields
if ($counter >= 5 && $counter <= 8) :
?>
<div class="col-lg-12">
<div class="ltn__product-item ltn__product-item-3 text-center">
<div class="product-img">
<img src="<?php the_sub_field('image'); ?>" alt="#">
</div>
<div class="product-info">
<h2 class="product-title"><?php the_sub_field('title');?></h2>
</div>
</div>
</div>
<?php
endif;
endwhile;
endif;
?>
<!-- ltn__product-item -->
</div>
<!-- -->
</div>
</div>
<div class="tab-pane fade" id="liton_tab_3_3">
<div class="ltn__product-tab-content-inner">
<div class="row ltn__tab-product-slider-one-active slick-arrow-1">
<!-- ltn__product-item -->
<?php
// Reset the counter
$counter = 0;
// Check if the ACF repeater field exists
if (have_rows('remember_us', 175)) :
// Loop through the repeater field
while (have_rows('remember_us', 175)) : the_row();
// Increment the counter
$counter++;
// Display the 5th to 8th fields
if ($counter >= 9 && $counter <= 12) :
?>
<div class="col-lg-12">
<div class="ltn__product-item ltn__product-item-3 text-center">
<div class="product-img">
<img src="<?php the_sub_field('image'); ?>" alt="#">
</div>
<div class="product-info">
<h2 class="product-title"><?php the_sub_field('title');?></h2>
</div>
</div>
</div>
<?php
endif;
endwhile;
endif;
?>
</div>
<!-- -->
</div>
</div>
<!-- -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- PRODUCT TAB AREA END -->