-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-about.php
46 lines (30 loc) · 909 Bytes
/
template-about.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
<?php /* Template name: About */ get_header(); ?>
<?php
// define page banner variables
$banner_image = get_field('banner_image');
$banner_text = get_field('banner_text');
$banner_cta_link = get_field('banner_cta_link');
$banner_cta_text = get_field('banner_cta_text'); ?>
<?php include( locate_template('components/banner.php') ); ?>
<main role="main">
<!-- section -->
<section>
<h1><?php the_title(); ?></h1>
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<!-- article -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_content(); ?>
</article>
<!-- /article -->
<?php endwhile; ?>
<?php else: ?>
<!-- article -->
<article>
<h2><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h2>
</article>
<!-- /article -->
<?php endif; ?>
</section>
<!-- /section -->
</main>
<?php get_footer(); ?>