mirror of
https://github.com/Heretek-AI/comic-easel.git
synced 2026-10-12 10:19:52 +00:00
The domain has been 'comiceasel' since 2012 while the wordpress.org slug is 'comic-easel'. Language packs from translate.wordpress.org are keyed to the slug, so they could never load; no working translation ever shipped against the old domain. Renames the domain in every gettext call, in load_plugin_textdomain(), in both Text Domain headers, and on the lang/ template files, which already carried comic-easel domain markers internally. Option keys, admin page slugs, nonce actions and style handles that share the comiceasel prefix are deliberately left alone; only the $domain argument moved. Co-Authored-By: Claude Fable 5 <[email protected]>
63 lines
2.1 KiB
PHP
63 lines
2.1 KiB
PHP
<?php
|
|
if (!defined('ABSPATH')) exit;
|
|
|
|
// Show Config Variables for right now
|
|
// var_dump(ceo_pluginfo());
|
|
|
|
function ceo_check_directory($dirpath) {
|
|
$output = '';
|
|
if (is_dir(ceo_pluginfo($dirpath))) {
|
|
$output = '<span style="color:green;">'.__('Directory Exists,','comic-easel').'</span>';
|
|
if (is_writable(ceo_pluginfo($dirpath))) {
|
|
$output .= ' <span style="color:green;">'.__('and is writable.','comic-easel').'</span>';
|
|
} else {
|
|
$output .= ' <span style="color:red;">'.__('and is not writable.','comic-easel').'</span>';
|
|
}
|
|
} else {
|
|
$output = '<span style="color:red;">'.__('Directory does not exist,','comic-easel').'</span>';
|
|
}
|
|
return $output;
|
|
}
|
|
|
|
?>
|
|
<div class="wrap">
|
|
<h2><?php esc_html_e('Comic Easel - Debug','comic-easel'); ?></h2>
|
|
<table class="widefat">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="3"><?php esc_html_e('System Info','comic-easel'); ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tr><td>error</td><td><?php echo esc_html(ceo_pluginfo('error')); ?></td></tr>
|
|
<tr><td>base_url</td><td><?php echo esc_html(ceo_pluginfo('base_url')); ?></td></tr>
|
|
<tr><td>base_path</td><td><?php echo esc_html(ceo_pluginfo('base_path')); ?><br /><?php echo ceo_check_directory('base_path'); ?></td></tr>
|
|
<tr><td>theme_url</td><td><?php echo esc_html(ceo_pluginfo('theme_url')); ?></td></tr>
|
|
<tr><td>theme_path</td><td><?php echo esc_html(ceo_pluginfo('theme_path')); ?></td></tr>
|
|
<tr><td>style_url</td><td><?php echo esc_html(ceo_pluginfo('style_url')); ?></td></tr>
|
|
<tr><td>style_path</td><td><?php echo esc_html(ceo_pluginfo('style_path')); ?></td></tr>
|
|
<tr><td>plugin_url</td><td><?php echo esc_html(ceo_pluginfo('plugin_url')); ?></td></tr>
|
|
<tr><td>plugin_path</td><td><?php echo esc_html(ceo_pluginfo('plugin_path')); ?></td></tr>
|
|
</table>
|
|
</div>
|
|
<br />
|
|
<table class="widefat">
|
|
<thead>
|
|
<tr>
|
|
<th colspan = "3">
|
|
<?php esc_html_e('Variables', 'comic-easel'); ?>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
$ceo_options = ceo_pluginfo();
|
|
foreach ($ceo_options as $key => $val) {
|
|
if (!isset($ceo_options[$key]) || !$val) { $val = 'Empty or False'; }
|
|
if ($val == '1') $val = 'True';
|
|
?>
|
|
<tr>
|
|
<td><?php echo esc_html($key); ?></td>
|
|
<td><?php echo esc_html($val); ?></td>
|
|
</tr>
|
|
<?php }
|
|
?>
|
|
</table>
|