Repository navigation
Expand file tree
/
Copy pathpage.php
More file actions
59 lines (51 loc) · 1.56 KB
/
Copy pathpage.php
File metadata and controls
59 lines (51 loc) · 1.56 KB
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
52
53
54
55
56
57
58
59
<?php
/**
* 静态页面 — 单栏正文
*
* 页面没有分类/标签/上下篇,也不挂载以文章为中心的侧边栏,
* 因此走单栏窄容器,与文章页正文列同宽。
*
* @package Yuki
*/
get_header();
?>
<main class="yuki-narrow">
<?php
while ( have_posts() ) :
the_post();
?>
<article <?php post_class(); ?>>
<div class="yuki-filebar" aria-hidden="true">
<span><?php esc_html_e( 'DOCUMENT', 'yuki' ); ?> / P<?php echo esc_html( sprintf( '%04d', get_the_ID() ) ); ?></span>
<span><?php esc_html_e( 'SECTOR / STATIC RECORD', 'yuki' ); ?></span>
<span><?php echo esc_html( get_the_date( 'Y.m.d' ) ); ?></span>
</div>
<header class="yuki-article-header">
<h1><?php the_title(); ?></h1>
<?php if ( has_excerpt() ) : ?>
<p><?php echo esc_html( get_the_excerpt() ); ?></p>
<?php endif; ?>
</header>
<?php if ( has_post_thumbnail() ) : ?>
<figure class="yuki-article-featured yuki-soft-frame">
<?php the_post_thumbnail( 'large' ); ?>
<figcaption class="yuki-frame-label">
<span><?php esc_html_e( 'EVIDENCE', 'yuki' ); ?></span>
<span><?php esc_html_e( 'PLATE 01', 'yuki' ); ?></span>
</figcaption>
</figure>
<?php endif; ?>
<div class="yuki-prose">
<?php the_content(); ?>
<?php
// 静态页面的正文同样可以用分页标记切开,同一处缺陷在这儿也一样存在。
// 理由与取舍见 single.php 那一处。
wp_link_pages();
?>
</div>
<?php comments_template(); ?>
</article>
<?php endwhile; ?>
</main>
<?php
get_footer();