Last active
March 1, 2019 20:01
-
-
Save DustinWStout/0a8819031b92fd02d4ab578ee80d061f to your computer and use it in GitHub Desktop.
Display Flexbox Image Group
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
<?php if( have_rows('the_images') ): ?> | |
<div class="container"> | |
<div class="row-1"> | |
<div class="squares row-item"> | |
<div class="square"> | |
<?php | |
$image = get_field('square_text'); | |
if( !empty($image) ): ?> | |
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
<?php endif; ?> | |
</div> | |
<div class="square"> | |
<?php | |
$image = get_field('square_blank'); | |
if( !empty($image) ): ?> | |
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
<?php endif; ?> | |
</div> | |
</div> | |
<div class="tall row-item"> | |
<?php | |
$image = get_field('tall_text'); | |
if( !empty($image) ): ?> | |
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
<?php endif; ?> | |
</div> | |
<div class="tall row-item"> | |
<?php | |
$image = get_field('tall_blank'); | |
if( !empty($image) ): ?> | |
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
<?php endif; ?> | |
</div> | |
</div> | |
<div class="row-2"> | |
<div class="wide row-item"> | |
<?php | |
$image = get_field('wide_text'); | |
if( !empty($image) ): ?> | |
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
<?php endif; ?> | |
</div> | |
<div class="wide row-item"> | |
<?php | |
$image = get_field('wide_blank'); | |
if( !empty($image) ): ?> | |
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
<?php endif; ?> | |
</div> | |
</div> | |
</div> | |
<?php endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment