content-page.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 Radcliffe 2
  8. */
  9. ?>
  10. <?php if ( radcliffe_2_has_post_thumbnail() ) : ?>
  11. <div class="entry-thumbnail" <?php radcliffe_2_background_image(); ?>></div>
  12. <?php endif; ?>
  13. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  14. <header class="entry-header">
  15. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  16. </header><!-- .entry-header -->
  17. <div class="entry-content">
  18. <?php
  19. the_content();
  20. wp_link_pages( array(
  21. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'radcliffe-2' ),
  22. 'after' => '</div>',
  23. 'link_before' => '<span>',
  24. 'link_after' => '</span>',
  25. ) );
  26. ?>
  27. </div><!-- .entry-content -->
  28. <?php if ( get_edit_post_link() ) : ?>
  29. <footer class="entry-footer">
  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>', 'radcliffe-2' ),
  36. array(
  37. 'span' => array(
  38. 'class' => array(),
  39. ),
  40. )
  41. ),
  42. get_the_title()
  43. ),
  44. '<span class="edit-link">' . radcliffe_2_get_svg( array( 'icon' => 'edit', 'title' => esc_html__( 'Edit', 'radcliffe-2' ) ) ),
  45. '</span>'
  46. );
  47. ?>
  48. </footer><!-- .entry-footer -->
  49. <?php endif; ?>
  50. </article><!-- #post-<?php the_ID(); ?> -->