Created
November 27, 2017 08:35
-
-
Save anonymous/b8bead909a9a6e327f4b573b51fe2f2a to your computer and use it in GitHub Desktop.
Multi galerie in page - ACF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="carou"> | |
<?php if( have_rows('galerie_isolation') ): | |
while ( have_rows('galerie_isolation') ) : the_row(); ?> | |
<div class="title_slide"> | |
<h3><?php $titre_galerie = the_sub_field('titre_galerie'); ?></h3> | |
<div class="nav"> | |
<span class="ion-arrow-left-c prev-button"></span> | |
<span class="ion-arrow-right-c next-button"></span> | |
</div> | |
</div> | |
<div class="main-carousel"> | |
<?php $images = get_sub_field('les_images', $post->ID); | |
if( $images ): ?> | |
<?php foreach( $images as $image ): ?> | |
<img class="" src="<?php echo $image['url']; ?>" data-gallery="<?php echo $post->ID ?>" alt="<?php echo $image['alt']; ?>" /> | |
<?php endforeach; ?> | |
<?php endif; ?> | |
</div> | |
<?php endwhile; endif; ?> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment