From fb985a66e196fed5dac8b0f871b496794ee95413 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Thu, 24 Dec 2009 15:35:44 -0800 Subject: [PATCH] body_classes.php stop it from doing some things if on is_page(); and text fix in postoptions.php Signed-off-by: Philip M. Hofer (Frumph) --- functions/classes.php | 22 ++++++++-------------- options/postoptions.php | 2 +- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/functions/classes.php b/functions/classes.php index 5901576..c4d70b1 100644 --- a/functions/classes.php +++ b/functions/classes.php @@ -1,17 +1,9 @@ tag where you can then do .ie #page and do things specific - * for each browser type as well as a few other classes that the normal body_class - * does not yet support. - * + * Author URI: http://frumph.net/ + * Version: 1.0.7 * */ @@ -35,10 +27,12 @@ function comicpress_body_class($classes = '') { } } - if (in_comic_category()) { - $classes[] = 'comic'; - } else { - $classes[] = 'noncomic'; + if (!is_page()) { + if (in_comic_category()) { + $classes[] = 'comic'; + } else { + $classes[] = 'noncomic'; + } } if($is_lynx) $classes[] = 'lynx'; diff --git a/options/postoptions.php b/options/postoptions.php index 84e6f16..762c068 100644 --- a/options/postoptions.php +++ b/options/postoptions.php @@ -273,7 +273,7 @@ /> - +