comicpress-2.8/index.php

63 lines
1.7 KiB
PHP
Raw Normal View History

<?php get_header(); ?>
<?php include(get_template_directory() . '/layout-head.php'); ?>
<?php if (!$comicpress_options['disable_comic_frontpage'] && !$comicpress_options['disable_comic_blog_frontpage'] && !is_paged() ) {
Protect();
global $frontpage_postnum;
if (isset($frontpage_postnum)) {
$post = & get_post( $frontpage_postnum );
} else {
$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()) {
comicpress_display_post();
}
Restore();
UnProtect();
wp_reset_query();
?>
<?php } ?>
<?php if (function_exists('the_project_wonderful_ad')) {
the_project_wonderful_ad('blog');
} ?>
2009-11-21 18:42:53 +00:00
<?php get_sidebar('blog'); ?>
<?php if (!$comicpress_options['disable_blogheader']) { ?>
<div id="blogheader"><!-- This area can be used for a heading above your main page blog posts --></div>
<?php } ?>
<?php if (!$comicpress_options['disable_blog_frontpage']) {
Protect();
if (!$comicpress_options['split_column_in_two']) {
$blog_query = 'showposts='.$comicpress_options['blog_postcount'].'&cat="-'.exclude_comic_categories().'"&paged='.$paged;
2009-11-21 18:42:53 +00:00
$posts = query_posts($blog_query);
if (have_posts()) { ?>
<div class="blogindex-head"></div>
<div class="blogindex">
<?php while (have_posts()) : the_post();
2009-11-21 18:42:53 +00:00
comicpress_display_post();
2009-11-21 18:42:53 +00:00
endwhile; ?>
</div>
<div class="blogindex-foot"></div>
<?php }
comicpress_pagination();
2009-11-20 05:02:23 +00:00
} else {
comicpress_dual_columns();
}
Restore();
UnProtect();
wp_reset_query();
} ?>
<?php get_sidebar('underblog'); ?>
<?php include(get_template_directory() . '/layout-foot.php'); ?>
<?php get_footer() ?>