content-page.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <header class="entry-header">
  12. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  13. </header><!-- .entry-header -->
  14. <?php twentysixteen_post_thumbnail(); ?>
  15. <div class="entry-content">
  16. <?php
  17. the_content();
  18. wp_link_pages( array(
  19. 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
  20. 'after' => '</div>',
  21. 'link_before' => '<span>',
  22. 'link_after' => '</span>',
  23. 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
  24. 'separator' => '<span class="screen-reader-text">, </span>',
  25. ) );
  26. ?>
  27. </div><!-- .entry-content -->
  28. <?php
  29. edit_post_link(
  30. sprintf(
  31. /* translators: %s: Name of current post */
  32. __( 'Edit %s', 'twentysixteen' ),
  33. the_title( '<span class="screen-reader-text">', '</span>', false )
  34. ),
  35. '<footer class="entry-footer"><span class="edit-link">',
  36. '</span></footer><!-- .entry-footer -->'
  37. );
  38. ?>
  39. </article><!-- #post-## -->