content-project.php 1.5 KB

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