WordPress 4.4
[autoinstalls/wordpress.git] / wp-content / themes / twentysixteen / template-parts / content.php
1 <?php
2 /**
3  * The template part for displaying content
4  *
5  * @package WordPress
6  * @subpackage Twenty_Sixteen
7  * @since Twenty Sixteen 1.0
8  */
9 ?>
10
11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12         <header class="entry-header">
13                 <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
14                         <span class="sticky-post"><?php _e( 'Featured', 'twentysixteen' ); ?></span>
15                 <?php endif; ?>
16
17                 <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
18         </header><!-- .entry-header -->
19
20         <?php twentysixteen_excerpt(); ?>
21
22         <?php twentysixteen_post_thumbnail(); ?>
23
24         <div class="entry-content">
25                 <?php
26                         /* translators: %s: Name of current post */
27                         the_content( sprintf(
28                                 __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
29                                 get_the_title()
30                         ) );
31
32                         wp_link_pages( array(
33                                 'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
34                                 'after'       => '</div>',
35                                 'link_before' => '<span>',
36                                 'link_after'  => '</span>',
37                                 'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
38                                 'separator'   => '<span class="screen-reader-text">, </span>',
39                         ) );
40                 ?>
41         </div><!-- .entry-content -->
42
43         <footer class="entry-footer">
44                 <?php twentysixteen_entry_meta(); ?>
45                 <?php
46                         edit_post_link(
47                                 sprintf(
48                                         /* translators: %s: Name of current post */
49                                         __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
50                                         get_the_title()
51                                 ),
52                                 '<span class="edit-link">',
53                                 '</span>'
54                         );
55                 ?>
56         </footer><!-- .entry-footer -->
57 </article><!-- #post-## -->