Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php if (have_posts()) : ?>
- <?php //$post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
- <?php /* If this is a category archive */ if (is_category()) { ?>
- <h2 class="pagetitle"><span id="label"><?php single_cat_title(); ?></span></h2>
- <div class="post" id="cat-descript">
- <p><?php echo category_description(); ?></p>
- </div>
- <div class="section">
- <p>*</p>
- </div>
- <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
- <h2 class="pagetitle">Posts Tagged ‘<span id="label"><?php single_tag_title(); ?></span>’</h2>
- <div class="post" id="cat-descript">
- <p><?php echo tag_description(); ?></p>
- </div>
- <div class="section">
- <p>*</p>
- </div>
- <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
- <h2 class="pagetitle">Archive for <span id="label"><?php the_time('j F Y'); ?></span></h2>
- <div class="section">
- <p>*</p>
- </div>
- <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
- <h2 class="pagetitle">Archive for <span id="label"><?php the_time('F Y'); ?></span></h2>
- <div class="section">
- <p>*</p>
- </div>
- <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
- <h2 class="pagetitle">Archive for <span id="label"><?php the_time('Y'); ?></span></h2>
- <div class="section">
- <p>*</p>
- </div>
- <?php /* If this is an author archive */ } elseif (is_author()) { ?>
- <h2 class="pagetitle">Author Archive</h2>
- <div class="section">
- <p>*</p>
- </div>
- <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
- <h2 class="pagetitle">Blog Archives</h2>
- <div class="section">
- <p>*</p>
- </div>
- <?php } ?>
- <?php while (have_posts()) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class('archive'); ?>>
- <h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
- <p class="byline">
- <span class="category"><?php the_category(' <span class="cat-sep">/</span> ') ?></span>
- <span id="byline-title">Posted</span> <a href="<?php echo wp_get_shortlink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_time('jS') ?> of <?php the_time('F, Y') ?> / <span id="tags"><?php the_tags('<span id="byline-title">Tagged:</span> ', ', ', ''); ?><?php edit_post_link('edit', '<span class="edit"> / ', '</span>'); ?></span>
- </p>
- <?php /* Show full post content is posts are tagged with "the list" */
- if (is_tag( 'the-list' )) { the_content(); } ?>
- </div><!-- end post -->
- <?php endwhile; ?>
- <?php else : ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <h2 style="font-weight:normal">Sorry</h2>
- <p>I'm not finding what you are looking for. Try another search if you'd like.</p>
- </div>
- <br />
- <br />
- <br />
- <br />
- <br />
- <?php endif; ?>
- <div class="indexed-page-nav">
- <span class="previous"><?php next_posts_link('← towards the past') ?></span>
- <span class="next"><?php previous_posts_link('towards the present →') ?></span>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement