[44] | 1 | <?php get_header(); ?>
|
---|
| 2 |
|
---|
| 3 | <div id="topcurve"></div>
|
---|
| 4 | <div id="main">
|
---|
| 5 | <div id="content">
|
---|
| 6 |
|
---|
| 7 | <?php if (have_posts()) : ?>
|
---|
| 8 | <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
|
---|
| 9 |
|
---|
| 10 | <?php /* If this is a category archive */ if (is_category()) { ?>
|
---|
| 11 | <h2 class="pageTitle">Entries in the ‘<?php single_cat_title(); ?>’ Category:</h2>
|
---|
| 12 | <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
|
---|
| 13 | <h2 class="pageTitle">Entries Tagged ‘<?php single_tag_title(); ?>’:</h2>
|
---|
| 14 | <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
|
---|
| 15 | <h2 class="pageTitle">Archive for <?php the_time('F jS, Y'); ?></h2>
|
---|
| 16 | <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
|
---|
| 17 | <h2 class="pageTitle">Archive for <?php the_time('F, Y'); ?>:</h2>
|
---|
| 18 | <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
|
---|
| 19 | <h2 class="pageTitle">Archive for <?php the_time('Y'); ?>:</h2>
|
---|
| 20 | <?php /* If this is an author archive */ } elseif (is_author()) { ?>
|
---|
| 21 | <h2 class="pageTitle">Author Archive</h2>
|
---|
| 22 | <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
---|
| 23 | <h2 class="pageTitle">Blog Archives</h2>
|
---|
| 24 | <?php } ?>
|
---|
| 25 | <?php while (have_posts()) : the_post(); ?>
|
---|
| 26 |
|
---|
| 27 | <div class="post">
|
---|
| 28 | <h2 class="postTitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
|
---|
| 29 | <p class="postMeta">Posted <?php the_time('M.d, Y') ?> in <?php the_category(', '); ?></p>
|
---|
| 30 | <div class="postContent"><?php the_content('(continue reading...)'); ?></div>
|
---|
| 31 | <div class="cleared"></div>
|
---|
| 32 | <div class="postMetaBottom">
|
---|
| 33 | <p class="postMetaComments"><?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?></p>
|
---|
| 34 | <p class="postMetaTags"><?php the_tags('Tags: ', ', ', ''); ?></p>
|
---|
| 35 | <div class="cleared"></div>
|
---|
| 36 | </div>
|
---|
| 37 | </div> <!-- Closes Post -->
|
---|
| 38 |
|
---|
| 39 | <?php endwhile; ?>
|
---|
| 40 | <?php else : ?>
|
---|
| 41 | <div class="post">
|
---|
| 42 | <h2 class="postTitle">Not Found</h2>
|
---|
| 43 | <div class="postContent"><p>Sorry, but you are looking for something that isn't here.</p></div>
|
---|
| 44 | </div> <!-- Closes Post -->
|
---|
| 45 | <?php endif; ?>
|
---|
| 46 | </div> <!-- Closes Content -->
|
---|
| 47 |
|
---|
| 48 | <?php get_sidebar(); ?>
|
---|
| 49 | <div class="cleared"></div>
|
---|
| 50 | </div> <!-- Closes Main -->
|
---|
| 51 |
|
---|
| 52 | <div id="pagenav">
|
---|
| 53 | <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div>
|
---|
| 54 | <div class="alignright"><?php posts_nav_link('','Next Entries','') ?></div>
|
---|
| 55 | <div class="cleared"></div>
|
---|
| 56 | </div>
|
---|
| 57 |
|
---|
| 58 | <?php get_footer(); ?>
|
---|