-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.php
More file actions
68 lines (59 loc) · 1.68 KB
/
page.php
File metadata and controls
68 lines (59 loc) · 1.68 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
60
61
62
63
64
65
66
67
68
<?php
/**
* Static page template.
*
* @package MinimalCode
*/
get_header();
?>
<div class="single wrap">
<aside class="post-meta-rail">
<a class="post-back" href="<?php echo esc_url( home_url( '/' ) ); ?>">← back to log</a>
<?php if ( have_posts() ) : ?>
<?php
rewind_posts();
the_post();
?>
<div class="row"><span class="k">type</span><span class="v">page</span></div>
<div class="row"><span class="k">slug</span><span class="v"><?php echo esc_html( $post->post_name ); ?></span></div>
<div class="row"><span class="k">updated</span><span class="v"><?php echo esc_html( strtoupper( get_the_modified_date( 'M d' ) ) ); ?></span></div>
<?php rewind_posts(); ?>
<?php endif; ?>
</aside>
<?php
while ( have_posts() ) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'page-article' ); ?>>
<div class="post-kicker">
<span class="tag hot-tag"><?php esc_html_e( 'page', 'minimalcode' ); ?></span>
</div>
<h1 class="post-headline serif"><?php the_title(); ?></h1>
<?php if ( has_post_thumbnail() ) : ?>
<figure class="entry-featured-image">
<?php the_post_thumbnail( 'large' ); ?>
</figure>
<?php endif; ?>
<div class="post-body entry-content">
<?php
the_content();
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'minimalcode' ),
'after' => '</div>',
)
);
?>
</div>
<?php if ( comments_open() || get_comments_number() ) : ?>
<?php comments_template(); ?>
<?php endif; ?>
</article>
<?php endwhile; ?>
<aside class="toc-rail">
<div class="h">Contents</div>
<ol id="toc-list"></ol>
</aside>
</div>
<?php
get_footer();