comicpress-core/single.php

39 lines
848 B
PHP
Raw Normal View History

<?php
global $comicpress, $nav_comics;
2009-06-13 11:58:02 +00:00
2009-07-16 01:55:28 +00:00
comicpress_get_header();
2009-07-12 23:31:47 +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();
$comic = ob_get_clean();
ob_start();
2009-07-12 23:31:47 +00:00
$nav_comics = $comicpress->get_nav_comics();
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');
}
} else {
include_partial('single-blog-post');
}
comments_template();
2009-07-13 23:06:32 +00:00
}
} else {
include_partial('single-no-matches');
}
$content = ob_get_clean();
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
?>