1
|
1 |
<?php get_header() ?> |
|
2 |
<div id="contentwrap"> |
|
3 |
<div class="inside"> |
|
4 |
<?php if(have_posts()): ?> |
|
5 |
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> |
|
6 |
<?php /* If this is a category archive */ if (is_category()) { ?> |
|
7 |
<h2 class="pagetitle">Archive for the '<?php single_cat_title(); ?>' Category</h2> |
|
8 |
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> |
|
9 |
<h2 class="pagetitle">Posts Tagged '<?php single_tag_title(); ?>'</h2> |
|
10 |
<?php /* If this is a daily archive */ } elseif (is_day()) { ?> |
|
11 |
<h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2> |
|
12 |
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?> |
|
13 |
<h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2> |
|
14 |
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?> |
|
15 |
<h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2> |
|
16 |
<?php /* If this is an author archive */ } elseif (is_author()) { ?> |
|
17 |
<h2 class="pagetitle">Author Archive</h2> |
|
18 |
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> |
|
19 |
<h2 class="pagetitle">Blog Archives</h2> |
|
20 |
<?php } ?> |
|
21 |
<?php while(have_posts()) : the_post(); ?> |
|
22 |
<div class="post single" id="post-<?php the_ID(); ?>"><div class="post-top"> |
|
23 |
<h3 class="title"><?php the_title(); ?></h3> |
|
24 |
<div class="meta icon"> |
|
25 |
Posted by <?php the_author() ?> on <?php the_time('F j Y') ?> <a href="<?php the_permalink() ?>#comment"><?php comments_number('Add Comments','one Commented','% Commented'); ?></a> |
|
26 |
</div> |
|
27 |
<div class="entry"> |
|
28 |
<?php the_excerpt(); ?> |
|
29 |
</div> |
|
30 |
</div> |
|
31 |
<div class="post-bottom"></div> |
|
32 |
</div> |
|
33 |
<?php endwhile ?> |
|
34 |
<?php if(function_exists('wp_pagenavi')) : wp_pagenavi(); ?> |
|
35 |
<div class="clearleft"></div> |
|
36 |
<?php else : ?> |
|
37 |
<div class="navigation"> |
|
38 |
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> |
|
39 |
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> |
|
40 |
</div> |
|
41 |
<?php endif ?> |
|
42 |
<?php else: ?> |
|
43 |
<h2 class="center">Not Found</h2> |
|
44 |
<p class="center">Sorry, but you are looking for something that isn't here.</p> |
|
45 |
<?php endif ?> |
|
46 |
</div> |
|
47 |
</div> |
|
48 |
<?php get_sidebar(); get_footer(); ?> |