Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php $post_format = get_post_format( $post->ID ); ?>
- <?php if ( $post_format == 'gallery' ) : ?>
- <div id="main-content">
- <div id="center-2">
- <?php if(have_posts()): ?> <?php while(have_posts()) : the_post(); ?>
- <h1><?php the_title(); ?></h1>
- <div class="br"></div>
- <div class="entry">
- <?php the_content(); ?>
- <p class="postmetadata">
- </p>
- </div>
- </div>
- <?php endwhile; ?>
- <?php else : ?>
- <h2><?php _e('Not Found'); ?></h2>
- <?php endif; ?>
- </div>
- <div class="clear"></div>
- <?php get_footer(); ?>
- <?php else : ?>
- <div id="main-content">
- <div id="center">
- <?php if(have_posts()): ?> <?php while(have_posts()) : the_post(); ?>
- <h1><?php the_title(); ?></h1>
- <div class="br"></div>
- <div class="entry">
- <?php the_content(); ?>
- <p class="postmetadata">
- <?php _e('Filed under:'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php the_author(); ?><br />
- <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> <?php edit_post_link('Edit', ' | ', ''); ?>
- </p>
- <?php
- if ( in_category( 'Blog' )) {
- comments_template();
- }
- ?>
- </div>
- <?php endwhile; ?>
- <?php else : ?>
- <h2><?php _e('Not Found'); ?></h2>
- <?php endif; ?>
- </div>
- </div>
- <div class="clear"></div>
- <?php get_footer(); ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement