content-quote.php 2.2 KB

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