2009-08-21 19:29:45 +00:00
|
|
|
<?php get_header(); ?>
|
|
|
|
|
2009-09-15 10:23:54 +00:00
|
|
|
<div id="content-wrapper-top"></div>
|
2009-09-03 01:12:30 +00:00
|
|
|
<div id="content-wrapper">
|
|
|
|
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-09-28 21:49:51 +00:00
|
|
|
<?php if (is_cp_theme_layout('gn,rgn')) { ?>
|
2009-09-15 10:23:54 +00:00
|
|
|
<div id="pagewrap-right">
|
|
|
|
<?php } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php if (is_cp_theme_layout('v3c,v')) { ?>
|
|
|
|
<div id="content" class="narrowcolumn">
|
|
|
|
<div class="column">
|
|
|
|
<?php } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-09-03 01:12:30 +00:00
|
|
|
<?php while (have_posts()) : the_post();
|
|
|
|
if (in_comic_category()) { ?>
|
2009-10-21 01:14:59 +00:00
|
|
|
<?php if (comicpress_check_themepack_file('displaycomic') == false) { ?>
|
|
|
|
<div id="comic-wrap">
|
2009-09-29 23:12:37 +00:00
|
|
|
<div id="comic-head"><?php get_sidebar('over'); ?></div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<?php get_sidebar('comicleft'); ?>
|
|
|
|
<div id="comic"><?php display_comic(); ?></div>
|
|
|
|
<?php get_sidebar('comicright'); ?>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<div id="comic-foot"><?php get_sidebar('under'); ?></div>
|
2009-10-21 01:14:59 +00:00
|
|
|
</div>
|
2009-09-29 23:12:37 +00:00
|
|
|
<?php } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
<?php } endwhile; ?>
|
2009-09-17 18:13:28 +00:00
|
|
|
|
2009-10-06 01:18:30 +00:00
|
|
|
<?php if (is_cp_theme_layout('3c,standard')) { ?>
|
2009-09-17 22:45:30 +00:00
|
|
|
<div id="subcontent-wrapper-top"></div>
|
|
|
|
<div id="subcontent-wrapper">
|
2009-09-17 18:13:28 +00:00
|
|
|
<?php } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
|
|
|
<?php get_sidebar('overblog'); ?>
|
2009-09-28 21:49:51 +00:00
|
|
|
<?php if (is_cp_theme_layout('3c,rgn')) get_sidebar('left'); ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php if (!is_cp_theme_layout('v3c,v')) { ?>
|
|
|
|
<div id="content" class="narrowcolumn">
|
|
|
|
<div class="column">
|
2009-08-21 19:29:45 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php if (function_exists('the_project_wonderful_ad')) { ?>
|
|
|
|
<div class="blogpwad">
|
|
|
|
<center>
|
|
|
|
<?php the_project_wonderful_ad('blog'); ?>
|
|
|
|
</center>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
<?php get_sidebar('blog'); ?>
|
2009-09-29 23:12:37 +00:00
|
|
|
<?php if (have_posts()) : while (have_posts()) : the_post();
|
2009-08-21 19:29:45 +00:00
|
|
|
if (in_comic_category()) {
|
2009-08-29 21:36:45 +00:00
|
|
|
global $disable_comic_blog_frontpage;
|
|
|
|
if ($disable_comic_blog_frontpage != 'yes') {
|
|
|
|
display_comic_post();
|
2009-09-29 23:12:37 +00:00
|
|
|
$cur_date = mysql2date('Y-m-j', $post->post_date);
|
|
|
|
$next_comic = get_next_comic();
|
|
|
|
$next_comic = (array)$next_comic;
|
|
|
|
$next_date = mysql2date('Y-m-j', $next_comic['post_date']);
|
|
|
|
$blog_query = 'showposts='.$blog_postcount.'&order=asc&cat=-'.exclude_comic_categories();
|
2009-08-29 21:36:45 +00:00
|
|
|
}
|
2009-08-21 19:29:45 +00:00
|
|
|
} else {
|
|
|
|
display_blog_post();
|
|
|
|
}
|
2009-09-29 23:12:37 +00:00
|
|
|
endwhile;
|
|
|
|
|
|
|
|
global $blogposts_with_comic;
|
|
|
|
|
|
|
|
if ($blogposts_with_comic == 'yes') {
|
|
|
|
|
|
|
|
$temppost = $post;
|
|
|
|
$temp_query = $wp_query;
|
|
|
|
|
|
|
|
if (in_comic_category() && !empty($blog_query)) {
|
|
|
|
function filter_where($where = '') {
|
|
|
|
global $cur_date, $next_date;
|
|
|
|
$where .= " AND post_date >= '".$cur_date."' AND post_date < '".$next_date."'";
|
|
|
|
return $where;
|
|
|
|
}
|
|
|
|
add_filter('posts_where', 'filter_where');
|
|
|
|
$posts = query_posts($blog_query);
|
|
|
|
if (have_posts()) { while (have_posts()) : the_post();
|
|
|
|
display_blog_post();
|
|
|
|
endwhile; }
|
|
|
|
}
|
|
|
|
$post = $temppost; $wp_query = $temp_query; $temppost = null; $temp_query = null;
|
|
|
|
} ?>
|
|
|
|
|
|
|
|
<?php comments_template('', true); ?>
|
|
|
|
<?php get_sidebar('underblog'); ?>
|
|
|
|
<?php else: ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-09-19 10:11:37 +00:00
|
|
|
<div class="<?php comicpress_post_class(); ?>">
|
2009-08-21 19:29:45 +00:00
|
|
|
<div class="post-head"></div>
|
|
|
|
<div class="post">
|
2009-10-05 06:08:01 +00:00
|
|
|
<p><?php _e('Sorry, no posts matched your criteria.','comicpress'); ?></p>
|
2009-08-21 19:29:45 +00:00
|
|
|
<br class="clear-margins" />
|
|
|
|
</div>
|
|
|
|
<div class="post-foot"></div>
|
2009-09-12 15:28:32 +00:00
|
|
|
</div>
|
2009-09-29 23:12:37 +00:00
|
|
|
|
2009-08-21 19:29:45 +00:00
|
|
|
<?php endif; ?>
|
2009-09-03 01:12:30 +00:00
|
|
|
|
|
|
|
</div>
|
2009-08-21 19:29:45 +00:00
|
|
|
</div>
|
|
|
|
|
2009-09-17 22:45:30 +00:00
|
|
|
<?php include(get_template_directory() . '/layout-foot.php'); ?>
|
2009-08-21 17:45:23 +00:00
|
|
|
<?php get_footer() ?>
|