2009-12-22 22:20:11 +00:00
|
|
|
<?php global $comicpress_options; ?>
|
2009-11-06 02:56:36 +00:00
|
|
|
<?php if (comicpress_check_child_file('layout-head') == false) { ?>
|
2009-11-06 17:31:08 +00:00
|
|
|
|
2009-11-02 12:23:41 +00:00
|
|
|
<div id="content-wrapper-head"></div>
|
2009-09-17 22:45:30 +00:00
|
|
|
<div id="content-wrapper">
|
|
|
|
|
|
|
|
<?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?>
|
|
|
|
|
2009-09-28 21:49:51 +00:00
|
|
|
<?php if (is_cp_theme_layout('gn,rgn')) { ?>
|
2009-09-17 22:45:30 +00:00
|
|
|
<div id="pagewrap-right">
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-12-06 00:22:08 +00:00
|
|
|
<?php if (is_cp_theme_layout('v3cr')) { ?>
|
|
|
|
<div id="pagewrap-left">
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-12-25 20:06:24 +00:00
|
|
|
<?php if (is_cp_theme_layout('v,v3c')) { ?>
|
2009-12-25 06:06:20 +00:00
|
|
|
<div id="content" class="narrowcolumn">
|
|
|
|
<div class="column">
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-12-22 22:20:11 +00:00
|
|
|
<?php
|
|
|
|
if (!$comicpress_options['disable_comic_frontpage'] && is_home()) {
|
2009-12-25 20:43:32 +00:00
|
|
|
Protect();
|
2010-01-19 02:06:38 +00:00
|
|
|
$comic_query = 'showposts=1&cat='.get_all_comic_categories_as_cat_string();
|
2009-12-22 22:20:11 +00:00
|
|
|
$posts = query_posts($comic_query);
|
|
|
|
if (have_posts()) {
|
|
|
|
while (have_posts()) : the_post();
|
2010-01-10 23:13:35 +00:00
|
|
|
global $frontpage_postnum;
|
|
|
|
$frontpage_postnum = $post->ID;
|
2009-12-22 22:20:11 +00:00
|
|
|
$wp_query->is_single = true;
|
new function comicpress_display_comic_image() which you can pass a string "archive,rss,mini,comic" whatever order you want to try first, as well as can pass boolean use thumbnail which will check if the post has a thumbnail image if so use that and bypass the other thumbs
echo comicpress_display_comic_image("rss,comic", true);
is a valid usage, will check if there's a thumbnail for the post and use that, otherwise check the rss directory for an image, if can't find that, default to the comic directory.
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
2010-01-02 18:49:59 +00:00
|
|
|
comicpress_display_comic_area();
|
2009-12-22 22:20:11 +00:00
|
|
|
endwhile;
|
|
|
|
}
|
2009-12-25 20:43:32 +00:00
|
|
|
Restore();
|
|
|
|
UnProtect();
|
2009-12-25 23:01:48 +00:00
|
|
|
wp_reset_query();
|
2009-12-22 22:20:11 +00:00
|
|
|
}
|
|
|
|
if (is_single() & in_comic_category()) {
|
new function comicpress_display_comic_image() which you can pass a string "archive,rss,mini,comic" whatever order you want to try first, as well as can pass boolean use thumbnail which will check if the post has a thumbnail image if so use that and bypass the other thumbs
echo comicpress_display_comic_image("rss,comic", true);
is a valid usage, will check if there's a thumbnail for the post and use that, otherwise check the rss directory for an image, if can't find that, default to the comic directory.
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
2010-01-02 18:49:59 +00:00
|
|
|
comicpress_display_comic_area();
|
2009-12-22 22:20:11 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2009-12-06 00:22:08 +00:00
|
|
|
<?php if (is_cp_theme_layout('3c,standard,3c2r')) { ?>
|
|
|
|
<div id="subcontent-wrapper-head"></div>
|
|
|
|
<div id="subcontent-wrapper">
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-09-17 22:45:30 +00:00
|
|
|
<?php get_sidebar('overblog'); ?>
|
2009-09-28 21:49:51 +00:00
|
|
|
<?php if (is_cp_theme_layout('3c,rgn')) get_sidebar('left'); ?>
|
2009-09-17 22:45:30 +00:00
|
|
|
|
2009-12-06 00:22:08 +00:00
|
|
|
<?php if (is_cp_theme_layout('v3cr')) { ?>
|
|
|
|
<div id="subcontent-wrapper-head"></div>
|
|
|
|
<div id="subcontent-wrapper">
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-09-17 22:45:30 +00:00
|
|
|
<?php if (!is_cp_theme_layout('v3c,v')) { ?>
|
|
|
|
<div id="content" class="narrowcolumn">
|
2009-12-06 00:22:08 +00:00
|
|
|
<div class="column">
|
2009-10-06 01:18:30 +00:00
|
|
|
<?php } ?>
|
2009-11-06 02:56:36 +00:00
|
|
|
<?php } ?>
|
2009-10-06 01:18:30 +00:00
|
|
|
|