From e143398f7c71e2d6a699635ded3a1898eb6a0f61 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Fri, 11 Feb 2011 18:42:20 -0800 Subject: [PATCH] if diable_blog_frontpage is enabled allow comments to show on home page (if comic post is still enabled) Signed-off-by: Philip M. Hofer (Frumph) --- changelog.txt | 1 + index.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/changelog.txt b/changelog.txt index 4e8ceb1..c99de52 100644 --- a/changelog.txt +++ b/changelog.txt @@ -14,6 +14,7 @@ started creating a proper readme.txt file added option to show first comic on the home page added s at the end of comments for multiple comics in the comments widget added setup_postdata in the comments widget to properly access data +if disable_blog_frontpage is enabled, allow comments to be displayed on comic posts on home page if comic post is shown 2.9.2.29.1 $is_comic needed to be set in the archive.php before hand, was giving notice diff --git a/index.php b/index.php index 41e0f1c..422ac5d 100644 --- a/index.php +++ b/index.php @@ -7,6 +7,10 @@ $comicFrontpage->query('showposts=1&order='.$order.'&cat='.comicpress_all_comic_categories_string()); while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post(); comicpress_display_post(); + if (comicpress_themeinfo('disable_blog_frontpage')) { + $withcomments = 1; + comments_template('', true); + } endwhile; }