comicpress-2.8/blog.php

65 lines
1.3 KiB
PHP
Raw Normal View History

<?php
/*
Template Name: Blog
*/
?>
<?php get_header(); ?>
<?php if (is_cp_theme_style('gn,v3c,v')) { ?>
<div id="content-wrapper">
<?php } ?>
<?php if (is_cp_theme_style('gn,v3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_style('v3c,v')) { ?>
<div id="content" class="narrowcolumn">
<div class="column">
<?php } ?>
<?php if (is_cp_theme_style('gn')) { ?>
<div id="pagewrap-right">
<?php } ?>
<?php if (is_cp_theme_style('3c,standard')) { ?>
<div id="content-wrapper">
<?php } ?>
<?php get_sidebar('overblog'); ?>
<?php if (is_cp_theme_style('3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_style('gn,standard,3c')) { ?>
<div id="content" class="narrowcolumn">
<div class="column">
<?php }
if (have_posts()):
$blog_query = '&cat=-"'.exclude_comic_categories().'"&paged='.$paged;
$posts = query_posts($blog_query);
while (have_posts()) : the_post();
display_blog_post();
endwhile;
comicpress_pagination(); ?>
<?php endif; ?>
<?php get_sidebar('underblog'); ?>
</div>
</div>
<?php
if (is_cp_theme_style('3c,v3c,gn,standard,v')) {
get_sidebar('right'); ?>
<?php } ?>
<?php if (is_cp_theme_style('gn')) { ?>
</div>
<?php } ?>
<div class="clear"></div>
</div> <!-- end pageright-wrapper / content-wrapper -->
2009-08-21 17:45:23 +00:00
<?php get_footer() ?>