comicpress-core/index.php

34 lines
820 B
PHP
Raw Normal View History

<?php
2009-07-23 22:25:02 +00:00
global $comicpress, $post, $nav_comics;
2009-06-13 11:58:02 +00:00
2009-07-20 01:29:43 +00:00
comicpress_init();
2009-07-12 23:31:47 +00:00
$nav_comics = $comicpress->get_nav_comics();
2009-07-20 22:27:05 +00:00
$t = $post;
2009-07-12 23:31:47 +00:00
$post = $nav_comics['last'];
2009-07-23 22:25:02 +00:00
setup_postdata($post);
2009-06-13 11:58:02 +00:00
2009-07-20 01:29:43 +00:00
ob_start();
2009-07-23 22:25:02 +00:00
2009-07-20 01:29:43 +00:00
if (!is_paged()) { include_partial('index-display-comic'); }
2009-07-13 23:06:32 +00:00
2009-07-20 01:29:43 +00:00
$comic = ob_get_clean();
2009-07-13 23:06:32 +00:00
2009-07-20 01:29:43 +00:00
ob_start();
2009-06-13 11:58:02 +00:00
2009-07-20 01:29:43 +00:00
if (!is_paged() && ($comicpress->comicpress_options['comic_space'] == "comic_only")) { include_partial('index-comic-post'); }
2009-06-13 11:58:02 +00:00
2009-07-20 01:29:43 +00:00
include_partial('index-blog-header');
$index_posts_query = $comicpress->get_index_blog_posts_query();
while ($index_posts_query->have_posts()) {
$index_posts_query->the_post();
2009-07-20 01:29:43 +00:00
include_partial('index-blog-post');
}
$content = ob_get_clean();
2009-07-20 22:27:05 +00:00
$post = $t;
2009-07-23 22:25:02 +00:00
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
2009-07-20 01:29:43 +00:00
?>