-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.php
More file actions
37 lines (32 loc) · 1.01 KB
/
page.php
File metadata and controls
37 lines (32 loc) · 1.01 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
<?php
get_header();
?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<!-- ========== PAGE HEADER ========== -->
<section class="section bg-mint-green">
<div class="container mx-auto">
<?php
$page_eyebrow = get_field( 'page_eyebrow' );
$page_description = get_field( 'page_description' );
?>
<?php if ( ! empty( $page_eyebrow ) ) : ?>
<p class="eyebrow"><?php echo esc_html( (string) $page_eyebrow ); ?></p>
<?php endif; ?>
<h1><?php the_title(); ?></h1>
<?php if ( ! empty( $page_description ) ) : ?>
<div class="page-description"><?php echo wp_kses_post( (string) $page_description ); ?></div>
<?php endif; ?>
</div>
</section>
<section class="section">
<div class="container mx-auto px-4 md:px-6 lg:px-8">
<?php the_content(); ?>
</div>
</section>
<?php endwhile; ?>
<?php else : ?>
<p>No content found.</p>
<?php endif; ?>
<?php
get_footer();