may88seiji
3/15/2017 - 7:45 AM

flag

flag

<!--slide-->
<div id="slide">
    <ul>
        <?php if(have_rows('mv_slide_repeat')): ?>
        <?php $is_first = true;?>
        <?php while(have_rows('mv_slide_repeat')): the_row(); ?>
            <li>
                <div class="hidden-xs slide_img<?php if($is_first) echo " active"; ?>" style="background-image: url(<?php the_sub_field('img_mv_pc'); ?>);background-size: cover;"></div>
                <div class="visible-xs slide_img<?php if($is_first) echo " active"; ?>" style="background-image: url(<?php the_sub_field('img_mv_sp'); ?>);background-size: cover;"></div>
            </li>
        <?php $is_first = false ;?>
        <?php endwhile; ?>
        <?php endif; ?>
    </ul>
</div>
<!--slide-->