content-aside.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <header class="entry-header">
  24. <?php if ( 'post' == get_post_type() ) : ?>
  25. <?php
  26. /* translators: used between list items, there is a space after the comma */
  27. $categories_list = get_the_category_list( __( ', ', 'illustratr' ) );
  28. if ( $categories_list && illustratr_categorized_blog() ) :
  29. ?>
  30. <span class="cat-links"><?php echo $categories_list; ?></span>
  31. <?php endif; ?>
  32. <?php endif; ?>
  33. </header><!-- .entry-header -->
  34. <footer class="entry-meta">
  35. <?php illustratr_posted_on(); ?>
  36. <span class="entry-format"><a href="<?php echo esc_url( get_post_format_link( 'aside' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'illustratr' ), get_post_format_string( 'aside' ) ) ); ?>"><?php echo get_post_format_string( 'aside' ); ?></a></span>
  37. <?php
  38. /* translators: used between list items, there is a space after the comma */
  39. the_tags( sprintf( '<span class="tags-links">%s ', esc_html__( 'Tagged', 'illustratr' ) ), esc_html__( ', ', 'illustratr' ), '</span>' ); ?>
  40. <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
  41. <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'illustratr' ), __( '1 Comment', 'illustratr' ), __( '% Comments', 'illustratr' ) ); ?></span>
  42. <?php endif; ?>
  43. <?php edit_post_link( __( 'Edit', 'illustratr' ), '<span class="edit-link">', '</span>' ); ?>
  44. </footer><!-- .entry-meta -->
  45. </article><!-- #post-## -->