Advertisement
Guest User

index2012

a guest
Aug 2nd, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div class="primary<?php if (!is_singular()) echo ' posts'; ?>">
  4.  
  5. <?php if (have_posts()) { ?>
  6.  
  7. <?php if (is_singular()) { // Single entries and pages ?>
  8.  
  9. <?php while (have_posts()) { the_post(); ?>
  10.  
  11. <div <?php post_class('entry'); ?>>
  12.  
  13. <div class="meta">
  14. <?php the_title('<h1 class="title entry-title">', '</h1>'); ?>
  15.  
  16. <?php echo th_post_metadata(); ?>
  17. </div>
  18.  
  19. <div class="content clearfix">
  20. <?php echo tarski_post_thumbnail(); ?>
  21. <?php the_content(); ?>
  22. </div>
  23.  
  24. <?php th_postend(); ?>
  25.  
  26.  
  27. </div> <!-- /entry -->
  28.  
  29.  
  30. <?php } // End entry loop ?>
  31.  
  32.  
  33.  
  34. <?php } else { ?>
  35.  
  36. <?php get_template_part('app/templates/loop'); ?>
  37.  
  38. <?php } // End loop types ?>
  39.  
  40. <?php } else { // If no posts ?>
  41.  
  42. <?php get_template_part('app/templates/no_posts'); ?>
  43.  
  44. <?php } // End loop ?>
  45.  
  46. <?php comments_template(); ?>
  47. </div>
  48.  
  49. <?php get_sidebar(); ?>
  50.  
  51. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement