-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.php
More file actions
65 lines (48 loc) · 2.23 KB
/
page.php
File metadata and controls
65 lines (48 loc) · 2.23 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* General page template
*/
get_header();
$map_features = get_field( 'map_features' ); ?>
<div class="site-content">
<?php while ( have_posts() ) : the_post(); ?>
<article <?php post_class('wrap'); ?>>
<section class="section">
<div class="u-container">
<div class="flex has-sidebar">
<?php get_template_part( 'partials/menu-ui' ); ?>
<div class="sidebar-masthead section__sidebar flex__item">
<?php get_template_part( 'partials/masthead' ); ?>
</div>
<div class="section__content flex__item">
<div class="page-header">
<div class="page-title">
<h1 class="h2 u-mt-pull"><?php the_title(); ?></h1>
<?php get_template_part( 'partials/section-anchors' ); ?>
</div>
</div>
<?php if ( has_post_thumbnail() ) : ?>
<div class="page-image u-mt-3">
<?php the_post_thumbnail('large'); ?>
</div>
<?php endif; ?>
<div class="page-content u-mt-6 u-width-8-10">
<?php the_content(); ?>
</div>
</div>
</div>
</div>
</section>
<?php if ( $map_features ) : ?>
<section class="section">
<div id="page-map"></div>
<script type="text/javascript" id="map-geojson">
<?php echo $map_features; ?>
</script>
</section>
<?php endif; ?>
<?php get_template_part( 'partials/sections' ); ?>
</article>
<?php endwhile; ?>
</div>
<?php get_footer(); ?>