Created
March 17, 2017 10:05
-
-
Save ihorduchenko/04196b09ba27af4cb989b42c2775efa2 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
<div class="tables"> | |
<div class="tables-col ac"> | |
<?php if ( have_posts() ) : query_posts( 'cat=4'); while (have_posts()) : the_post(); ?> | |
<div class="table <?php $tag = get_field('tag'); | |
echo $tag?>"> | |
<div class="swiper-container gallery-top"> | |
<div class="swiper-wrapper"> | |
<?php if (have_rows('imgs')): ?> | |
<?php while (have_rows('imgs')): the_row(); | |
$img = get_sub_field('image'); ?> | |
<div class="swiper-slide"><a href="<?php | |
echo $img['url']; ?>" data-fancybox="<?php $tag = get_field('tag'); | |
echo $tag?>"> | |
<img class="table-img" src="<?php | |
echo $img['url']; ?>" alt="<?php the_title(); ?>" /> | |
</a></div> | |
<?php endwhile; ?> | |
<?php endif; ?> | |
</div> | |
</div> | |
<div class="swiper-container gallery-thumbs"> | |
<div class="swiper-wrapper"> | |
<?php if (have_rows('imgs')): ?> | |
<?php while (have_rows('imgs')): the_row(); | |
$img = get_sub_field('image'); ?> | |
<div class="swiper-slide" style="background-image:url(<?php | |
echo $img['url']; ?>)"></div> | |
<?php endwhile; ?> | |
<?php endif; ?> | |
</div> | |
</div> | |
<div class="table-descr"> | |
<h3><?php the_title(); ?></h3> | |
<p><?php the_content(); ?></p> | |
<a href="<?php echo get_permalink(get_page_by_title('inquiries/contact'))?>">Inquire</a> | |
</div> | |
</div> | |
<?php endwhile; endif; wp_reset_query(); ?> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment