/
404.php
executable file
·56 lines (55 loc) · 1.81 KB
/
404.php
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* The template for displaying 404 pages (not found).
* @package understrap
*/
get_header(); ?>
<div class="wrapper" id="back-page-wrapper">
<div class="backpage-banner pattern-overlay"></div>
<div class="container introduction-wrapper">
<div class="row">
<div class="col-md-10 offset-md-1 introduction">
<h1 class="tk"><?php the_field('404_title', 'option') ?></h1>
<?php if(get_field('404_introduction', 'option')): ?>
<div class="intro-copy">
<p><?php the_field('404_introduction', 'option') ?></p>
</div>
<?php endif; ?>
</div>
</div>
</div>
<div class="container">
<?php if(get_field('404_body_content', 'option')): ?>
<div class="row">
<div class="col-md-8 offset-md-2">
<p><?php the_field('404_body_content', 'option'); ?></p>
</div>
</div>
<?php endif; ?>
<?php if(get_field('show_search_field', 'option')): ?>
<div class="row">
<div class="col-md-8 offset-md-2">
<?php get_search_form(); ?>
</div>
</div>
<?php endif; ?>
</div>
<?php if(get_field('404_cta', 'option')): ?>
<?php
$cta = get_field('404_cta', 'option');
?>
<div class="bg-light-green bp-cta-wrapper">
<div class="container">
<div class="row">
<div class="col-md-12 lbl-wrapper">
<h3><?php echo $cta[0]['cta_heading']; ?></h2>
</div>
<div class="col-md-12 btn-wrapper">
<a class="btn tk" href="<?php echo $cta[0]['cta_link_destination']; ?>"><?php echo $cta[0]['cta_label']; ?> »</a>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
<?php get_footer(); ?>