content-single.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * Template part for displaying single posts.
  4. *
  5. * @package Independent_Publisher_2
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <?php
  10. independent_publisher_2_entry_header();
  11. independent_publisher_2_entry_meta();
  12. ?>
  13. <div class="entry-content">
  14. <?php the_content(); ?>
  15. </div><!-- .entry-content -->
  16. <div class="entry-footer">
  17. <?php
  18. wp_link_pages( array(
  19. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'independent-publisher-2' ),
  20. 'after' => '</div>',
  21. 'link_before' => '<span>',
  22. 'link_after' => '</span>',
  23. ) );
  24. the_tags( '<ul class="post-tags light-text"><li>' . esc_html__( 'Tagged', 'independent-publisher-2' ) . '</li><li>', '</li><li>', '</li></ul><!-- .post-tags -->' );
  25. edit_post_link(
  26. sprintf(
  27. /* translators: %s: Name of current post */
  28. esc_html__( 'Edit %s', 'independent-publisher-2' ),
  29. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  30. ),
  31. '<span class="post-edit-link">',
  32. '</span>'
  33. );
  34. ?>
  35. </div><!-- .entry-footer -->
  36. <div class="entry-author-wrapper">
  37. <?php independent_publisher_2_author_bio(); ?>
  38. <div class="site-posted-on">
  39. <strong><?php esc_html_e( 'Published', 'post published', 'independent-publisher-2' ); ?></strong>
  40. <?php echo independent_publisher_2_posted_time(); ?>
  41. </div><!-- .site-posted-on -->
  42. </div>
  43. </article><!-- #post-## -->