comicpress-core/single.php

44 lines
1014 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-12 23:31:47 +00:00
get_header();
if (have_posts()) {
the_post();
if (in_comic_category()) { ?>
<div id="comic-head"></div>
<div id="comic"><?php do_action('show_comic'); ?></div>
<div id="comic-foot"></div>
<?php }
}
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()) {
include(dirname(__FILE__) . '/partials/single-comic-post.inc');
} else {
include(dirname(__FILE_) . '/partials/single-blog-post.inc');
}
2009-07-12 23:31:47 +00:00
comments_template();
}
} else { ?>
<div class="post-head"></div>
<div class="post">
<p>Sorry, no posts matched your criteria.</p>
<br class="clear-margins" />
</div>
<div class="post-foot"></div>
2009-07-12 23:31:47 +00:00
<?php }
?>
2009-06-13 11:58:02 +00:00
</div>
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
<?php get_footer() ?>