-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
executable file
·32 lines (31 loc) · 1 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
<?php
global $post,$admin_options;
if($post->ID == $admin_options['page_for_tougao'] && $admin_options['mode'] >= 2) {
include("page-tougao.php");
exit;
}
elseif($post->ID == $admin_options['page_for_usercenter'] && $admin_options['mode'] >= 2) {
include("page-usercenter.php");
exit;
}
get_header(); ?>
<div id="main">
<div id="content">
<div class="place"><?php the_place('首页'); ?> <?php edit_post_link('<span class="icon edit"></span>编辑'); ?></div>
<article role="article" id="post-<?php the_ID(); ?>">
<div id="article" <?php post_class('post'); ?>>
<?php the_post(); ?>
<h1 class="article-title post-title"><?php the_title(); ?></h1>
<div class="article-content">
<?php the_content(); ?>
</div>
<div class="clear"></div>
<div id="comments"><?php comments_template('',true); ?></div>
</div>
</article>
</div>
<aside role="sidebar">
<?php get_sidebar(); ?>
</aside>
</div>
<?php get_footer(); ?>