start work on layouts

This commit is contained in:
John Bintz 2009-07-19 21:29:43 -04:00
parent d7a4323c42
commit 88f73f9c47
2 changed files with 20 additions and 16 deletions

View File

@ -50,7 +50,7 @@ function __comicpress_init() {
}
}
function comicpress_get_header() {
function comicpress_init() {
global $post, $comicpress;
if (!empty($post)) {
@ -70,7 +70,9 @@ function comicpress_get_header() {
}
$comicpress->partial_paths[] = get_template_directory() . '/partials';
}
function comicpress_get_header() {
get_header();
}

View File

@ -1,26 +1,28 @@
<?php
global $comicpress;
comicpress_get_header();
comicpress_init();
$nav_comics = $comicpress->get_nav_comics();
$post = $nav_comics['last'];
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) {
include_partial('index-blog-post');
}
$content = ob_get_clean();
include(get_template_directory() . '/layouts/classic.php');
?>
<?php if (!is_paged()) { include_partial('index-display-comic'); } ?>
<div id="content" class="narrowcolumn">
<?php if (!is_paged() && ($comicpress->comicpress_options['comic_space'] == "comic_only")) { include_partial('index-comic-post'); } ?>
<?php include_partial('index-blog-header'); ?>
<?php
foreach ($comicpress->get_index_blog_posts() as $post) {
include_partial('index-blog-post');
}
?>
</div>
<?php get_sidebar() ?>
<?php get_footer() ?>