comicpress-core/search.php

29 lines
679 B
PHP
Raw Normal View History

2009-07-24 17:34:57 +00:00
<?php
global $comicpress, $query_string;
2009-06-13 11:58:02 +00:00
2009-07-24 17:34:57 +00:00
comicpress_init();
2009-06-13 11:58:02 +00:00
2009-07-24 17:34:57 +00:00
include_partial('search-results-count');
if (have_posts()) {
query_posts($query_string . '&order=asc');
2009-06-30 23:53:35 +00:00
2009-07-24 17:34:57 +00:00
while (have_posts()) {
the_post();
if (in_comic_category()) {
include_partial('search-comic-post', 'archive-comic-post');
} else {
include_partial('search-blog-post', 'archive-blog-post');
2009-07-15 22:36:40 +00:00
}
}
2009-07-24 17:34:57 +00:00
include_partial('search-page-nav', 'archive-page-nav');
} else {
include_partial('search-not-found');
}
2009-06-13 11:58:02 +00:00
2009-07-24 17:34:57 +00:00
$content = ob_get_clean();
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
?>