From 88f73f9c472d740c84b9fb5b7516cb5b24bc06aa Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 19 Jul 2009 21:29:43 -0400 Subject: [PATCH] start work on layouts --- functions.php | 4 +++- index.php | 32 +++++++++++++++++--------------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/functions.php b/functions.php index 0a43b62..34d02c4 100644 --- a/functions.php +++ b/functions.php @@ -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(); } diff --git a/index.php b/index.php index cd80557..d160d54 100644 --- a/index.php +++ b/index.php @@ -1,26 +1,28 @@ get_nav_comics(); $post = $nav_comics['last']; -?> - - -
- comicpress_options['comic_space'] == "comic_only")) { include_partial('index-comic-post'); } ?> + ob_start(); + + if (!is_paged()) { include_partial('index-display-comic'); } - + $comic = ob_get_clean(); - get_index_blog_posts() as $post) { - include_partial('index-blog-post'); - } - ?> -
+ ob_start(); - + if (!is_paged() && ($comicpress->comicpress_options['comic_space'] == "comic_only")) { include_partial('index-comic-post'); } - \ No newline at end of file + 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'); +?> \ No newline at end of file