mirror of
https://github.com/kennethreitz-archive/wordpress-skeleton.git
synced 2026-06-18 06:30:57 +00:00
28 lines
477 B
PHP
28 lines
477 B
PHP
<?php
|
|
function show_constant($constant) {
|
|
if (!defined($constant)) {
|
|
?> <tr>
|
|
<th><?php echo $constant; ?></th>
|
|
<td>Not defined</td>
|
|
</tr>
|
|
<?php
|
|
} else {
|
|
?> <tr>
|
|
<th><?php echo $constant; ?></th>
|
|
<td><?php echo constant($constant); ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
|
|
function show_var($desc, $var, $onlytrue = false) {
|
|
if ($onlytrue && !$var)
|
|
return;
|
|
?> <tr>
|
|
<th><?php echo $desc; ?></th>
|
|
<td><?php var_dump($var); ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
|
|
?>
|