forked from raamdev/independent-publisher
/
content-page.php
executable file
·51 lines (45 loc) · 1.54 KB
/
content-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
<?php
/**
* The template used for displaying page content in page.php
*
* @package Independent Publisher
* @since Independent Publisher 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages(
array(
'before' => '<div class="page-links-next-prev">',
'after' => '</div>',
'nextpagelink' => '<button class="next-page-nav">' . __( 'Next page →', 'independent-publisher' ) . '</button>',
'previouspagelink' => '<button class="previous-page-nav">' . __( '← Previous page', 'independent-publisher' ) . '</button>',
'next_or_number' => 'next'
)
); ?>
<?php wp_link_pages(
array(
'before' => '<div class="page-links">' . __( 'Pages:', 'independent-publisher' ),
'after' => '</div>'
)
); ?>
</div>
<!-- .entry-content -->
<footer class="entry-meta">
<?php do_action( 'independent_publisher_entry_meta_top' ); ?>
<?php if ( comments_open() && ! independent_publisher_hide_comments() ) : ?>
<div id="share-comment-button">
<button>
<i class="share-comment-icon"></i><?php echo independent_publisher_comments_call_to_action_text() ?>
</button>
</div>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'independent-publisher' ), '<span class="edit-link">', '</span>' ); ?>
</footer>
<!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->