-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathcontent-page.php
36 lines (30 loc) · 1.13 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
<?php
/**
* The template used for displaying page content in page.php
*
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<div class="page-links">', 'after' => '</div>', 'next_or_number' => 'number')); ?>
</div><!-- .entry-content -->
<div class="clear"></div>
<?php
//文章结尾插入指定内容
if ( ox_get_option( 'article_info_foot' ) ) {
echo '<div class="article_info_foot">'.ox_get_option( 'article_info_foot' ).'</div>';
}
?>
<div class="clear"></div>
<footer class="entry-meta-single">
<?php if (function_exists('the_views')) : ?>
<span class="views">
<?php the_views($display = true, $prefix = '浏览: ', $postfix = '', $always = false); ?>
</span>
<?php endif; ?>
</footer><!-- .entry-meta -->
</article><!-- #post -->