-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontent.php
54 lines (47 loc) · 1.51 KB
/
content.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
50
51
52
53
54
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php if ( has_post_thumbnail() ) : ?>
<div class="entry-eyecatch">
<?php the_post_thumbnail( 'full' ); ?>
</div>
<?php endif; ?>
<div class="l-container">
<?php
the_title( '<h1 class="entry-title">', '</h1>' );
?>
<?php if ( is_single() ) : ?>
<div class="entry-meta clearfix">
<time class="entry-date"><?php the_modified_date( 'Y/m/d' ); ?></time>
<p class="entry-category">
<i class="fa fa-folder-o" aria-label="category"></i><?php the_category( ', ' ); ?>
</p>
<?php if ( has_tag() ) : ?>
<p class="entry-tag">
<i class="fa fa-tags" aria-label="tag"></i><?php the_tags( '' ); ?>
</p>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</header>
<div class="l-container">
<section class="entry-content">
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title screen-reader-text">' . esc_html__( 'Pages:', 'for-the-future' ) . '</span>',
'after' => '</div>',
'link_before' => '<span class="page-numbers">',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'for-the-future' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
?>
</section>
<?php
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
</div>
</article>