-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-contact.php
More file actions
executable file
·39 lines (37 loc) · 1.25 KB
/
page-contact.php
File metadata and controls
executable file
·39 lines (37 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/*
Template Name: Contact page
*/
get_header(); ?>
<?php if(get_field('two_column_image')): ?>
<section class="section two-column thick contact">
<div class="container">
<?php while(has_sub_field('two_column_image')): ?>
<div class="row flex">
<?php $image = get_sub_field('image'); ?>
<div data-aos="fade-right" class="lazy-parent image-group">
<div
class="background-image lazy-child"
style="background-image: url(<?php echo $image['sizes']['blur']; ?>)"
data-bg-src="<?php echo $image['sizes']['large']; ?>">
</div>
</div>
<div data-aos="fade-left" class="content">
<h2><?php the_sub_field('title'); ?></h2>
<?php the_sub_field('content'); ?>
<?php if (get_field('email', 'options')): ?>
<p><strong><a href="mailto:<?= get_field('email', 'options'); ?>"><?= get_field('email', 'options'); ?></a></strong></p>
<?php endif; ?>
<?php SocialLinks::render(); ?>
<?php
$form_object = get_sub_field('form');
gravity_form_enqueue_scripts($form_object['id'], true);
gravity_form($form_object['id'], false, false, false, '', true, 11);
?>
</div>
</div>
<?php endwhile; ?>
</div>
</section>
<?php endif; ?>
<?php get_footer(); ?>