first commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<section class="one-col-cta-images wrapper--inner <?php the_sub_field('additional_section_class'); ?> <?php the_sub_field('section_position'); ?>">
|
||||
<div class="wrapper bg-gray">
|
||||
<?php if (get_sub_field('section_heading')) : ?>
|
||||
<h2 class="heading">
|
||||
<?php echo esc_html(get_sub_field('section_heading')); ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (get_sub_field('text')) : ?>
|
||||
<p class="text">
|
||||
<?php echo wp_kses_post(get_sub_field('text')); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (have_rows('cta_repeater')) : ?>
|
||||
<div class="cta">
|
||||
<?php while (have_rows('cta_repeater')) : the_row(); ?>
|
||||
<?php if (get_sub_field('cta') && get_sub_field('cta_text')) : ?>
|
||||
<a href="<?php echo esc_url(get_sub_field('cta')); ?>" class="btn btn-primary" role="button" aria-label="<?php echo esc_html(get_sub_field('cta_text')); ?>">
|
||||
<?php echo esc_html(get_sub_field('cta_text')); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
$images = get_sub_field('gallery');
|
||||
if( $images ): ?>
|
||||
<ul class="gallery">
|
||||
<?php foreach( $images as $image ): ?>
|
||||
<li class="gallery-image">
|
||||
<!-- <a href="<?php echo esc_url($image['url']); ?>"> -->
|
||||
<img src="<?php echo esc_url($image['sizes']['large']); ?>" alt="<?php echo esc_attr($image['alt']); ?>" class="img-auto"/>
|
||||
<!-- </a> -->
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user