2009-06-13 11:58:02 +00:00
|
|
|
<?php get_header() ?>
|
|
|
|
|
2009-07-01 00:02:33 +00:00
|
|
|
<div id="content" class="archive">
|
2009-07-13 09:18:25 +00:00
|
|
|
<?php if (have_posts()) {
|
2009-07-16 01:34:34 +00:00
|
|
|
include_partial('archive-header');
|
2009-07-13 09:18:25 +00:00
|
|
|
|
|
|
|
// why can't wordpress allow for post date asc sorting out of the box...
|
|
|
|
|
2009-07-15 22:36:40 +00:00
|
|
|
query_posts($query_string . '&order=asc');
|
2009-07-16 01:55:28 +00:00
|
|
|
while (have_posts()) {
|
2009-07-13 09:18:25 +00:00
|
|
|
the_post();
|
|
|
|
|
|
|
|
if (in_comic_category()) {
|
2009-07-16 01:34:34 +00:00
|
|
|
include_partial('archive-comic-post');
|
2009-07-13 09:18:25 +00:00
|
|
|
} else {
|
2009-07-16 01:34:34 +00:00
|
|
|
include_partial('archive-blog-post');
|
2009-07-13 09:18:25 +00:00
|
|
|
}
|
2009-07-13 23:06:32 +00:00
|
|
|
}
|
2009-06-13 11:58:02 +00:00
|
|
|
|
2009-07-16 01:34:34 +00:00
|
|
|
include_partial('archive-page-nav');
|
2009-07-15 21:11:35 +00:00
|
|
|
} else {
|
2009-07-16 01:34:34 +00:00
|
|
|
include_partial('archive-not-found');
|
2009-07-15 21:11:35 +00:00
|
|
|
} ?>
|
2009-06-13 11:58:02 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2009-07-19 23:27:09 +00:00
|
|
|
<?php get_sidebar() ?>
|
2009-06-13 11:58:02 +00:00
|
|
|
|
|
|
|
<?php get_footer() ?>
|