start work on layouts
This commit is contained in:
parent
d7a4323c42
commit
88f73f9c47
@ -50,7 +50,7 @@ function __comicpress_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function comicpress_get_header() {
|
function comicpress_init() {
|
||||||
global $post, $comicpress;
|
global $post, $comicpress;
|
||||||
|
|
||||||
if (!empty($post)) {
|
if (!empty($post)) {
|
||||||
@ -70,7 +70,9 @@ function comicpress_get_header() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$comicpress->partial_paths[] = get_template_directory() . '/partials';
|
$comicpress->partial_paths[] = get_template_directory() . '/partials';
|
||||||
|
}
|
||||||
|
|
||||||
|
function comicpress_get_header() {
|
||||||
get_header();
|
get_header();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
32
index.php
32
index.php
@ -1,26 +1,28 @@
|
|||||||
<?php
|
<?php
|
||||||
global $comicpress;
|
global $comicpress;
|
||||||
|
|
||||||
comicpress_get_header();
|
comicpress_init();
|
||||||
|
|
||||||
$nav_comics = $comicpress->get_nav_comics();
|
$nav_comics = $comicpress->get_nav_comics();
|
||||||
$post = $nav_comics['last'];
|
$post = $nav_comics['last'];
|
||||||
?>
|
|
||||||
|
|
||||||
<?php if (!is_paged()) { include_partial('index-display-comic'); } ?>
|
ob_start();
|
||||||
|
|
||||||
<div id="content" class="narrowcolumn">
|
if (!is_paged()) { include_partial('index-display-comic'); }
|
||||||
<?php if (!is_paged() && ($comicpress->comicpress_options['comic_space'] == "comic_only")) { include_partial('index-comic-post'); } ?>
|
|
||||||
|
|
||||||
<?php include_partial('index-blog-header'); ?>
|
$comic = ob_get_clean();
|
||||||
|
|
||||||
<?php
|
ob_start();
|
||||||
foreach ($comicpress->get_index_blog_posts() as $post) {
|
|
||||||
include_partial('index-blog-post');
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php get_sidebar() ?>
|
if (!is_paged() && ($comicpress->comicpress_options['comic_space'] == "comic_only")) { include_partial('index-comic-post'); }
|
||||||
|
|
||||||
<?php get_footer() ?>
|
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');
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user