all changes
This commit is contained in:
@ -26,7 +26,7 @@
|
||||
</div>
|
||||
<div class="product-info">
|
||||
|
||||
<h2 class="product-title"><a href = <?php the_sub_field('title');?>></a>
|
||||
<h2 class="product-title"><?php the_sub_field('title');?>
|
||||
</h2>
|
||||
|
||||
</div>
|
||||
|
@ -1,84 +1,83 @@
|
||||
<!-- FEATURE AREA START ( Feature - 3) -->
|
||||
<div class="ltn__feature-area pt-60 pb-60">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="section-title-area ltn__section-title-2 section-title-style-3 text-center mb-20">
|
||||
|
||||
<div class="section-title-in">
|
||||
|
||||
<h1 class="section-title" style="color:#017BAA">Why Choose Us</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- Left side fields -->
|
||||
<div class="col-lg-4">
|
||||
<div class="row justify-content-center">
|
||||
<?php
|
||||
// Check if the ACF repeater field exists
|
||||
if (have_rows('whyus', 54)) :
|
||||
// Counter variable to keep track of the number of fields displayed
|
||||
$counter = 1;
|
||||
// Loop through the repeater field
|
||||
while (have_rows('whyus', 54) && $counter <= 3 ) : the_row();
|
||||
// Increment the counter
|
||||
$counter++;
|
||||
|
||||
// Display only the first field on the left side
|
||||
while (have_rows('whyus', 54) && $counter <= 3 ) :
|
||||
the_row(); ?>
|
||||
|
||||
?>
|
||||
<div class="ltn__feature-item ltn__feature-item-3 text-right text-end">
|
||||
<div class="ltn__feature-icon">
|
||||
<span><img src="<?php the_sub_field('image'); ?>" alt="#"></span>
|
||||
</div>
|
||||
<div class="ltn__feature-info">
|
||||
<h3><a href="service-details.html"><?php the_sub_field('title'); ?></a></h3>
|
||||
<p><?php the_sub_field('description'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
endwhile;
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-6 col-12">
|
||||
<div class="ltn__feature-item ltn__feature-item-3 text-right text-end">
|
||||
<div class="ltn__feature-icon">
|
||||
|
||||
<!-- Center image -->
|
||||
<span><img src="<?php the_sub_field('image') ?>" alt="#"></span>
|
||||
|
||||
</div>
|
||||
<div class="ltn__feature-info">
|
||||
<h3><a href="<?php the_permalink('');?>">
|
||||
<?php echo get_sub_field('title')?></a></h3>
|
||||
<?php echo get_sub_field('description')?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $counter++;
|
||||
endwhile;
|
||||
endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<div class="feature-banner-img text-center mb-160">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/others/2.png" alt="#">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Right side fields -->
|
||||
<div class="col-lg-4">
|
||||
<div class="row justify-content-center">
|
||||
<?php
|
||||
// Reset the counter
|
||||
$counter = 0;
|
||||
// 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 = 1;
|
||||
// Loop through the repeater field
|
||||
while (have_rows('whyus', 54)) : the_row();
|
||||
while (have_rows('whyus', 54) && $counter <= 3 ) : the_row();
|
||||
// Increment the counter
|
||||
$counter++;
|
||||
|
||||
// Display the next three fields on the right side
|
||||
if ($counter > 1 && $counter <= 4) :
|
||||
?>
|
||||
<div class="ltn__feature-item ltn__feature-item-3 text-left">
|
||||
?>
|
||||
<div class="col-lg-12 col-md-6 col-12">
|
||||
<div class="ltn__feature-item ltn__feature-item-3 text-left text-end">
|
||||
<div class="ltn__feature-icon">
|
||||
<span><img src="<?php the_sub_field('image'); ?>" alt="#"></span>
|
||||
</div>
|
||||
<div class="ltn__feature-info">
|
||||
<h3><a href="service-details.html"><?php the_sub_field('title'); ?></a></h3>
|
||||
<p><?php the_sub_field('description'); ?></p>
|
||||
</div>
|
||||
|
||||
<span><img src="<?php the_sub_field('image') ?>" alt="#"></span>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
<div class="ltn__feature-info">
|
||||
<h3><a href="service-details.html"><?php the_sub_field('title')?></a></h3>
|
||||
<?php the_sub_field('description')?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$counter++;
|
||||
endwhile;
|
||||
endif;
|
||||
?>
|
||||
endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- FEATURE AREA END -->
|
Reference in New Issue
Block a user