armanty-quests/parts/holiday/adding-service.php
2021-04-09 13:23:20 +05:00

27 lines
908 B
PHP

<div class="container holiday-block adding-service">
<h2><?php the_field('step-head-3', 24)?></h2>
<p><?php the_field('step-descr-3', 24)?></p>
<div class="extras row justify-content-between align-items-start">
<?php
for ($x=0; $x < 8; $x++) {
$item = 'adding_' . ($x + 1);
if( have_rows($item, 24) ):
while( have_rows($item, 24) ): the_row();
$image = get_sub_field('adding_img_' . ($x + 1));
$text = get_sub_field('adding_text_' . ($x + 1));
?>
<div class="col-6 col-sm-3">
<div class="wrapper">
<div class="adding-service__image"><img src="<?php echo esc_url($image)?>" alt="extra"></div>
<span><?php echo $text?></span>
</div>
</div>
<?php endwhile; ?>
<?php endif;
}
?>
</div>
</div>