Пример #1
0
<?php

/*
Template Name: Blog
*/
get_header();
include get_template_directory() . '/layout-head.php';
?>
	
	<?php 
if (!$comicpress_options['split_column_in_two']) {
    $blog_query = 'showposts=' . $comicpress_options['blog_postcount'] . '&cat="-' . exclude_comic_categories() . '"&paged=' . $paged;
    $posts = query_posts($blog_query);
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            comicpress_display_post();
        }
    }
    comicpress_pagination();
} else {
    comicpress_dual_columns();
}
get_sidebar('underblog');
?>

<?php 
include get_template_directory() . '/layout-foot.php';
get_footer();
Пример #2
0
                        }
                        return $where;
                    }
                    add_filter('posts_where', 'filter_where');
                    $posts =& query_posts($blog_query);
                    if (have_posts()) {
                        while (have_posts()) {
                            the_post();
                            comicpress_display_post();
                            comments_template('', true);
                        }
                    }
                }
                UnProtect();
            } else {
                comicpress_dual_columns(true);
            }
        }
    }
    if (comicpress_in_comic_category() && comicpress_themeinfo('enable_comments_when_comic_blog_disabled') && comicpress_themeinfo('disable_comic_blog_single')) {
        comments_template('', true);
    }
} else {
    ?>
	<div <?php 
    post_class();
    ?>
>
		<?php 
    if (comicpress_themeinfo('enable_caps')) {
        ?>