2009-09-19 10:11:37 +00:00
< div id = " archivesearch " 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-excerpt_or_content_archive " : ?>
< tr >
2009-10-05 06:08:01 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Would you like to have users see the entire content or just an excerpt when viewing the archives?' , 'comicpress' ); ?> </strong><br /><br /></th>
2009-09-19 10:11:37 +00:00
< td valign = " top " >
< label >< input name = " <?php echo $value['id'] ; ?> " id = " <?php echo $value['id'] ; ?>-excerpt " type = " radio " value = " excerpt " < ? php if ( get_option ( $value [ 'id' ] ) == " excerpt " ) { echo " checked " ; } ?> />Excerpt</label>
& nbsp ; & nbsp ;
< label >< input name = " <?php echo $value['id'] ; ?> " id = " <?php echo $value['id'] ; ?>-content " type = " radio " value = " content " < ? php if ( get_option ( $value [ 'id' ] ) == " content " ) { echo " checked " ; } ?> />Content</label>
</ td >
< td valign = " top " >
</ td >
</ tr >
< ? php break ;
case " comicpress-excerpt_or_content_search " : ?>
< tr >
2009-10-05 06:08:01 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Would you like to have users see the entire content or just an excerpt when searching?' , 'comicpress' ); ?> </strong><br /><br /></th>
2009-09-19 10:11:37 +00:00
< td valign = " top " width = " 160 " >
< label >< input name = " <?php echo $value['id'] ; ?> " id = " <?php echo $value['id'] ; ?>-excerpt " type = " radio " value = " excerpt " < ? php if ( get_option ( $value [ 'id' ] ) == " excerpt " ) { echo " checked " ; } ?> />Excerpt</label>
& nbsp ; & nbsp ;
< label >< input name = " <?php echo $value['id'] ; ?> " id = " <?php echo $value['id'] ; ?>-content " type = " radio " value = " content " < ? php if ( get_option ( $value [ 'id' ] ) == " content " ) { echo " checked " ; } ?> />Content</label>
</ td >
< td valign = " top " >
</ td >
</ tr >
< ? php break ;
case " comicpress-archive_display_order " : ?>
< tr >
2009-10-05 06:08:01 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Display Archive in Ascending or Descending order?' , 'comicpress' ); ?> </strong><br /><br /><?php _e('Long time ago or most recent displays first?','comicpress'); ?><br /></th>
2009-09-19 10:11:37 +00:00
< td valign = " top " >
< label >
< select name = " <?php echo $value['id'] ; ?> " id = " <?php echo $value['id'] ; ?> " >
2009-09-20 11:35:30 +00:00
< option class = " level-0 " value = " asc " < ? php if ( get_option ( $value [ 'id' ]) == " asc " ) { ?> selected="selected"<?php } ?>>Ascending</option>
< option class = " level-0 " value = " desc " < ? php if ( get_option ( $value [ 'id' ]) == " desc " ) { ?> selected="selected"<?php } ?>>Descending</option>
2009-09-19 10:11:37 +00:00
</ select >
</ label >
</ td >
</ tr >
< ? php break ;
case " comicpress-category_thumbnail_postcount " : ?>
< tr >
2009-10-05 06:08:01 +00:00
< th scope = " row " >< b >< ? php _e ( 'Thumbnail PostCount (Archive)' , 'comicpress' ); ?> </b><br /><br /><?php _e('How many images in the comic category would you like to see in the archive page?','comicpress'); ?></th>
2009-09-19 10:11:37 +00:00
< 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 " >
2009-10-05 06:08:01 +00:00
< ? php _e ( 'If you set this to -1 it will display *all* available thumbnails for the comic category that is chosen to view.' , 'comicpress' ); ?>
2009-09-19 10:11:37 +00:00
</ td >
</ tr >
< ? php break ;
}
}
?>
</ table >
< input name = " comicpress_save " type = " submit " class = " button-primary " value = " Save Style " />
< input type = " hidden " name = " action " value = " comicpress_save " />
</ form >
</ div >
</ div >