content-single.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * @package Apostrophe 2
  4. *
  5. */
  6. ?>
  7. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  8. <?php if ( apostrophe_2_has_post_thumbnail() ) { ?>
  9. <figure class="entry-thumbnail apostrophe-2-thumb">
  10. <?php the_post_thumbnail( 'apostrophe-2-featured' ); ?>
  11. </figure>
  12. <?php } ?>
  13. <div class="entry-meta"><?php apostrophe_2_posted_on(); ?></div>
  14. <?php edit_post_link( esc_html__( 'Edit', 'apostrophe-2' ), '<span class="edit-link">', '</span>' ); ?>
  15. <h1 class="entry-title">
  16. <?php the_title(); ?>
  17. </h1>
  18. <div class="entry-content">
  19. <?php the_content(); ?>
  20. <?php
  21. wp_link_pages( array(
  22. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'apostrophe-2' ),
  23. 'after' => '</div>',
  24. ) );
  25. ?>
  26. </div><!-- .entry-content -->
  27. <footer class="entry-footer">
  28. <?php apostrophe_2_entry_footer(); ?>
  29. <?php the_post_navigation( array( 'next_text' => wp_kses( __( '<span class="meta-nav">Next</span> %title', 'apostrophe-2' ), array( 'span' => array( 'class' => array() ) ) ), 'prev_text' => wp_kses( __('<span class="meta-nav">Previous</span> %title', 'apostrophe-2' ), array( 'span' => array( 'class' => array() ) ) ) ) ); ?>
  30. </footer><!-- .entry-footer -->
  31. </article><!-- #post-## -->