5
|
1 |
<?php |
|
2 |
/** |
|
3 |
* The template for displaying posts in the Link post format |
|
4 |
* |
|
5 |
* @package WordPress |
|
6 |
* @subpackage Twenty_Fourteen |
|
7 |
* @since Twenty Fourteen 1.0 |
|
8 |
*/ |
|
9 |
?> |
|
10 |
|
|
11 |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|
12 |
<?php twentyfourteen_post_thumbnail(); ?> |
|
13 |
|
|
14 |
<header class="entry-header"> |
|
15 |
<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> |
|
16 |
<div class="entry-meta"> |
|
17 |
<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> |
|
18 |
</div><!-- .entry-meta --> |
|
19 |
<?php |
|
20 |
endif; |
|
21 |
|
|
22 |
if ( is_single() ) : |
|
23 |
the_title( '<h1 class="entry-title">', '</h1>' ); |
|
24 |
else : |
|
25 |
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
|
26 |
endif; |
|
27 |
?> |
|
28 |
|
|
29 |
<div class="entry-meta"> |
|
30 |
<span class="post-format"> |
|
31 |
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'link' ) ); ?>"><?php echo get_post_format_string( 'link' ); ?></a> |
|
32 |
</span> |
|
33 |
|
|
34 |
<?php twentyfourteen_posted_on(); ?> |
|
35 |
|
|
36 |
<?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> |
|
37 |
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> |
|
38 |
<?php endif; ?> |
|
39 |
|
|
40 |
<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> |
|
41 |
</div><!-- .entry-meta --> |
|
42 |
</header><!-- .entry-header --> |
|
43 |
|
|
44 |
<div class="entry-content"> |
|
45 |
<?php |
|
46 |
/* translators: %s: Name of current post */ |
|
47 |
the_content( sprintf( |
|
48 |
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), |
|
49 |
the_title( '<span class="screen-reader-text">', '</span>', false ) |
|
50 |
) ); |
|
51 |
|
|
52 |
wp_link_pages( array( |
|
53 |
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', |
|
54 |
'after' => '</div>', |
|
55 |
'link_before' => '<span>', |
|
56 |
'link_after' => '</span>', |
|
57 |
) ); |
|
58 |
?> |
|
59 |
</div><!-- .entry-content --> |
|
60 |
|
|
61 |
<?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> |
|
62 |
</article><!-- #post-## --> |