2009-07-25 17:15:13 +00:00
|
|
|
<?php
|
|
|
|
global $comicpress, $nav_comics;
|
2009-06-13 11:58:02 +00:00
|
|
|
|
2009-07-29 02:38:20 +00:00
|
|
|
comicpress_init();
|
2009-07-12 23:31:47 +00:00
|
|
|
|
2009-07-25 17:15:13 +00:00
|
|
|
ob_start();
|
|
|
|
|
2009-07-12 23:31:47 +00:00
|
|
|
if (have_posts()) {
|
|
|
|
the_post();
|
2009-07-16 01:55:28 +00:00
|
|
|
if (in_comic_category()) { include_partial('single-display-comic'); }
|
2009-07-12 23:31:47 +00:00
|
|
|
}
|
|
|
|
rewind_posts();
|
2009-07-25 17:15:13 +00:00
|
|
|
|
|
|
|
$comic = ob_get_clean();
|
2009-07-29 02:38:20 +00:00
|
|
|
|
2009-07-25 17:15:13 +00:00
|
|
|
ob_start();
|
2009-07-12 23:31:47 +00:00
|
|
|
|
|
|
|
$nav_comics = $comicpress->get_nav_comics();
|
2009-07-25 17:15:13 +00:00
|
|
|
|
|
|
|
if (have_posts()) {
|
|
|
|
while (have_posts()) { the_post();
|
|
|
|
if (in_comic_category()) {
|
|
|
|
if ($comicpress->comicpress_options['comic_space'] == "comic_only") {
|
|
|
|
include_partial('single-comic-post');
|
2009-07-12 23:39:38 +00:00
|
|
|
}
|
2009-07-25 17:15:13 +00:00
|
|
|
} else {
|
|
|
|
include_partial('single-blog-post');
|
2009-07-12 23:39:38 +00:00
|
|
|
}
|
2009-07-25 17:15:13 +00:00
|
|
|
|
|
|
|
comments_template();
|
2009-07-13 23:06:32 +00:00
|
|
|
}
|
2009-07-25 17:15:13 +00:00
|
|
|
} else {
|
|
|
|
include_partial('single-no-matches');
|
|
|
|
}
|
|
|
|
|
|
|
|
$content = ob_get_clean();
|
|
|
|
|
|
|
|
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
|
|
|
|
?>
|