content-image.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * @package Spun
  4. */
  5. $format = get_post_format();
  6. $thumb = get_the_post_thumbnail( $post->ID, 'single-post' );
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <?php if ( '' != $thumb ) { ?>
  10. <div class="single-post-thumbnail">
  11. <?php echo $thumb; ?>
  12. </div>
  13. <?php } ?>
  14. <header class="entry-header">
  15. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  16. </header><!-- .entry-header -->
  17. <div class="entry-content">
  18. <?php the_content(); ?>
  19. <?php wp_link_pages( array( 'before' => '<div class="page-links">', 'after' => '</div>', 'link_before' => '<span class="active-link">', 'link_after' => '</span>' ) ); ?>
  20. </div><!-- .entry-content -->
  21. <footer class="entry-meta">
  22. <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
  23. <span class="comments-link">
  24. <a href="#comments-toggle">
  25. <span class="tail"></span>
  26. <?php echo comments_number( __( '+', 'spun' ), __( '1', 'spun' ), __( '%', 'spun' ) ); ?>
  27. </a>
  28. </span>
  29. <?php endif; ?>
  30. <div class="entry-meta-wrapper">
  31. <span class="post-date">
  32. <?php spun_posted_on(); ?>
  33. </span>
  34. <span class="entry-format">
  35. <a href="<?php echo esc_url( get_post_format_link( $format ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'spun' ), get_post_format_string( $format ) ) ); ?>"><?php echo get_post_format_string( $format ); ?></a>
  36. </span>
  37. <?php
  38. /* translators: used between list items, there is a space after the comma */
  39. $tags_list = get_the_tag_list( '', __( ', ', 'spun' ) );
  40. if ( $tags_list ) :
  41. ?>
  42. <span class="tags-links">
  43. <?php printf( __( '%1$s', 'spun' ), $tags_list ); ?>
  44. </span>
  45. <?php endif; // End if $tags_list ?>
  46. <?php edit_post_link( __( 'Edit', 'spun' ), '<span class="edit-link">', '</span>' ); ?>
  47. </div>
  48. </footer><!-- .entry-meta -->
  49. </article><!-- #post-<?php the_ID(); ?> -->