-
Notifications
You must be signed in to change notification settings - Fork 6
/
page.php
36 lines (36 loc) · 1.26 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
<?php
/**
* 默认页面模板
*/
get_header();
?>
<section class="container">
<!-- 页面菜单 -->
<?php _module_loader('module_page_menu', false) ?>
<!-- 页面内容 -->
<div class="content-wrapper">
<div class="module content site-style-border-radius">
<?php while (have_posts()) : the_post(); ?>
<header class="page-header">
<h1 class="title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
</header>
<article class="page-content">
<?php the_content(); ?>
</article>
<!-- 分页按钮 -->
<?php wp_link_pages( array( // 无法设置激活的样式
'before' => '<div class="module link-pages-wrapper">',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'next_or_number' => 'number',
'pagelink' => '%',
) );
?>
<?php endwhile; ?>
<!-- 评论模板 -->
<?php comments_template('', true); ?>
</div>
</div>
</section>
<?php get_footer(); ?>