-
-
-
- have_posts()) : $comicFrontpage->the_post();
+is_archive = false;
+ if (have_posts()) {
+ while (have_posts()) : the_post();
display_comic_post();
- $comicFrontPage->is_single = true;
comments_template();
- endwhile; ?>
+ endwhile;
+ }
+ Restore();
+ UnProtect(); ?>
@@ -81,6 +32,7 @@
diff --git a/layout-head.php b/layout-head.php
index ebd097d..fdd7304 100644
--- a/layout-head.php
+++ b/layout-head.php
@@ -1,3 +1,4 @@
+
+is_single = true;
+ display_comic_area();
+ endwhile;
+ }
+ }
+ Restore();
+ UnProtect();
+ if (is_single() & in_comic_category()) {
+ display_comic_area();
+ }
+?>
+
diff --git a/single.php b/single.php
index a545dd4..4189722 100644
--- a/single.php
+++ b/single.php
@@ -1,70 +1,23 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+post_date);
+ $next_comic = get_next_comic();
+ $next_comic = (array)$next_comic;
+ $next_date = mysql2date('Y-m-j', $next_comic['post_date']);
+ $blog_query = 'showposts='.$blog_postcount.'&order=asc&cat=-'.exclude_comic_categories();
+ }
+ } else {
+ display_blog_post();
+ }
+ endwhile;
+?>
- post_date);
- $next_comic = get_next_comic();
- $next_comic = (array)$next_comic;
- $next_date = mysql2date('Y-m-j', $next_comic['post_date']);
- $blog_query = 'showposts='.$blog_postcount.'&order=asc&cat=-'.exclude_comic_categories();
- }
- } else {
- display_blog_post();
- }
- endwhile;
- ?>
diff --git a/widgets/ComicBlogPostWidget.inc b/widgets/ComicBlogPostWidget.inc
index a278213..cfaccc3 100644
--- a/widgets/ComicBlogPostWidget.inc
+++ b/widgets/ComicBlogPostWidget.inc
@@ -20,14 +20,13 @@ class ComicPressComicBlogPostWidget extends WP_Widget {
function widget($args, $instance) {
global $post, $wp_query;
- if (is_home() || is_single()) {
+ if ((is_home() || is_single()) && in_comic_category()) {
extract($args, EXTR_SKIP);
if (!empty($post->post_content)) {
echo $before_widget;
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
if ( !empty( $title ) ) { echo ''.$title.'
'; }
-
- display_comic_post();
+ echo $post->post_content;
echo $after_widget;
}
}
diff --git a/widgets/graphical-navigation.php b/widgets/graphical-navigation.php
index 3ae5f7e..99495a6 100644
--- a/widgets/graphical-navigation.php
+++ b/widgets/graphical-navigation.php
@@ -19,7 +19,7 @@ class widget_comicpress_graphical_navigation extends WP_Widget {
function widget($args, $instance) {
global $wp_query, $post;
- if (is_home() || is_single()) {
+// if (is_home() || is_single()) {
$this_permalink = get_permalink();
@@ -113,7 +113,7 @@ class widget_comicpress_graphical_navigation extends WP_Widget {
-
\ No newline at end of file