-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-npl.php
30 lines (26 loc) · 876 Bytes
/
template-npl.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
<?php // Template Name: NPL ?>
<?php while (have_posts()) : the_post();
$about = get_field('about');
$about = $about[0]; ?>
<?php // About ?>
<?php if (!empty($about)) : ?>
<section id="about" class="about-section block">
<div class="readable">
<h2 class="section-heading"><span>About</span></h2>
<?php if ($about['content']) : ?>
<?php echo $about['content'] ?>
<?php endif ?>
<div class="npl--bird-logo">
<?php svg_sprite('npl') ?>
</div>
</div>
<?php majestic_gallery($about['gallery'], $about['grid_layout'], 'gallery-about'); ?>
</section>
<?php endif ?>
<section id="events" class="events-section block">
<div class="readable">
<h2 class="section-heading"><span>Events</span></h2>
</div>
<ul class="events-list"></ul>
</section>
<?php endwhile; ?>