-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
52 lines (41 loc) · 1.33 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
50
51
52
<?php get_header(); ?>
<main id="content" class="content">
<?php
while ( have_posts() ) :
the_post();
?>
<?php do_action( 'aperitto_before_page_article' ); ?>
<article class="post page" id="pageid-<?php the_ID(); ?>">
<?php do_action( 'aperitto_before_page_title' ); ?>
<h1><?php the_title(); ?></h1>
<?php do_action( 'aperitto_after_page_title' ); ?>
<?php do_action( 'aperitto_before_page_content_box' ); ?>
<div class="entry-box clearfix">
<?php do_action( 'aperitto_before_page_content' ); ?>
<?php the_content(); ?>
<?php do_action( 'aperitto_after_page_content' ); ?>
</div>
<?php do_action( 'aperitto_after_page_content_box' ); ?>
<?php
wp_link_pages(
array(
'before' => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'aperitto' ) . '">',
'after' => '</nav>',
/* translators: %: Page number. */
'pagelink' => esc_html__( 'Page %', 'aperitto' ),
)
);
?>
</article>
<?php do_action( 'aperitto_after_page_article' ); ?>
<?php
if ( comments_open() || get_comments_number() ) {
do_action( 'aperitto_before_page_comments_area' );
comments_template();
do_action( 'aperitto_after_page_comments_area' );
}
endwhile;
?>
</main> <!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>