comicpress-core/index.php

32 lines
757 B
PHP

<?php
global $comicpress, $post, $nav_comics;
comicpress_init();
$nav_comics = $comicpress->get_nav_comics();
$t = $post;
$post = $nav_comics['last'];
setup_postdata($post);
ob_start();
if (!is_paged()) { include_partial('index-display-comic'); }
$comic = ob_get_clean();
ob_start();
if (!is_paged() && ($comicpress->comicpress_options['comic_space'] == "comic_only")) { include_partial('index-comic-post'); }
include_partial('index-blog-header');
foreach ($comicpress->get_index_blog_posts() as $post) {
setup_postdata($post);
include_partial('index-blog-post');
}
$content = ob_get_clean();
$post = $t;
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
?>