-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
49 lines (43 loc) · 1.45 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
<?php get_header(); ?>
<div id="content" class="section site-content match-height ">
<div class="container">
<div class="row">
<div class="col-sm-12">
<main id="primary" class="site-main">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<div id="page-<?php the_ID(); ?>" <?php post_class( array( 'clearfix', 'page-entry-content' ) ); ?>>
<?php
the_content();
$args = array(
'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'codexin' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'codexin' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
);
wp_link_pages( $args );
?>
</div><!-- #page-## -->
<?php
endwhile;
else :
// No posts to display
endif;
?>
</main> <!-- end of #primary -->
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
</div><?php // .col-sm-9 ?>
</div><?php // #content .container .row ?>
</div><?php // #content .container ?>
</div><?php // #content ?>
<?php get_footer(); ?>