content-page.php 876 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Template part for displaying page content in page.php.
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package AltoFocus
  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. <?php // Edit link
  14. edit_post_link(
  15. sprintf(
  16. /* translators: %s: Name of current post */
  17. esc_html__( 'Edit %s', 'altofocus' ),
  18. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  19. ),
  20. '<div class="entry-meta"><span class="edit-link">',
  21. '</span></div>'
  22. );
  23. ?>
  24. </header>
  25. <div class="entry-content">
  26. <?php
  27. the_content();
  28. wp_link_pages( array(
  29. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'altofocus' ),
  30. 'after' => '</div>',
  31. ) );
  32. ?>
  33. </div>
  34. </article><!-- #post-## -->