content-page.php 843 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @package Apostrophe 2
  4. *
  5. * The template used for displaying page content in page.php
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <?php if ( has_post_thumbnail() ) { ?>
  10. <figure class="entry-thumbnail apostrophe-2-thumb">
  11. <?php the_post_thumbnail( 'apostrophe-2-featured' ); ?>
  12. </figure>
  13. <?php } ?>
  14. <?php edit_post_link( esc_html__( 'Edit', 'apostrophe-2' ), '<span class="edit-link">', '</span>' ); ?>
  15. <header class="entry-header">
  16. <h1 class="entry-title"><?php the_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">' . esc_html__( 'Pages:', 'apostrophe-2' ),
  23. 'after' => '</div>',
  24. ) );
  25. ?>
  26. </div><!-- .entry-content -->
  27. </article><!-- #post-## -->