Created
May 2, 2018 16:11
-
-
Save babelpuntocl/dfc88dfbdd5ee48c2b8878718f637108 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<figure class="small-12 medium-6 cell"> | |
<?php if( get_field('galeria') ): ?> | |
<?php $images = get_field('galeria'); if( $images ): ?> | |
<div class="owl-carousel owl-theme"> | |
<?php foreach( $images as $image ): ?> | |
<div class="item"> | |
<img src="<?php echo $image['sizes']['medium_thumb']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
</div> | |
<?php endforeach; ?> | |
</div> | |
<?php endif; ?> | |
<?php else : ?> | |
<?php if ( has_post_thumbnail() ) { the_post_thumbnail('medium_thumb'); } ?> | |
<?php endif; ?> | |
</figure> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment