2009-11-13 16:00:25 +00:00
< div id = " menubaroptions " 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
2009-11-22 18:06:19 +00:00
foreach ( $comicpress_options as $value ) {
2009-11-13 16:00:25 +00:00
switch ( $value [ 'type' ] ) {
2009-11-22 18:06:19 +00:00
case " disable_default_menubar " : ?>
2009-11-13 16:00:25 +00:00
< tr >
2009-11-18 04:43:25 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Disable default Menubar?' , 'comicpress' ); ?> </strong><br /><br /></th>
2009-11-13 16:00:25 +00:00
< 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 " ; } ?> /><?php _e('Yes','comicpress'); ?></label>
& nbsp ; & nbsp ;
< 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 valign = " top " >
2009-11-20 05:39:56 +00:00
< ? php _e ( 'Allows you to customize the location of the Menubar via Widgets.' , 'comicpress' ); ?>
2009-11-13 16:00:25 +00:00
</ td >
</ tr >
< ? php break ;
2009-11-22 18:06:19 +00:00
case " enable_search_in_menubar " : ?>
2009-11-13 16:00:25 +00:00
< tr >
2009-11-20 05:39:56 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Enable Search Form?' , 'comicpress' ); ?> </strong><br /></th>
2009-11-13 16:00:25 +00:00
< 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 " ; } ?> /><?php _e('Yes','comicpress'); ?></label>
& nbsp ; & nbsp ;
< 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 valign = " top " >
< ? php _e ( 'Searchforms can be fun when you have something to search for.' , 'comicpress' ); ?>
</ td >
</ tr >
< ? php break ;
2009-11-22 18:06:19 +00:00
case " enable_rss_in_menubar " : ?>
2009-11-13 16:00:25 +00:00
< tr >
2009-11-20 05:39:56 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Enable RSS Link?' , 'comicpress' ); ?> </strong><br /></th>
2009-11-13 16:00:25 +00:00
< 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>
& nbsp ; & nbsp ;
< 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 valign = " top " >
2009-11-20 05:39:56 +00:00
< ? php _e ( 'Adds an RSS link icon to your menubar on the right side.' , 'comicpress' ); ?>
2009-11-13 16:00:25 +00:00
</ td >
</ tr >
< ? php break ;
2009-11-22 18:06:19 +00:00
case " enable_navigation_in_menubar " : ?>
2009-11-13 16:00:25 +00:00
< tr >
2009-11-20 07:45:27 +00:00
< th scope = " row " >< strong >< ? Php _e ( 'Enable mini navigation' , 'comicpress' ); ?> </strong><br /></th>
2009-11-13 16:00:25 +00:00
< 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>
& nbsp ; & nbsp ;
< 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 valign = " top " >
2009-11-20 05:39:56 +00:00
< ? php _e ( 'Mini Navigation adds small previous and next arrows arrow to the right side of your Menubar.' , 'comicpress' ); ?>
2009-11-13 16:00:25 +00:00
</ td >
</ tr >
< ? php break ;
2009-11-22 18:06:19 +00:00
case " contact_in_menubar " : ?>
2009-11-13 16:00:25 +00:00
< tr >
2009-11-20 05:39:56 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Enable Contact/custom links?' , 'comicpress' ); ?> </strong><br /><br /></th>
2009-11-13 16:00:25 +00:00
< 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>
& nbsp ; & nbsp ;
< 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 valign = " top " >
2009-11-20 05:39:56 +00:00
< ? 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' ); ?>
2009-11-13 16:00:25 +00:00
</ td >
</ tr >
< ? php break ;
2009-11-22 18:06:19 +00:00
case " disable_dynamic_menubar_links " : ?>
2009-11-13 16:00:25 +00:00
< tr >
2009-11-20 05:39:56 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Disable auto-generated WordPress links?' , 'comicpress' ); ?> </strong><br /><br /></th>
2009-11-13 16:00:25 +00:00
< 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>
& nbsp ; & nbsp ;
< 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 valign = " top " >
2009-11-20 05:39:56 +00:00
< ? 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' ); ?>
2009-11-13 16:00:25 +00:00
</ 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 >