author | ymh <ymh.work@gmail.com> |
Wed, 16 Oct 2019 11:23:38 +0200 | |
changeset 14 | 00ac8f60d73f |
parent 7 | cf61fcea0001 |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* The default template for displaying content |
|
4 |
* |
|
5 |
* Used for both single and index/archive/search. |
|
6 |
* |
|
7 |
* @package WordPress |
|
8 |
* @subpackage Twenty_Thirteen |
|
9 |
* @since Twenty Thirteen 1.0 |
|
10 |
*/ |
|
11 |
?> |
|
12 |
||
13 |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|
14 |
<header class="entry-header"> |
|
5 | 15 |
<?php if ( has_post_thumbnail() && ! post_password_required() && ! is_attachment() ) : ?> |
0 | 16 |
<div class="entry-thumbnail"> |
17 |
<?php the_post_thumbnail(); ?> |
|
18 |
</div> |
|
19 |
<?php endif; ?> |
|
20 |
||
21 |
<?php if ( is_single() ) : ?> |
|
22 |
<h1 class="entry-title"><?php the_title(); ?></h1> |
|
23 |
<?php else : ?> |
|
24 |
<h1 class="entry-title"> |
|
25 |
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
|
26 |
</h1> |
|
27 |
<?php endif; // is_single() ?> |
|
28 |
||
29 |
<div class="entry-meta"> |
|
30 |
<?php twentythirteen_entry_meta(); ?> |
|
31 |
<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> |
|
32 |
</div><!-- .entry-meta --> |
|
33 |
</header><!-- .entry-header --> |
|
34 |
||
35 |
<?php if ( is_search() ) : // Only display Excerpts for Search ?> |
|
36 |
<div class="entry-summary"> |
|
37 |
<?php the_excerpt(); ?> |
|
38 |
</div><!-- .entry-summary --> |
|
39 |
<?php else : ?> |
|
40 |
<div class="entry-content"> |
|
5 | 41 |
<?php |
42 |
/* translators: %s: Name of current post */ |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
43 |
the_content( |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
44 |
sprintf( |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
45 |
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
46 |
the_title( '<span class="screen-reader-text">', '</span>', false ) |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
47 |
) |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
48 |
); |
5 | 49 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
50 |
wp_link_pages( |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
51 |
array( |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
52 |
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
53 |
'after' => '</div>', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
54 |
'link_before' => '<span>', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
55 |
'link_after' => '</span>', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
56 |
) |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
57 |
); |
5 | 58 |
?> |
0 | 59 |
</div><!-- .entry-content --> |
60 |
<?php endif; ?> |
|
61 |
||
62 |
<footer class="entry-meta"> |
|
63 |
<?php if ( comments_open() && ! is_single() ) : ?> |
|
64 |
<div class="comments-link"> |
|
65 |
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> |
|
66 |
</div><!-- .comments-link --> |
|
67 |
<?php endif; // comments_open() ?> |
|
68 |
||
69 |
<?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?> |
|
70 |
<?php get_template_part( 'author-bio' ); ?> |
|
71 |
<?php endif; ?> |
|
72 |
</footer><!-- .entry-meta --> |
|
73 |
</article><!-- #post --> |