content-single.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * @package Penscratch 2
  4. */
  5. ?>
  6. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  7. <header class="entry-header">
  8. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  9. <?php if ( penscratch_2_has_post_thumbnail() ) : ?>
  10. <div class="entry-thumbnail">
  11. <?php the_post_thumbnail( 'penscratch-2-featured' ); ?>
  12. </div>
  13. <?php endif; ?>
  14. <div class="entry-meta">
  15. <?php penscratch_2_posted_on(); ?>
  16. <?php edit_post_link(
  17. sprintf(
  18. /* translators: %s: Name of current post */
  19. esc_html__( 'Edit %s', 'penscratch-2' ),
  20. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  21. ),
  22. '<span class="edit-link"><span class="sep"> ~ </span>',
  23. '</span>'
  24. ); ?>
  25. </div><!-- .entry-meta -->
  26. </header><!-- .entry-header -->
  27. <div class="entry-content">
  28. <?php the_content( sprintf(
  29. /* translators: %s: Name of current post. */
  30. wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'penscratch-2' ), array( 'span' => array( 'class' => array() ) ) ),
  31. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  32. ) ); ?>
  33. <?php
  34. wp_link_pages( array(
  35. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'penscratch-2' ),
  36. 'after' => '</div>',
  37. ) );
  38. ?>
  39. </div><!-- .entry-content -->
  40. <footer class="entry-footer">
  41. <?php
  42. /* translators: used between list items, there is a space after the comma */
  43. $categories_list = get_the_category_list( esc_html__( ', ', 'penscratch-2' ) );
  44. if ( $categories_list && penscratch_2_categorized_blog() ) :
  45. ?>
  46. <span class="cat-links">
  47. <?php printf( esc_html__( 'Posted in %1$s', 'penscratch-2' ), $categories_list ); ?>
  48. </span>
  49. <?php endif; // End if categories ?>
  50. <?php
  51. $tags_list = get_the_tag_list( '', '' );
  52. if ( $tags_list && ! is_wp_error( $tags_list ) ) :
  53. ?>
  54. <span class="tags-links">
  55. <?php echo $tags_list; ?>
  56. </span>
  57. <?php endif; // End if $tags_list ?>
  58. </footer><!-- .entry-footer -->
  59. <?php penscratch_2_author_bio(); ?>
  60. </article><!-- #post-## -->