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:
parent
781b16dbf6
commit
fb985a66e1
|
@ -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,11 +27,13 @@ function comicpress_body_class($classes = '') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!is_page()) {
|
||||||
if (in_comic_category()) {
|
if (in_comic_category()) {
|
||||||
$classes[] = 'comic';
|
$classes[] = 'comic';
|
||||||
} else {
|
} else {
|
||||||
$classes[] = 'noncomic';
|
$classes[] = 'noncomic';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if($is_lynx) $classes[] = 'lynx';
|
if($is_lynx) $classes[] = 'lynx';
|
||||||
elseif($is_gecko) $classes[] = 'gecko';
|
elseif($is_gecko) $classes[] = 'gecko';
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue