comicpress-2.8/layout-head.php

66 lines
1.6 KiB
PHP

<?php global $comicpress_options; ?>
<?php if (comicpress_check_child_file('layout-head') == false) { ?>
<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('v3cr')) { ?>
<div id="pagewrap-left">
<?php } ?>
<?php if (is_cp_theme_layout('v,v3c')) { ?>
<div id="content" class="narrowcolumn">
<?php get_sidebar('overblog'); ?>
<?php } ?>
<?php
if (is_home()) {
if (!$comicpress_options['disable_comic_frontpage']) {
Protect();
$comic_query = 'showposts=1&cat='.get_all_comic_categories_as_cat_string();
query_posts($comic_query);
if (have_posts()) {
while (have_posts()) : the_post();
$temp_single = $wp_query->is_single;
$wp_query->is_single = true;
comicpress_display_comic_area();
$wp_query->is_single = $temp_single;
$temp_single = null;
endwhile;
}
Restore();
UnProtect();
wp_reset_query();
}
} else {
if (is_single() && in_comic_category()) {
comicpress_display_comic_area();
}
}
?>
<?php if (is_cp_theme_layout('3c,standard,3c2r')) { ?>
<div id="subcontent-wrapper-head"></div>
<div id="subcontent-wrapper">
<?php } ?>
<?php if (is_cp_theme_layout('3c,rgn')) get_sidebar('left'); ?>
<?php if (is_cp_theme_layout('v3cr')) { ?>
<div id="subcontent-wrapper-head"></div>
<div id="subcontent-wrapper">
<?php } ?>
<?php if (!is_cp_theme_layout('v3c,v')) { ?>
<div id="content" class="narrowcolumn">
<?php get_sidebar('overblog'); ?>
<?php } ?>
<?php } ?>