content-page.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php declare( strict_types = 1 ); ?>
  2. <?php
  3. /**
  4. * Template part for displaying page content in page.php
  5. *
  6. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  7. *
  8. * @package Seedlet
  9. * @since 1.0.0
  10. */
  11. ?>
  12. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13. <header class="entry-header default-max-width">
  14. <?php get_template_part( 'template-parts/header/entry-header' ); ?>
  15. </header>
  16. <div class="entry-content">
  17. <?php
  18. the_content();
  19. wp_link_pages(
  20. array(
  21. 'before' => '<div class="page-links">' . __( 'Pages:', 'seedlet' ),
  22. 'after' => '</div>',
  23. )
  24. );
  25. ?>
  26. </div><!-- .entry-content -->
  27. <?php if ( get_edit_post_link() ) : ?>
  28. <footer class="entry-footer default-max-width">
  29. <?php
  30. edit_post_link(
  31. sprintf(
  32. wp_kses(
  33. /* translators: %s: Name of current post. Only visible to screen readers */
  34. __( 'Edit <span class="screen-reader-text">%s</span>', 'seedlet' ),
  35. array(
  36. 'span' => array(
  37. 'class' => array(),
  38. ),
  39. )
  40. ),
  41. get_the_title()
  42. ),
  43. '<span class="edit-link">',
  44. '</span>'
  45. );
  46. ?>
  47. </footer><!-- .entry-footer -->
  48. <?php endif; ?>
  49. </article><!-- #post-<?php the_ID(); ?> -->