SHARE
TWEET

Untitled

a guest Jun 20th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="col-xl-12 pt-40">
  2. <div class="main-carousel">
  3.  
  4.     <?php if( have_rows('single_promotion_galerie_repeater') ): ?>
  5.         <?php while ( have_rows('single_promotion_galerie_repeater') ) : the_row(); ?>
  6.  
  7.             <div class="carousel-cell">
  8.                 <!-- Image -->
  9.                 <?php
  10.  
  11.                 $image = get_sub_field('single_promotion_galerie_repeater_img');
  12.  
  13.                 if( !empty($image) ): ?>
  14.  
  15.                     <img src="<?php echo $image['url']; ?>" class="img-fluid" alt="<?php echo $image['alt']; ?>" />
  16.  
  17.                 <?php endif; ?>
  18.                 <!-- Image -->
  19.             </div>
  20.  
  21.         <?php endwhile; ?>
  22.     <?php endif; ?>
  23.  
  24. </div>
  25.      
  26. (function($){
  27. $(document).ready(function(){
  28.     $('.main-carousel').flickity();
  29. });
  30. })(jQuery)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top