content-single.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * @package Spun
  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. </header><!-- .entry-header -->
  10. <div class="entry-content">
  11. <?php the_content(); ?>
  12. <?php wp_link_pages( array( 'before' => '<div class="page-links">', 'after' => '</div>', 'link_before' => '<span class="active-link">', 'link_after' => '</span>' ) ); ?>
  13. </div><!-- .entry-content -->
  14. <footer class="entry-meta">
  15. <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
  16. <span class="comments-link">
  17. <a href="#comments-toggle">
  18. <span class="tail"></span>
  19. <?php echo comments_number( __( '+', 'spun' ), __( '1', 'spun' ), __( '%', 'spun' ) ); ?>
  20. </a>
  21. </span>
  22. <?php endif; ?>
  23. <div class="entry-meta-wrapper">
  24. <span class="post-date">
  25. <?php spun_posted_on(); ?>
  26. </span>
  27. <?php
  28. /* translators: used between list items, there is a space after the comma */
  29. $tags_list = get_the_tag_list( '', __( ', ', 'spun' ) );
  30. if ( $tags_list ) :
  31. ?>
  32. <span class="tags-links">
  33. <?php printf( __( '%1$s', 'spun' ), $tags_list ); ?>
  34. </span>
  35. <?php endif; // End if $tags_list ?>
  36. <?php edit_post_link( __( 'Edit', 'spun' ), '<span class="edit-link">', '</span>' ); ?>
  37. </div>
  38. </footer><!-- .entry-meta -->
  39. </article><!-- #post-<?php the_ID(); ?> -->