Created
February 23, 2017 14:02
-
-
Save anonymous/11bbffb588baa4acc55392ff50592993 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="row"> | |
<center> | |
<div class="selectors" style="float:none;"> | |
<?php if( have_rows('section') ): ?> | |
<?php while( have_rows('section') ): the_row(); | |
// vars | |
$title = get_sub_field('title'); | |
$anchor = str_replace(' ', '', $title); | |
$content = get_sub_field('content'); | |
?> | |
<a class="tab" href="#<?php echo $anchor; ?>"><?php echo $title; ?></a> | |
<?php endwhile; endif; ?> | |
</div> | |
</center> | |
<div class="panel"> | |
<?php if( have_rows('section') ): ?> | |
<?php while( have_rows('section') ): the_row(); | |
$title = get_sub_field('title'); | |
$anchor = str_replace(' ', '', $title); | |
$content = get_sub_field('content'); | |
$icon = get_sub_field('icon'); | |
$attachment_id = get_sub_field('image'); | |
$image = wp_get_attachment_image ($attachment_id, $size); | |
?> | |
<section id="<?php echo $anchor; ?>" class="tab-content"> | |
<div class="row"> | |
<div class="col-sm-21"> | |
<h1><?php echo $title; ?></h1> | |
</div> | |
<div class="col-sm-3"> | |
<img class="icon" src="<?php echo $icon; ?>"> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-sm-24" style="margin-bottom:10px;"> | |
<?php echo $image; ?> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-sm-16 col-sm-push-4"> | |
<?php echo $content; ?> | |
</div> | |
</div> | |
</section> | |
<?php endwhile; endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment