Advertisement
Guest User

Untitled

a guest
Nov 4th, 2012
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php $post_format = get_post_format( $post->ID ); ?>
  3. <?php if ( $post_format == 'gallery' ) : ?>
  4. <div id="main-content">
  5. <div id="center-2">
  6. <?php if(have_posts()): ?> <?php while(have_posts()) : the_post(); ?>
  7.  
  8. <h1><?php the_title(); ?></h1>
  9.  
  10. <div class="br"></div>
  11.  
  12. <div class="entry">
  13. <?php the_content(); ?>
  14.  
  15. <p class="postmetadata">
  16.  
  17. </p>
  18.  
  19. </div>
  20. </div>
  21. <?php endwhile; ?>
  22. <?php else : ?>
  23. <h2><?php _e('Not Found'); ?></h2>
  24. <?php endif; ?>
  25.  
  26. </div>
  27. <div class="clear"></div>
  28.  
  29. <?php get_footer(); ?>
  30. <?php else : ?>
  31.  
  32. <div id="main-content">
  33. <div id="center">
  34.  
  35. <?php if(have_posts()): ?> <?php while(have_posts()) : the_post(); ?>
  36.  
  37. <h1><?php the_title(); ?></h1>
  38.  
  39. <div class="br"></div>
  40.  
  41. <div class="entry">
  42. <?php the_content(); ?>
  43.  
  44. <p class="postmetadata">
  45. <?php _e('Filed under&#58;'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php the_author(); ?><br />
  46. <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?> <?php edit_post_link('Edit', ' &#124; ', ''); ?>
  47. </p>
  48.  
  49. <?php
  50. if ( in_category( 'Blog' )) {
  51. comments_template();
  52. }
  53. ?>
  54.  
  55.  
  56. </div>
  57.  
  58. <?php endwhile; ?>
  59. <?php else : ?>
  60. <h2><?php _e('Not Found'); ?></h2>
  61. <?php endif; ?>
  62. </div>
  63. </div>
  64. <div class="clear"></div>
  65.  
  66. <?php get_footer(); ?>
  67. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement