-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathpage.php
More file actions
executable file
·36 lines (29 loc) · 848 Bytes
/
page.php
File metadata and controls
executable file
·36 lines (29 loc) · 848 Bytes
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
<?php get_header(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<main id="content" class="clearfix" role="main">
<header>
<h1><?php the_title(); ?></h1>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
<?php
wp_link_pages( array(
'before' => '<div>' . __('Pages →', 'wpflex'),
'after' => '</div>'
));
?>
<?php get_template_part( 'inc/edit-post-link' ); ?>
</main>
<?php endwhile; ?>
<?php
// If comments are open or has at least one comment.
if ( comments_open() || '0' != get_comments_number() ) :
comments_template();
endif;
?>
<?php else : ?>
<p><?php _e( 'sorry, this page does not exist', 'wpflex' ); ?></p>
<?php endif; ?>
<?php get_template_part( 'inc/widget-sidebar' ); ?>
<?php get_footer(); ?>