content-page.php 1.2 KB

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