more ComicBlogPostWidget.inc fixes to check if its in the comic category or not

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2010-01-23 04:10:15 -08:00
parent 36a8a1a2b6
commit 96b5db1227
1 changed files with 2 additions and 2 deletions

View File

@ -44,9 +44,9 @@ class ComicPressComicBlogPostWidget extends WP_Widget {
UnProtect(); UnProtect();
wp_reset_query(); wp_reset_query();
} else { } else {
if (!empty($post->post_content)) { if (!empty($post->post_content) && in_comic_category()) {
echo $before_widget; echo $before_widget;
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); $title = empty($instance['title']) ? the_title() : apply_filters('widget_title', $instance['title']);
if ( !empty( $title ) ) { echo "<div class=\"comic-post-header\">".$title."</div>\r\n"; } if ( !empty( $title ) ) { echo "<div class=\"comic-post-header\">".$title."</div>\r\n"; }
the_content(); the_content();
echo $after_widget; echo $after_widget;