content-page.php 915 B

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