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) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-24 15:35:44 -08:00
parent 781b16dbf6
commit fb985a66e1
2 changed files with 9 additions and 15 deletions

View File

@ -1,17 +1,9 @@
<?php <?php
/** /**
* Body Classes
* function function comicpress_body_class
* *
* Author: Philip M. Hofer (Frumph) * Author: Philip M. Hofer (Frumph)
* Author URI: http://frumph.net/ http://frumph.net/ * Author URI: http://frumph.net/
* Version: 1.0.6 * Version: 1.0.7
*
* This function adds the browser type as a class
* in the <body> 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.
*
* *
*/ */
@ -35,10 +27,12 @@ function comicpress_body_class($classes = '') {
} }
} }
if (in_comic_category()) { if (!is_page()) {
$classes[] = 'comic'; if (in_comic_category()) {
} else { $classes[] = 'comic';
$classes[] = 'noncomic'; } else {
$classes[] = 'noncomic';
}
} }
if($is_lynx) $classes[] = 'lynx'; if($is_lynx) $classes[] = 'lynx';

View File

@ -273,7 +273,7 @@
<input id="disable_page_titles" name="disable_page_titles" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_page_titles']); ?> /> <input id="disable_page_titles" name="disable_page_titles" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_page_titles']); ?> />
</td> </td>
<td> <td>
<?php _e('If you disable the titles no pages you can add a post-page-image in the page editor.','comicpress'); ?> <?php _e('If you disable the titles no pages you can still add a post-image in the page editor.','comicpress'); ?>
</td> </td>
</tr> </tr>
</table> </table>