Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-xl-12 pt-40">
- <div class="main-carousel">
- <?php if( have_rows('single_promotion_galerie_repeater') ): ?>
- <?php while ( have_rows('single_promotion_galerie_repeater') ) : the_row(); ?>
- <div class="carousel-cell">
- <!-- Image -->
- <?php
- $image = get_sub_field('single_promotion_galerie_repeater_img');
- if( !empty($image) ): ?>
- <img src="<?php echo $image['url']; ?>" class="img-fluid" alt="<?php echo $image['alt']; ?>" />
- <?php endif; ?>
- <!-- Image -->
- </div>
- <?php endwhile; ?>
- <?php endif; ?>
- </div>
- (function($){
- $(document).ready(function(){
- $('.main-carousel').flickity();
- });
- })(jQuery)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement