content-status.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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="status-avatar">
  13. <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) ?>">
  14. <?php echo get_avatar( get_the_author_meta( 'ID' ), 60 ); ?>
  15. </a>
  16. </div>
  17. <div class="entry-content">
  18. <?php the_content(); ?>
  19. </div><!-- .entry-content -->
  20. <footer class="entry-meta">
  21. <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
  22. <span class="comments-link">
  23. <a href="#comments-toggle">
  24. <span class="tail"></span>
  25. <?php echo comments_number( __( '+', 'spun' ), __( '1', 'spun' ), __( '%', 'spun' ) ); ?>
  26. </a>
  27. </span>
  28. <?php endif; ?>
  29. <div class="entry-meta-wrapper">
  30. <span class="post-date">
  31. <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'spun' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_date( get_option( 'date_format' ) ); ?></a> <?php _e( '@', 'spun' ); ?> <?php the_time( 'g:i a' ) ?>
  32. </span>
  33. <span class="entry-format">
  34. <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>
  35. </span>
  36. <?php edit_post_link( __( 'Edit', 'spun' ), '<span class="edit-link">', '</span>' ); ?>
  37. </div>
  38. </footer><!-- .entry-meta -->
  39. </article><!-- #post-<?php the_ID(); ?> -->