content-status.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * @package Illustratr
  4. */
  5. ?>
  6. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  7. <?php if ( is_search() ) : // Only display Excerpts for Search ?>
  8. <div class="entry-summary">
  9. <?php the_excerpt(); ?>
  10. </div><!-- .entry-summary -->
  11. <?php else : ?>
  12. <div class="entry-content">
  13. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'illustratr' ) ); ?>
  14. <?php
  15. wp_link_pages( array(
  16. 'before' => '<div class="page-links clear">',
  17. 'after' => '</div>',
  18. 'pagelink' => '<span class="page-link">%</span>',
  19. ) );
  20. ?>
  21. </div><!-- .entry-content -->
  22. <?php endif; ?>
  23. <?php if ( illustratr_validate_gravatar( get_the_author_meta( 'email' ) ) ) : ?>
  24. <div class="entry-avatar">
  25. <?php echo get_avatar( get_the_author_meta( 'email' ), '60' ); ?>
  26. </div><!-- .entry-avatar -->
  27. <?php endif; ?>
  28. <header class="entry-header">
  29. <?php
  30. /* translators: used between list items, there is a space after the comma */
  31. $categories_list = get_the_category_list( __( ', ', 'illustratr' ) );
  32. if ( 'post' == get_post_type() && $categories_list && illustratr_categorized_blog() ) :
  33. ?>
  34. <span class="cat-links"><?php echo $categories_list; ?></span>
  35. <?php endif; ?>
  36. </header><!-- .entry-header -->
  37. <footer class="entry-meta">
  38. <?php illustratr_posted_on(); ?>
  39. <span class="entry-format"><a href="<?php echo esc_url( get_post_format_link( 'status' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'illustratr' ), get_post_format_string( 'status' ) ) ); ?>"><?php echo get_post_format_string( 'status' ); ?></a></span>
  40. <?php
  41. /* translators: used between list items, there is a space after the comma */
  42. the_tags( sprintf( '<span class="tags-links">%s ', esc_html__( 'Tagged', 'illustratr' ) ), esc_html__( ', ', 'illustratr' ), '</span>' ); ?>
  43. <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
  44. <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'illustratr' ), __( '1 Comment', 'illustratr' ), __( '% Comments', 'illustratr' ) ); ?></span>
  45. <?php endif; ?>
  46. <?php edit_post_link( __( 'Edit', 'illustratr' ), '<span class="edit-link">', '</span>' ); ?>
  47. </footer><!-- .entry-meta -->
  48. </article><!-- #post-## -->