comicpress-core/single.php

37 lines
874 B
PHP
Raw Normal View History

2009-07-12 23:31:47 +00:00
<?php
global $comicpress;
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
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();
$nav_comics = $comicpress->get_nav_comics();
?>
2009-06-13 11:58:02 +00:00
2009-07-01 00:01:05 +00:00
<div id="content" class="narrowcolumn">
<?php
if (have_posts()) {
while (have_posts()) { the_post();
if (in_comic_category()) {
2009-07-16 01:55:28 +00:00
if ($comicpress->comicpress_options['comic_space'] == "comic_only") {
2009-07-16 01:34:34 +00:00
include(get_template_directory() . '/partials/single-comic-post.inc');
}
} else {
2009-07-15 21:10:13 +00:00
include(get_template_directory() . '/partials/single-blog-post.inc');
}
2009-07-12 23:31:47 +00:00
comments_template();
}
2009-07-13 23:06:32 +00:00
} else {
2009-07-15 21:10:13 +00:00
include(get_template_directory() . '/partials/single-no-matches.inc');
2009-07-13 23:06:32 +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() ?>