content-page.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * The template used for displaying page content
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Fifteen
  7. * @since Twenty Fifteen 1.0
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <?php
  12. // Post thumbnail.
  13. twentyfifteen_post_thumbnail();
  14. ?>
  15. <header class="entry-header">
  16. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  17. </header><!-- .entry-header -->
  18. <div class="entry-content">
  19. <?php the_content(); ?>
  20. <?php
  21. wp_link_pages( array(
  22. 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>',
  23. 'after' => '</div>',
  24. 'link_before' => '<span>',
  25. 'link_after' => '</span>',
  26. 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
  27. 'separator' => '<span class="screen-reader-text">, </span>',
  28. ) );
  29. ?>
  30. </div><!-- .entry-content -->
  31. <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?>
  32. </article><!-- #post-## -->