32 lines
714 B
PHP
32 lines
714 B
PHP
<?php
|
|
global $comicpres, $post, $posts;
|
|
|
|
comicpress_init();
|
|
|
|
ob_start();
|
|
|
|
if (have_posts()) {
|
|
include_partial('archive-header');
|
|
|
|
// why can't wordpress allow for post date asc sorting out of the box...
|
|
|
|
query_posts($query_string . '&order=asc');
|
|
while (have_posts()) {
|
|
the_post();
|
|
|
|
if (in_comic_category()) {
|
|
include_partial('archive-comic-post');
|
|
} else {
|
|
include_partial('archive-blog-post');
|
|
}
|
|
}
|
|
|
|
include_partial('archive-page-nav');
|
|
} else {
|
|
include_partial('archive-not-found');
|
|
}
|
|
|
|
$content = ob_get_clean();
|
|
|
|
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
|
|
?>
|