-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathpage.php
49 lines (30 loc) · 1.25 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
<?php get_header(); ?>
<?php if( get_post_format() ){ ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php }else{ ?>
<section class="container">
<div class="content-wrap">
<div class="content">
<?php while (have_posts()) : the_post(); ?>
<?php _the_ads('ad_page_header', 'page-header') ?>
<article class="article-content">
<header class="article-header">
<h1 class="article-title"><?php the_title(); ?></h1>
<div class="article-meta">
<span class="item item-1"><?php echo get_the_date().' '.get_the_time(); ?></span>
<span class="item item-5"><?php edit_post_link('[编辑]'); ?></span>
</div>
</header>
<?php the_content(); ?>
<?php get_template_part( 'module/content', 'module-share' ); ?>
</article>
<?php wp_link_pages('link_before=<span>&link_after=</span>&before=<div class="article-paging">&after=</div>&next_or_number=number'); ?>
<?php endwhile; ?>
<?php _the_ads('ad_page_footer', 'page-footer') ?>
<?php comments_template('', true); ?>
</div>
</div>
<?php get_sidebar(); ?>
</section>
<?php } ?>
<?php get_footer(); ?>