content.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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>
  9. <?php endif; ?>
  10. </header>
  11. <?php if ( is_search() ) : ?>
  12. <div class="entry-summary">
  13. <?php the_excerpt(); ?>
  14. </div>
  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>
  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. $categories_list = get_the_category_list( __( ', ', '_ph' ) );
  25. if ( $categories_list && _ph_categorized_blog() ) :
  26. ?>
  27. <span class="cat-links">
  28. <?php printf( __( 'Posted in %1$s', '_ph' ), $categories_list ); ?>
  29. </span>
  30. <span class="sep"> | </span>
  31. <?php endif; // End if categories ?>
  32. <?php
  33. $tags_list = get_the_tag_list( '', __( ', ', '_ph' ) );
  34. if ( $tags_list ) :
  35. ?>
  36. <span class="tag-links">
  37. <?php printf( __( 'Tagged %1$s', '_ph' ), $tags_list ); ?>
  38. </span>
  39. <span class="sep"> | </span>
  40. <?php endif; ?>
  41. <?php endif; ?>
  42. <?php if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?>
  43. <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', '_ph' ), __( '1 Comment', '_ph' ), __( '% Comments', '_ph' ) ); ?></span>
  44. <span class="sep"> | </span>
  45. <?php endif; ?>
  46. <?php edit_post_link( __( 'Edit', '_ph' ), '<span class="edit-link">', '</span>' ); ?>
  47. </footer>
  48. </article>