content-single.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Template part for displaying posts
  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
  16. if ( 'post' === get_post_type() ) : ?>
  17. <div class="entry-meta">
  18. <?php radcliffe_2_posted_on(); ?>
  19. </div><!-- .entry-meta -->
  20. <?php
  21. endif;
  22. the_title( '<h1 class="entry-title">', '</h1>' );
  23. ?>
  24. </header><!-- .entry-header -->
  25. <div class="entry-content">
  26. <?php
  27. the_content( sprintf(
  28. wp_kses(
  29. /* translators: %s: Name of current post. Only visible to screen readers */
  30. __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'radcliffe-2' ),
  31. array(
  32. 'span' => array(
  33. 'class' => array(),
  34. ),
  35. )
  36. ),
  37. get_the_title()
  38. ) );
  39. wp_link_pages( array(
  40. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'radcliffe-2' ),
  41. 'after' => '</div>',
  42. 'link_before' => '<span>',
  43. 'link_after' => '</span>',
  44. ) );
  45. ?>
  46. </div><!-- .entry-content -->
  47. <footer class="entry-footer">
  48. <?php radcliffe_2_author_bio(); ?>
  49. <div class="entry-links">
  50. <?php radcliffe_2_entry_footer(); ?>
  51. </div>
  52. </footer><!-- .entry-footer -->
  53. </article><!-- #post-<?php the_ID(); ?> -->