content.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php ?>
  2. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  3. <header class="entry-header">
  4. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', '_ph' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  5. <?php if ( 'post' == get_post_type() ) : ?>
  6. <div class="entry-meta">
  7. <?php _ph_posted_on(); ?>
  8. </div><!-- .entry-meta -->
  9. <?php endif; ?>
  10. </header><!-- .entry-header -->
  11. <?php if ( is_search() ) : // Only display Excerpts for Search ?>
  12. <div class="entry-summary">
  13. <?php the_excerpt(); ?>
  14. </div><!-- .entry-summary -->
  15. <?php else : ?>
  16. <div class="entry-content">
  17. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', '_ph' ) ); ?>
  18. <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_ph' ), 'after' => '</div>' ) ); ?>
  19. </div><!-- .entry-content -->
  20. <?php endif; ?>
  21. <footer class="entry-meta">
  22. <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
  23. <?php
  24. /* translators: used between list items, there is a space after the comma */
  25. $categories_list = get_the_category_list( __( ', ', '_ph' ) );
  26. if ( $categories_list && _ph_categorized_blog() ) :
  27. ?>
  28. <span class="cat-links">
  29. <?php printf( __( 'Posted in %1$s', '_ph' ), $categories_list ); ?>
  30. </span>
  31. <span class="sep"> | </span>
  32. <?php endif; // End if categories ?>
  33. <?php
  34. /* translators: used between list items, there is a space after the comma */
  35. $tags_list = get_the_tag_list( '', __( ', ', '_ph' ) );
  36. if ( $tags_list ) :
  37. ?>
  38. <span class="tag-links">
  39. <?php printf( __( 'Tagged %1$s', '_ph' ), $tags_list ); ?>
  40. </span>
  41. <span class="sep"> | </span>
  42. <?php endif; // End if $tags_list ?>
  43. <?php endif; // End if 'post' == get_post_type() ?>
  44. <?php if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?>
  45. <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', '_ph' ), __( '1 Comment', '_ph' ), __( '% Comments', '_ph' ) ); ?></span>
  46. <span class="sep"> | </span>
  47. <?php endif; ?>
  48. <?php edit_post_link( __( 'Edit', '_ph' ), '<span class="edit-link">', '</span>' ); ?>
  49. </footer><!-- #entry-meta -->
  50. </article><!-- #post-<?php the_ID(); ?> -->