forked from generaxion/axio-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
37 lines (25 loc) · 780 Bytes
/
page.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
<?php
/**
* Default template for pages.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package axio
*/
get_header(); ?>
<div id="primary" class="primary primary--page">
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('entry entry--page'); ?>>
<?php if (!has_block('acf/hero') && !strstr(get_the_content(), '<h1 ')) : ?>
<div class="heading heading--page">
<h1 class="heading__title"><?php the_title(); ?></h1>
</div>
<?php endif; ?>
<div class="entry__content blocks">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; ?>
</div><!-- #primary -->
<?php
get_footer();