2009-10-24 14:47:31 +00:00
|
|
|
<?php get_header(); ?>
|
2009-12-22 22:20:11 +00:00
|
|
|
<?php include(get_template_directory() . '/layout-head.php'); ?>
|
|
|
|
|
|
|
|
<?php if (!$comicpress_options['disable_comic_frontpage'] && !$comicpress_options['disable_comic_blog_frontpage'] && !is_paged() ) {
|
|
|
|
Protect();
|
|
|
|
$comic_query = '&showposts=1&cat='.get_all_comic_categories_as_cat_string();
|
|
|
|
$posts = query_posts($comic_query);
|
|
|
|
$wp_query->is_archive = false;
|
|
|
|
if (have_posts()) {
|
|
|
|
while (have_posts()) : the_post();
|
2009-12-24 23:01:47 +00:00
|
|
|
comicpress_display_post();
|
2009-12-22 22:20:11 +00:00
|
|
|
endwhile;
|
|
|
|
}
|
|
|
|
Restore();
|
2009-12-25 23:01:48 +00:00
|
|
|
UnProtect();
|
|
|
|
wp_reset_query();
|
|
|
|
?>
|
2009-11-28 08:38:44 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
2009-12-24 15:35:55 +00:00
|
|
|
<?php if (function_exists('the_project_wonderful_ad')) {
|
|
|
|
the_project_wonderful_ad('blog');
|
|
|
|
} ?>
|
2009-11-21 18:42:53 +00:00
|
|
|
|
2009-11-28 08:38:44 +00:00
|
|
|
<?php get_sidebar('blog'); ?>
|
2009-10-06 01:18:30 +00:00
|
|
|
|
2009-11-22 18:06:19 +00:00
|
|
|
<?php if (!$comicpress_options['disable_blogheader']) { ?>
|
2009-10-06 01:18:30 +00:00
|
|
|
<div id="blogheader"><!-- This area can be used for a heading above your main page blog posts --></div>
|
2009-10-24 14:47:31 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
2009-12-25 02:56:00 +00:00
|
|
|
<?php if (!$comicpress_options['disable_blog_frontpage']) {
|
2009-12-22 22:20:11 +00:00
|
|
|
Protect();
|
2009-11-22 18:06:19 +00:00
|
|
|
if (!$comicpress_options['split_column_in_two']) {
|
2009-12-31 23:32:17 +00:00
|
|
|
$blog_query = 'showposts='.$comicpress_options['blog_postcount'].'&cat="-'.exclude_comic_categories().'"&paged='.$paged;
|
2009-11-21 18:42:53 +00:00
|
|
|
|
2009-11-06 02:56:36 +00:00
|
|
|
$posts = query_posts($blog_query);
|
2009-11-22 18:06:19 +00:00
|
|
|
if (have_posts()) { ?>
|
2009-10-21 01:14:59 +00:00
|
|
|
<div class="blogindex-head"></div>
|
|
|
|
<div class="blogindex">
|
2009-11-06 02:56:36 +00:00
|
|
|
<?php while (have_posts()) : the_post();
|
2009-11-21 18:42:53 +00:00
|
|
|
|
2009-12-24 23:01:47 +00:00
|
|
|
comicpress_display_post();
|
2009-11-21 18:42:53 +00:00
|
|
|
|
2009-10-21 01:14:59 +00:00
|
|
|
endwhile; ?>
|
|
|
|
</div>
|
|
|
|
<div class="blogindex-foot"></div>
|
2009-11-06 02:56:36 +00:00
|
|
|
<?php }
|
|
|
|
comicpress_pagination();
|
2009-11-20 05:02:23 +00:00
|
|
|
} else {
|
2009-11-20 06:03:02 +00:00
|
|
|
comicpress_dual_columns();
|
2009-12-22 22:20:11 +00:00
|
|
|
}
|
|
|
|
Restore();
|
|
|
|
UnProtect();
|
2009-12-25 23:01:48 +00:00
|
|
|
wp_reset_query();
|
2009-08-28 09:24:22 +00:00
|
|
|
} ?>
|
2009-10-07 09:27:51 +00:00
|
|
|
|
2009-10-30 20:32:01 +00:00
|
|
|
<?php get_sidebar('underblog'); ?>
|
|
|
|
|
2009-09-17 22:45:30 +00:00
|
|
|
<?php include(get_template_directory() . '/layout-foot.php'); ?>
|
2009-11-06 02:56:36 +00:00
|
|
|
<?php get_footer() ?>
|