content.php 2.1 KB

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