100 lines
2.9 KiB
PHP
100 lines
2.9 KiB
PHP
<?php get_header(); ?>
|
|
<div id="content-wrapper-head"></div>
|
|
<div id="content-wrapper">
|
|
|
|
<?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?>
|
|
|
|
<?php if (is_cp_theme_layout('gn,rgn')) { ?>
|
|
<div id="pagewrap-right">
|
|
<?php } ?>
|
|
|
|
<?php if (is_cp_theme_layout('v3c,v')) { ?>
|
|
<div id="content" class="narrowcolumn">
|
|
<div class="column">
|
|
<?php } ?>
|
|
|
|
<?php if (!(is_paged())) { ?>
|
|
|
|
<?php if (!$comicpress_options['disable_comic_frontpage']) { ?>
|
|
<?php $wp_query ->in_the_loop = true; $comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.get_all_comic_categories_as_cat_string());
|
|
while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post() ?>
|
|
<?php if (comicpress_check_child_file('partials/displaycomic') == false) { ?>
|
|
<div id="comic-wrap">
|
|
<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>
|
|
</div>
|
|
<?php } ?>
|
|
<?php endwhile; ?>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
<?php if (is_cp_theme_layout('3c,standard,3c2r')) { ?>
|
|
<div id="subcontent-wrapper-head"></div>
|
|
<div id="subcontent-wrapper">
|
|
<?php } ?>
|
|
|
|
<?php get_sidebar('overblog'); ?>
|
|
<?php if (is_cp_theme_layout('3c,rgn')) get_sidebar('left'); ?>
|
|
|
|
<?php if (!is_cp_theme_layout('v3c,v')) { ?>
|
|
<div id="content" class="narrowcolumn">
|
|
<div class="column">
|
|
<?php } ?>
|
|
|
|
<?php if (!$comicpress_options['disable_comic_frontpage'] && !$comicpress_options['disable_comic_blog_frontpage'] && !is_paged() ) { ?>
|
|
<?php while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post();
|
|
display_comic_post();
|
|
$comicFrontPage->is_single = true;
|
|
comments_template();
|
|
endwhile; ?>
|
|
<?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'); ?>
|
|
|
|
<?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]) {
|
|
global $blog_postcount;
|
|
if (!$comicpress_options['split_column_in_two']) {
|
|
$blog_query = 'showposts='.$blog_postcount.'&cat="-'.exclude_comic_categories().'"&paged='.$paged;
|
|
|
|
$posts = query_posts($blog_query);
|
|
if (have_posts()) { ?>
|
|
<div class="blogindex-head"></div>
|
|
<div class="blogindex">
|
|
<?php while (have_posts()) : the_post();
|
|
|
|
display_blog_post();
|
|
|
|
endwhile; ?>
|
|
</div>
|
|
<div class="blogindex-foot"></div>
|
|
<?php }
|
|
comicpress_pagination();
|
|
} else {
|
|
comicpress_dual_columns();
|
|
}
|
|
} ?>
|
|
|
|
<?php get_sidebar('underblog'); ?>
|
|
|
|
<?php include(get_template_directory() . '/layout-foot.php'); ?>
|
|
<?php get_footer() ?>
|