content-page.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * The template used for displaying page content in page.php
  4. *
  5. * @package Penscratch 2
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <header class="entry-header">
  10. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  11. </header><!-- .entry-header -->
  12. <?php if ( has_post_thumbnail() ) : ?>
  13. <div class="entry-thumbnail">
  14. <?php the_post_thumbnail( 'penscratch-2-featured' ); ?>
  15. </div>
  16. <?php endif; ?>
  17. <div class="entry-content">
  18. <?php the_content(); ?>
  19. <?php
  20. wp_link_pages( array(
  21. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'penscratch-2' ),
  22. 'after' => '</div>',
  23. ) );
  24. ?>
  25. </div><!-- .entry-content -->
  26. <footer class="entry-footer">
  27. <?php edit_post_link(
  28. sprintf(
  29. /* translators: %s: Name of current post */
  30. esc_html__( 'Edit %s', 'penscratch-2' ),
  31. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  32. ),
  33. '<span class="edit-link">',
  34. '</span>'
  35. ); ?>
  36. </footer><!-- .entry-footer -->
  37. </article><!-- #post-## -->