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