Advertisement
Guest User

Untitled

a guest
Nov 4th, 2012
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.64 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 foreach (get_the_category() as $category) {
  50.     if ( $category->name == 'Blog' ) ?>
  51.         <?php comments_template(); ?>
  52. <?php } ?>
  53.        
  54.  
  55.             </div>
  56.  
  57.            
  58.  
  59.         <?php endwhile; ?>
  60.         <?php else : ?>
  61.         <h2><?php _e('Not Found'); ?></h2>
  62.         <?php endif; ?>
  63.     </div>
  64. </div>
  65. <div class="clear"></div>
  66.  
  67. <?php get_footer(); ?>
  68.   <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement