content-page.php 1.3 KB

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