content-link.php 2.1 KB

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