content-single.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * Template part for displaying single posts.
  4. *
  5. * @package Button 2
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <header class="entry-header">
  10. <?php if ( button_2_has_post_thumbnail() ) : ?>
  11. <div class="featured-image">
  12. <span class="corners">
  13. <?php the_post_thumbnail( 'button-2-featured' ); ?>
  14. </span>
  15. <a class="shadow" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><span class="screen-reader-text"><?php the_title(); ?></span></a>
  16. </div>
  17. <?php endif; ?>
  18. <?php button_2_entry_cats(); ?>
  19. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  20. <div class="entry-meta">
  21. <?php button_2_posted_on(); ?>
  22. </div>
  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">',
  29. 'after' => '</div>',
  30. 'link_before' => '<span class="active-link">',
  31. 'link_after' => '</span>'
  32. ) );
  33. ?>
  34. </div><!-- .entry-content -->
  35. <?php button_2_author_bio(); ?>
  36. <?php if ( function_exists( 'button_2_post_flair' ) ) : ?>
  37. <div class="entry-flair">
  38. <?php button_2_post_flair(); ?>
  39. </div><!-- .entry-flair -->
  40. <?php endif; ?>
  41. <footer class="entry-footer">
  42. <?php button_2_entry_footer(); ?>
  43. </footer><!-- .entry-footer -->
  44. </article><!-- #post-## -->