Want more features on Pastebin? Sign Up, it's FREE!
Guest

loop

By: a guest on Sep 13th, 2012  |  syntax: None  |  size: 2.93 KB  |  views: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php   /* If no posts.  */ ?>
  2.  
  3. <?php if ( ! have_posts() ) : ?>
  4. <div id="post-0" class="post not-found">
  5.         <h1 class="post-entry-title"><?php _e( 'Not Found', 'care' ); ?></h1>
  6.         <div class="entry-content">
  7.                 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'care' ); ?></p>
  8.                 <?php get_search_form(); ?>
  9.         </div><!-- .entry-content -->
  10. </div><!-- #post-0 -->
  11. <?php endif; ?>
  12.  
  13. <?php   /* Start the Loop.       */ ?>
  14.  
  15. <?php while ( have_posts() ) : the_post();?>
  16. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  17. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'care' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  18.  
  19. <div class="entry-utility single-entry-utility">
  20. <?php dotted_posted_on(); ?>
  21.  
  22. <!-- Category -->
  23. <?php if (get_option_tree('hide_category_from_meta', '')) {} else{ ?>
  24. <span class="cat-links">
  25. <img src="<?php bloginfo('stylesheet_directory'); ?>/images/folder-ico.png" />
  26. <?php printf( __( '%2$s', 'care' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
  27. </span>
  28.  <?php } ?>
  29. <!-- Category END -->
  30.  
  31. <!-- Comments -->
  32. <?php if (get_option_tree('hide_comments_from_meta', '')) {} else{ ?>
  33. <img src="<?php bloginfo('stylesheet_directory'); ?>/images/comment-ico.png" />
  34. <?php
  35. $comment = get_option_tree('blog_comment', '');
  36. $comments = get_option_tree('blog_comments', '');
  37. $leave_comments = get_option_tree('blog_leave', '');
  38.  
  39. if ($comment || $comments || $leave_comments ) {
  40. echo '<span class="comments-link">'; comments_popup_link( __( ''.$leave_comments.' &nbsp', 'care' ), __( '1 '.$comment.' ', 'care' ), __( '% '.$comments.' ', 'care' ) );  echo'</span>';
  41. }
  42. else{
  43. echo '<span class="comments-link">'; comments_popup_link( __( 'Leave a comment ', 'care' ), __( '1 Comment ', 'care' ), __( '% Comments ' , 'care' ) );  echo'</span>';
  44. } ?>
  45.  <?php } ?>
  46. <!-- Comments END -->
  47.  
  48. <!-- Tags -->
  49. <?php if (get_option_tree('hide_tags_from_meta', '')) {} else{ if( has_tag() ) { ?>
  50. <img class="tag_link_img" src="<?php bloginfo('stylesheet_directory'); ?>/images/tag-ico.png" />
  51. <?php the_tags(''); ?>
  52. <?php }} ?>
  53. <!-- Tags END -->
  54.  
  55. <?php edit_post_link( __( ' Edit', 'care' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
  56. </div><!-- .entry-utility -->
  57.  
  58. <div class="entry-content">
  59. <?php
  60. $read_more = get_option_tree('blog_read', '');
  61. if ($read_more){ the_content( __( $read_more , 'care' ) ); }
  62. else{ the_content( __( 'Read more', 'care' ) ); }?>
  63.  
  64. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'care' ), 'after' => '</div>' ) ); ?>
  65.  
  66. <div class="clear"></div>
  67. </div><!-- .entry-content -->
  68. </div><!-- #post-## -->
  69. <br/>  
  70. <?php comments_template( '', true ); ?>
  71. <?php endwhile; // End the loop. Whew. ?>
  72. <?php SEO_pager() ?>
clone this paste RAW Paste Data