content-single.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * @package Sketch
  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. <div class="entry-meta">
  10. <?php sketch_post_format(); ?>
  11. <?php sketch_posted_on(); ?>
  12. <?php edit_post_link( __( 'Edit', 'sketch' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
  13. </div><!-- .entry-meta -->
  14. </header><!-- .entry-header -->
  15. <div class="entry-content">
  16. <?php the_content(); ?>
  17. <?php
  18. wp_link_pages( array(
  19. 'before' => '<div class="page-links">' . __( 'Pages:', 'sketch' ),
  20. 'after' => '</div>',
  21. ) );
  22. ?>
  23. </div><!-- .entry-content -->
  24. <footer class="entry-footer">
  25. <?php
  26. /* translators: used between list items, there is a space after the comma */
  27. $categories_list = get_the_category_list( __( ', ', 'sketch' ) );
  28. if ( $categories_list && sketch_categorized_blog() ) :
  29. ?>
  30. <span class="cat-links">
  31. <?php printf( __( 'Posted in %1$s', 'sketch' ), $categories_list ); ?>
  32. </span>
  33. <?php endif; // End if categories ?>
  34. <?php
  35. $tags_list = get_the_tag_list( '', '' );
  36. if ( $tags_list && ! is_wp_error( $tags_list ) ) :
  37. ?>
  38. <span class="tags-links">
  39. <?php echo $tags_list; ?>
  40. </span>
  41. <?php endif; // End if $tags_list ?>
  42. </footer><!-- .entry-footer -->
  43. </article><!-- #post-## -->