Advertisement
Guest User

loop-single

a guest
Sep 13th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  2.  
  3. <div class="entry-content">
  4. <div class="entry-utility single-entry-utility">
  5. <?php dotted_posted_on(); ?>
  6.  
  7. <!-- Category -->
  8. <?php if (get_option_tree('hide_category_from_meta', '')) {} else{ ?>
  9. <span class="cat-links">
  10. <img src="<?php bloginfo('stylesheet_directory'); ?>/images/folder-ico.png" />
  11. <?php printf( __( '%2$s', 'care' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
  12. </span>
  13. <?php } ?>
  14. <!-- Category END -->
  15.  
  16. <!-- Comments -->
  17. <?php if (get_option_tree('hide_comments_from_meta', '')) {} else{ ?>
  18. <img src="<?php bloginfo('stylesheet_directory'); ?>/images/comment-ico.png" />
  19. <?php
  20. $comment = get_option_tree('blog_comment', '');
  21. $comments = get_option_tree('blog_comments', '');
  22. $leave_comments = get_option_tree('blog_leave', '');
  23.  
  24. if ($comment || $comments || $leave_comments ) {
  25. echo '<span class="comments-link">'; comments_popup_link( __( ''.$leave_comments.' &nbsp', 'care' ), __( '1 '.$comment.' ', 'care' ), __( '% '.$comments.' ', 'care' ) ); echo'</span>';
  26. }
  27. else{
  28. echo '<span class="comments-link">'; comments_popup_link( __( 'Leave a comment ', 'care' ), __( '1 Comment ', 'care' ), __( '% Comments ' , 'care' ) ); echo'</span>';
  29. } ?>
  30. <?php } ?>
  31. <!-- Comments END -->
  32.  
  33. <!-- Tags -->
  34. <?php if (get_option_tree('hide_tags_from_meta', '')) {} else{ if( has_tag() ) { ?>
  35. <img class="tag_link_img" src="<?php bloginfo('stylesheet_directory'); ?>/images/tag-ico.png" />
  36. <?php the_tags(''); ?>
  37. <?php }} ?>
  38. <!-- Tags END -->
  39.  
  40. <?php edit_post_link( __( ' Edit', 'care' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
  41. </div><!-- .entry-utility -->
  42.  
  43.  
  44. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  45. <?php the_content(); ?>
  46. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'care' ), 'after' => '</div>' ) ); ?>
  47.  
  48. <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
  49. <h3 class="authorbox_title">About the author</h3>
  50. <div id="authorarea">
  51. <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'dotted_author_bio_avatar_size', 80 ) ); ?>
  52. <div class="authorinfo">
  53. <span class="authorinfo_title"><?php printf( get_the_author() ); ?></span>
  54. <p><?php the_author_meta( 'description' ); ?></p>
  55. </div>
  56. <div class="clear"></div>
  57. </div>
  58. <?php endif; ?>
  59.  
  60. </div><!-- #post-## -->
  61.  
  62. <?php comments_template( '', true ); ?>
  63. <?php endwhile; // end of the loop. ?>
  64. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement