The start of ComicPress-Debug

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-11 07:45:52 -08:00
parent 509330ed99
commit 96110d138a
3 changed files with 28 additions and 1 deletions

26
comicpress-debug.php Normal file
View File

@ -0,0 +1,26 @@
<?php
function comicpress_notice_debug() {
global $current_user, $comiccat, $blogcat;
if( substr( $_SERVER[ 'PHP_SELF' ], -19 ) != '/wp-admin/index.php' )
return;
$error = '';
$comicpress_options = comicpress_load_options();
if ($comiccat == $blogcat) $error .= '<h3>The $comiccat is the same as $blogcat.</h3>Installation instructions on how to set the comicpress-options.php settings and comicpress manager settings here, not to mention the __( for language pack.';
if (!empty($error)) {
?>
<div class="error">
<h2>ComicPress Debug</h2>
ComicPress doesn't seem to be fully installed at this time, check out these messages.<br />
<br />
<?php echo $error; ?>
<br />
<br />
</div>
<?php
}
}
add_action( 'admin_notices', 'comicpress_notice_debug' );
?>

View File

@ -233,6 +233,7 @@ foreach ($dirs_to_search as $dir) {
// Dashboard Menu Comicpress Options and ComicPress CSS // Dashboard Menu Comicpress Options and ComicPress CSS
require_once(get_template_directory() . '/comicpress-options.php'); require_once(get_template_directory() . '/comicpress-options.php');
require_once(get_template_directory() . '/comicpress-debug.php');
// If you want to run multiple comics on a single day, define your additional filters here. // If you want to run multiple comics on a single day, define your additional filters here.
// Example: you want to run an additional comic with the filename 2008-01-01-a-my-new-years-comic.jpg. // Example: you want to run an additional comic with the filename 2008-01-01-a-my-new-years-comic.jpg.

View File

@ -79,7 +79,7 @@
<input id="disable_default_comic_nav" name="disable_default_comic_nav" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_default_comic_nav']); ?> /> <input id="disable_default_comic_nav" name="disable_default_comic_nav" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_default_comic_nav']); ?> />
</td> </td>
<td> <td>
<?php _e('Previous Entries and Next Entries buttons are replaced by a bar of numbered pages. The default comic post navigation is above each comic blog post.','comicpress'); ?> <?php _e('The default comic post navigation is above each comic blog post.','comicpress'); ?>
</td> </td>
</tr> </tr>
<?php <?php