Created
March 17, 2017 10:02
-
-
Save ihorduchenko/7683d59fbea7df2633a4688fb706435f to your computer and use it in GitHub Desktop.
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('slider') ): ?> | |
<?php while( have_rows('slider') ): the_row(); | |
// vars | |
$image = get_sub_field('image'); | |
$heading = get_sub_field('heading'); | |
$disclaimer = get_sub_field('title'); | |
?> | |
<div class="slider-bg" | |
style="background: url( <?php echo $image['url'] ?>); -webkit-background-size: cover; background-size: cover;"> | |
<div class="dark-mask flex-cntr"><h2 class="animated slideInUp"><?php echo $heading?></h2> | |
<div class="disclaimer animated slideInUp"><?php echo $disclaimer?></div> | |
</div> | |
</div> | |
<?php endwhile; ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment