content-page.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 WordPress
  8. * @subpackage Varia
  9. * @since 1.0.0
  10. */
  11. ?>
  12. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13. <header class="entry-header responsive-max-width">
  14. <?php get_template_part( 'template-parts/header/entry', 'header' ); ?>
  15. </header>
  16. <?php varia_post_thumbnail(); ?>
  17. <div class="entry-content">
  18. <?php
  19. the_content();
  20. wp_link_pages(
  21. array(
  22. 'before' => '<div class="page-links">' . __( 'Pages:', 'varia' ),
  23. 'after' => '</div>',
  24. )
  25. );
  26. ?>
  27. </div><!-- .entry-content -->
  28. <?php if ( get_edit_post_link() ) : ?>
  29. <footer class="entry-footer responsive-max-width">
  30. <?php
  31. edit_post_link(
  32. sprintf(
  33. wp_kses(
  34. /* translators: %s: Name of current post. Only visible to screen readers */
  35. __( 'Edit <span class="screen-reader-text">%s</span>', 'varia' ),
  36. array(
  37. 'span' => array(
  38. 'class' => array(),
  39. ),
  40. )
  41. ),
  42. get_the_title()
  43. ),
  44. '<span class="edit-link">',
  45. '</span>'
  46. );
  47. ?>
  48. </footer><!-- .entry-footer -->
  49. <?php endif; ?>
  50. </article><!-- #post-<?php the_ID(); ?> -->