1 <?php |
|
2 /** |
|
3 * The template for displaying link post formats |
|
4 * |
|
5 * Used for both single and index/archive/search. |
|
6 * |
|
7 * @package WordPress |
|
8 * @subpackage Twenty_Fifteen |
|
9 * @since Twenty Fifteen 1.0 |
|
10 */ |
|
11 ?> |
|
12 |
|
13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|
14 <?php twentyfifteen_post_thumbnail(); ?> |
|
15 |
|
16 <header class="entry-header"> |
|
17 <?php |
|
18 if ( is_single() ) : |
|
19 the_title( sprintf( '<h1 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h1>' ); |
|
20 else : |
|
21 the_title( sprintf( '<h2 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h2>' ); |
|
22 endif; |
|
23 ?> |
|
24 </header> |
|
25 <!-- .entry-header --> |
|
26 |
|
27 <div class="entry-content"> |
|
28 <?php |
|
29 /* translators: %s: Name of current post */ |
|
30 the_content( sprintf( |
|
31 __( 'Continue reading %s', 'twentyfifteen' ), |
|
32 the_title( '<span class="screen-reader-text">', '</span>', false ) |
|
33 ) ); |
|
34 |
|
35 wp_link_pages( array( |
|
36 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', |
|
37 'after' => '</div>', |
|
38 'link_before' => '<span>', |
|
39 'link_after' => '</span>', |
|
40 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', |
|
41 'separator' => '<span class="screen-reader-text">, </span>', |
|
42 ) ); |
|
43 ?> |
|
44 </div> |
|
45 <!-- .entry-content --> |
|
46 |
|
47 <?php |
|
48 // Author bio. |
|
49 if ( is_single() && get_the_author_meta( 'description' ) ) : |
|
50 get_template_part( 'author-bio' ); |
|
51 endif; |
|
52 ?> |
|
53 |
|
54 <footer class="entry-footer"> |
|
55 <?php twentyfifteen_entry_meta(); ?> |
|
56 <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> |
|
57 </footer> |
|
58 <!-- .entry-footer --> |
|
59 |
|
60 </article><!-- #post-## --> |
|