comicpress-theme-core/search.php

29 lines
644 B
PHP
Raw Normal View History

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-15 22:36:40 +00:00
<?php
2009-07-16 01:34:34 +00:00
include_partial('search-results-count');
2009-06-13 11:58:02 +00:00
2009-07-15 22:36:40 +00:00
if (have_posts()) {
query_posts($query_string . '&order=asc');
2009-06-30 23:53:35 +00:00
2009-07-15 22:36:40 +00:00
while (have_posts()) {
the_post();
2009-06-30 23:53:35 +00:00
2009-07-15 22:36:40 +00:00
if (in_comic_category()) {
2009-07-16 01:34:34 +00:00
include_partial('search-comic-post', 'archive-comic-post');
2009-07-15 22:36:40 +00:00
} else {
2009-07-16 01:34:34 +00:00
include_partial('search-blog-post', 'archive-blog-post');
2009-07-15 22:36:40 +00:00
}
}
2009-07-16 01:34:34 +00:00
include_partial('search-page-nav', 'archive-page-nav');
2009-07-15 22:36:40 +00:00
} else {
2009-07-16 01:34:34 +00:00
include_partial('search-not-found');
2009-07-15 22:36:40 +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() ?>