content-aside.php 1.6 KB

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