content-single.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * Template part for displaying single posts.
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Rebalance
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <header class="entry-header">
  12. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  13. <div class="entry-meta">
  14. <?php rebalance_entry_meta(); ?>
  15. </div><!-- .entry-meta -->
  16. <?php the_post_navigation( array(
  17. 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . esc_html__( 'Previous', 'rebalance' ) . '</span>',
  18. 'next_text' => '<span class="meta-nav" aria-hidden="true">' . esc_html__( 'Next', 'rebalance' ) . '</span>'
  19. )); ?>
  20. </header><!-- .entry-header -->
  21. <?php if ( rebalance_has_post_thumbnail() ) { ?>
  22. <div class="post-hero-image clear-fix">
  23. <figure class="entry-image">
  24. <?php the_post_thumbnail( 'full' ); ?>
  25. </figure>
  26. </div><!-- .post-hero-image -->
  27. <?php } ?>
  28. <div class="entry-content">
  29. <?php the_content(); ?>
  30. <?php
  31. wp_link_pages( array(
  32. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'rebalance' ),
  33. 'after' => '</div>',
  34. ) );
  35. ?>
  36. </div><!-- .entry-content -->
  37. <footer class="entry-footer">
  38. <div class="entry-meta">
  39. <?php rebalance_entry_footer(); ?>
  40. </div>
  41. </footer><!-- .entry-footer -->
  42. </article><!-- #post-## -->
  43. <?php
  44. /**
  45. * Display the post navigation
  46. */
  47. the_post_navigation( array(
  48. 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . esc_html__( 'Previous', 'rebalance' ) . '</span> <span class="meta-nav-title">%title</span>',
  49. 'next_text' => '<span class="meta-nav" aria-hidden="true">' . esc_html__( 'Next', 'rebalance' ) . '</span> <span class="meta-nav-title">%title</span> '
  50. ));
  51. /**
  52. * Display the author meta
  53. */
  54. rebalance_author_bio(); ?>