7185b7c0 by Jeff Balicki

testimonials_items

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent c13446e1
......@@ -40,24 +40,18 @@ $carousel_style = get_field('carousel_style');
<?php if( have_rows('testimonials_items') ): ?>
<div class="testimonials-carousel carousel-items <?php echo $size; ?>"><div class='swiper-wrapper'>
<?php while( the_repeater_field('testimonials_items') ):
?>
<div class="swiper-slide">
<div id="<?php echo esc_attr($id); ?>" class=" testimonials">
<?php $image = get_sub_field('image'); ?>
<div class="row">
<div class="col-lg-4 col-md-1 testimonial-image" style=background-image:url(<?php echo $image['url'];?>); >
</div>
<div class="col-lg-8 col-md-1">
<div class="testimonial-text"><p><?php the_sub_field('text'); ?></p></div></div>
</div>
</div>
<?php while( the_repeater_field('testimonials_items') ): ?>
<div class="swiper-slide">
<div class=" testimonials">
<?php $image = get_sub_field('image'); ?>
<div class="row">
<div class="col-lg-4 col-md-1 testimonial-image" style=background-image:url(<?php echo $image['url'];?>); ></div>
<div class="col-lg-8 col-md-1">
<div class="testimonial-text"><?php the_sub_field('text'); ?></div>
</div>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="swiper-pagination"></div>
......