WordPress 4.4
[autoinstalls/wordpress.git] / wp-content / themes / twentysixteen / template-parts / content-single.php
1 <?php
2 /**
3  * The template part for displaying single posts
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 the_title( '<h1 class="entry-title">', '</h1>' ); ?>
14         </header><!-- .entry-header -->
15
16         <?php twentysixteen_excerpt(); ?>
17
18         <?php twentysixteen_post_thumbnail(); ?>
19
20         <div class="entry-content">
21                 <?php
22                         the_content();
23
24                         wp_link_pages( array(
25                                 'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
26                                 'after'       => '</div>',
27                                 'link_before' => '<span>',
28                                 'link_after'  => '</span>',
29                                 'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
30                                 'separator'   => '<span class="screen-reader-text">, </span>',
31                         ) );
32
33                         if ( '' !== get_the_author_meta( 'description' ) ) {
34                                 get_template_part( 'template-parts/biography' );
35                         }
36                 ?>
37         </div><!-- .entry-content -->
38
39         <footer class="entry-footer">
40                 <?php twentysixteen_entry_meta(); ?>
41                 <?php
42                         edit_post_link(
43                                 sprintf(
44                                         /* translators: %s: Name of current post */
45                                         __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
46                                         get_the_title()
47                                 ),
48                                 '<span class="edit-link">',
49                                 '</span>'
50                         );
51                 ?>
52         </footer><!-- .entry-footer -->
53 </article><!-- #post-## -->