60 lines
2.8 KiB
PHP
60 lines
2.8 KiB
PHP
<div id="customheader" class="hide">
|
|
<div class="inside">
|
|
<form method="post" id="myForm" name="template" enctype="multipart/form-data">
|
|
<?php wp_nonce_field('update-options') ?>
|
|
<table class="form-table" style="width: auto">
|
|
<?php
|
|
foreach ($options as $value) {
|
|
switch ( $value['type'] ) {
|
|
case "comicpress-enable_custom_image_header": ?>
|
|
<tr>
|
|
<th scope="row"><strong>Enable Custom Image Header panel?</strong><br /><br />Setting to "Yes" will set a new option in your Dashboard -> Appearance menu.<br /></th>
|
|
<td valign="top" width="100">
|
|
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> />Yes</label>
|
|
|
|
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> />No</label>
|
|
</td>
|
|
<td valign="top">
|
|
Setting to "Yes" will set a new option in your Dashboard -> Appearance menu. Setting to "Yes" will set a new option in your Dashboard -> Appearance menu. Setting to "No" will not set a new option in your Dashboard -> Appearance menu. Setting to "Yes" will set a new option in your Dashboard -> Appearance menu.
|
|
</td>
|
|
</tr>
|
|
|
|
<?php break;
|
|
case "comicpress-custom_image_header_height": ?>
|
|
<tr>
|
|
<th scope="row"><b>Header Image Height</b><br /><br />Set the <b>height</b> of the image you want to use in the Custom Image Header panel.</th>
|
|
<td valign="top">
|
|
<label>
|
|
<input type="text" size="5" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php print get_option($value['id']); ?>" /><br />
|
|
</label>
|
|
</td>
|
|
<td valign="top">
|
|
This area intentionally left blank.
|
|
</td>
|
|
</tr>
|
|
|
|
<?php break;
|
|
case "comicpress-custom_image_header_width": ?>
|
|
<tr>
|
|
<th scope="row"><b>Header Image Width</b><br /><br />Set the <b>width</b> of the image you want to use in the Custom Image Header panel.</th>
|
|
<td valign="top">
|
|
<label>
|
|
<input type="text" size="5" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php print get_option($value['id']); ?>" /><br />
|
|
</label>
|
|
</td>
|
|
<td valign="top" rowspawn="5">
|
|
The Standard and V styles use <b>760</b> px width, while the 3C, GN and V3C use <b>980</b> px width. This is configurable in case you set the #page, #page-width widths in the CSS to something different than the default while using the Custom Header panel.
|
|
</td>
|
|
</tr>
|
|
|
|
<?php break;
|
|
}
|
|
}
|
|
?>
|
|
</table>
|
|
<input name="comicpress_save" type="submit" class="button-primary" value="Save Settings" />
|
|
<input type="hidden" name="action" value="comicpress_save" />
|
|
</form>
|
|
</div>
|
|
</div>
|