content.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Template part for displaying 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( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
  13. <?php if ( 'post' === get_post_type() ) : ?>
  14. <div class="entry-meta">
  15. <?php rebalance_entry_meta(); ?>
  16. </div><!-- .entry-meta -->
  17. <?php endif; ?>
  18. </header><!-- .entry-header -->
  19. <div class="entry-content">
  20. <?php
  21. the_content( sprintf(
  22. /* translators: %s: Name of current post. */
  23. wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'rebalance' ), array( 'span' => array( 'class' => array() ) ) ),
  24. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  25. ) );
  26. ?>
  27. <?php
  28. wp_link_pages( array(
  29. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'rebalance' ),
  30. 'after' => '</div>',
  31. ) );
  32. ?>
  33. </div><!-- .entry-content -->
  34. <footer class="entry-meta">
  35. <?php rebalance_entry_footer(); ?>
  36. </footer><!-- .entry-meta -->
  37. </article><!-- #post-## -->