comicpress-theme-core/single.php

37 lines
806 B
PHP
Raw Normal View History

<?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
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();
2009-07-29 02:38:20 +00:00
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');
}
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']);
?>