content.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * @package Spun
  4. */
  5. ?>
  6. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  7. <header class="entry-header">
  8. <h1 class="entry-title"><?php the_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="#">
  18. <span class="tail"></span>
  19. <?php printf( _n( '1', '%1$s', get_comments_number(), 'spun' ), number_format_i18n( get_comments_number() ) ); ?>
  20. </a>
  21. </span>
  22. <?php endif; ?>
  23. <span class="post-date">
  24. <?php spun_posted_on(); ?>
  25. </span>
  26. <?php
  27. /* translators: used between list items, there is a space after the comma */
  28. $categories_list = get_the_category_list( __( ', ', 'spun' ) );
  29. if ( $categories_list && spun_categorized_blog() ) :
  30. ?>
  31. <span class="cat-links">
  32. <?php printf( __( '%1$s', 'spun' ), $categories_list ); ?>
  33. </span>
  34. <?php endif; // End if categories ?>
  35. <?php
  36. /* translators: used between list items, there is a space after the comma */
  37. $tags_list = get_the_tag_list( '', __( ', ', 'spun' ) );
  38. if ( $tags_list ) :
  39. ?>
  40. <span class="tags-links">
  41. <?php printf( __( '%1$s', 'spun' ), $tags_list ); ?>
  42. </span>
  43. <?php endif; // End if $tags_list ?>
  44. <?php edit_post_link( __( 'Edit', 'spun' ), '<span class="edit-link">', '</span>' ); ?>
  45. </footer><!-- .entry-meta -->
  46. </article><!-- #post-<?php the_ID(); ?> -->