ComicPress Options part 3 ? or is it 4
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
609c5dbfa0
commit
299d373301
|
@ -21,7 +21,7 @@
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="stuffbox" style="background: #ebf8ff;">
|
<div class="stuffbox" style="background: #edffeb;">
|
||||||
<h3>Comic</h3>
|
<h3>Comic</h3>
|
||||||
<table class="form-table" style="width: auto;">
|
<table class="form-table" style="width: auto;">
|
||||||
|
|
||||||
|
|
|
@ -1,101 +1,75 @@
|
||||||
<div id="menubaroptions" class="hide">
|
<div id="menubaroptions" class="hide">
|
||||||
<div class="inside">
|
|
||||||
<form method="post" id="myForm" name="template" enctype="multipart/form-data">
|
<form method="post" id="myForm" name="template" enctype="multipart/form-data">
|
||||||
<?php wp_nonce_field('update-options') ?>
|
<?php wp_nonce_field('update-options') ?>
|
||||||
<table class="form-table" style="width: auto">
|
|
||||||
<?php
|
<div class="stuffbox" style="background: #ebf8ff;">
|
||||||
foreach ($comicpress_options as $value) {
|
<h3>Main</h3>
|
||||||
switch ( $value['type'] ) {
|
<table class="form-table" style="width: auto;">
|
||||||
case "disable_default_menubar": ?>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><strong><?php _e('Disable default Menubar?','comicpress'); ?></strong><br /><br /></th>
|
<th scope="row"><?php _e('Disable default Menubar?','comicpress'); ?></th>
|
||||||
<td valign="top" width="100">
|
<td valign="top">
|
||||||
<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"; } ?> /><?php _e('Yes','comicpress'); ?></label>
|
<input name="disable_default_menubar" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_default_menubar']); ?> />
|
||||||
|
</td>
|
||||||
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
|
<td valign="top">
|
||||||
</td>
|
<?php _e('Allows you to customize the location of the Menubar via Widgets.','comicpress'); ?>
|
||||||
<td valign="top">
|
</td>
|
||||||
<?php _e('Allows you to customize the location of the Menubar via Widgets.','comicpress'); ?>
|
</tr>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php break;
|
<tr>
|
||||||
case "enable_search_in_menubar": ?>
|
<th scope="row"><?php _e('Enable Search Form?','comicpress'); ?></th>
|
||||||
<tr>
|
<td valign="top">
|
||||||
<th scope="row"><strong><?php _e('Enable Search Form?','comicpress'); ?></strong><br /></th>
|
<input name="enable_search_in_menubar" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_search_in_menubar']); ?> />
|
||||||
<td valign="top" width="100">
|
</td>
|
||||||
<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"; } ?> /><?php _e('Yes','comicpress'); ?></label>
|
<td valign="top">
|
||||||
|
<?php _e('Searchforms can be fun when you have something to search for.','comicpress'); ?>
|
||||||
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
<td valign="top">
|
|
||||||
<?php _e('Searchforms can be fun when you have something to search for.','comicpress'); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php break;
|
<tr>
|
||||||
case "enable_rss_in_menubar": ?>
|
<th scope="row"><?php _e('Enable RSS Link?','comicpress'); ?></th>
|
||||||
<tr>
|
<td valign="top">
|
||||||
<th scope="row"><strong><?php _e('Enable RSS Link?','comicpress'); ?></strong><br /></th>
|
<input name="enable_rss_in_menubar" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_rss_in_menubar']); ?> />
|
||||||
<td valign="top">
|
</td>
|
||||||
<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"; } ?> /><?php _e('Yes','comicpress'); ?></label>
|
<td valign="top">
|
||||||
|
<?php _e('Adds an RSS link icon to your menubar on the right side.','comicpress'); ?>
|
||||||
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
<td valign="top">
|
|
||||||
<?php _e('Adds an RSS link icon to your menubar on the right side.','comicpress'); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php break;
|
<tr>
|
||||||
case "enable_navigation_in_menubar": ?>
|
<th scope="row"><?Php _e('Enable mini navigation','comicpress'); ?></th>
|
||||||
<tr>
|
<td valign="top">
|
||||||
<th scope="row"><strong><?Php _e('Enable mini navigation','comicpress'); ?></strong><br /></th>
|
<input name="enable_navigation_in_menubar" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_navigation_in_menubar']); ?> />
|
||||||
<td valign="top">
|
</td>
|
||||||
<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"; } ?> /><?php _e('Yes','comicpress'); ?></label>
|
<td valign="top">
|
||||||
|
<?php _e('Mini Navigation adds small previous and next arrows arrow to the right side of your Menubar.','comicpress'); ?>
|
||||||
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
<td valign="top">
|
|
||||||
<?php _e('Mini Navigation adds small previous and next arrows arrow to the right side of your Menubar.','comicpress'); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php break;
|
<tr>
|
||||||
case "contact_in_menubar": ?>
|
<th scope="row"><?php _e('Enable Contact/custom links?','comicpress'); ?></th>
|
||||||
<tr>
|
<td valign="top">
|
||||||
<th scope="row"><strong><?php _e('Enable Contact/custom links?','comicpress'); ?></strong><br /><br /></th>
|
<input name="contact_in_menubar" type="checkbox" value="1" <?php checked(true, $comicpress_options['contact_in_menubar']); ?> />
|
||||||
<td valign="top">
|
</td>
|
||||||
<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"; } ?> /><?php _e('Yes','comicpress'); ?></label>
|
<td valign="top">
|
||||||
|
<?php _e('Adds a <b>Contact</b> button to the Menubar associated with your admin email. You can also create a links category called <i>Menubar</i> and whatever links you add to that will appear in the Menubar.','comicpress'); ?>
|
||||||
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
<td valign="top">
|
|
||||||
<?php _e('Adds a <b>Contact</b> button to the Menubar associated with your admin email. You can also create a links category called <i>Menubar</i> and whatever links you add to that will appear in the Menubar.','comicpress'); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php break;
|
<tr>
|
||||||
case "disable_dynamic_menubar_links": ?>
|
<th scope="row"><?php _e('Disable auto-generated WordPress links?','comicpress'); ?></th>
|
||||||
<tr>
|
<td valign="top">
|
||||||
<th scope="row"><strong><?php _e('Disable auto-generated WordPress links?','comicpress'); ?></strong><br /><br /></th>
|
<input name="disable_dynamic_menubar_links" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_dynamic_menubar_links']); ?> />
|
||||||
<td valign="top">
|
</td>
|
||||||
<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"; } ?> /><?php _e('Yes','comicpress'); ?></label>
|
<td valign="top">
|
||||||
|
<?php _e('Allows you to use the links category <i>menubar</i> (you will need to create this category if it does not already exist) to create custom links on the Menubar (mostly used for making graphic images as links). Otherwise, ALL published pages will appear automatically.','comicpress'); ?>
|
||||||
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
<td valign="top">
|
|
||||||
<?php _e('Allows you to use the links category <i>menulinks</i> (you will need to create this category if it does not already exist) to create custom links on the Menubar (mostly used for making graphic images as links). Otherwise, ALL published pages will appear automatically.','comicpress'); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php break;
|
</table>
|
||||||
}
|
</div>
|
||||||
}
|
|
||||||
?>
|
|
||||||
</table>
|
|
||||||
<input name="comicpress_save" type="submit" class="button-primary" value="Save Settings" />
|
<input name="comicpress_save" type="submit" class="button-primary" value="Save Settings" />
|
||||||
<input type="hidden" name="action" value="comicpress_save" />
|
<input type="hidden" name="action" value="comicpress_save" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
Loading…
Reference in New Issue