Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div <?php post_class() ?>>
- <h2><?php the_title(); ?></h2>
- <div class="date">
- <div class="bg">
- <span><?php the_time('M') ?></span>
- <span class="day"><?php the_time('d') ?></span>
- <span><?php the_time('Y') ?></span>
- </div>
- </div>
- <div class="entry">
- <?php the_content(); ?>
- <div class="cl"> </div>
- </div>
- <div class="meta">
- <div class="bg">
- <span class="comments-num"><?php comments_popup_link('No Comments', '1 Comment', '% Comments') ?></span>
- <p>Posted <!-- by <?php the_author() ?> --> in <?php the_category(', ') ?></p>
- </div>
- <div class="bot"> </div>
- <?php
- $current_cats = get_the_category();
- $current_category = $current_cats[0]->term_id;
- $category = get_category($current_category);
- $cat_slug = $category->slug;
- if ($cat_slug == "wolves-in-sheeps-clothing" || $cat_slug == "fruit-that-remains") {
- $my_post_type = "chapter";
- $my_category_type = "this booklet";
- }
- else {
- $my_post_type = "post";
- $my_category_type = "this category";
- ?>
- <div id="post-navigation">
- <div class="nav-previous"><?php previous_post_link('%link', 'Previous ' . $my_post_type . ' in ' . $my_category_type, TRUE); ?></div>
- <div class="nav-next"><?php next_post_link('%link', 'Next ' . $my_post_type . ' in ' . $my_category_type, TRUE); ?></div>
- </div>
- </div>
- <?php the_tags( '<p class="tags">Tags: ', ', ', '</p>'); ?>
- </div>
- <?php comments_template(); ?>
- <?php endwhile; else: ?>
- <p>Sorry, no posts matched your criteria.</p>
- <?php endif; ?>
- <?php get_sidebar('single'); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement