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-11-20 05:39:56 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Archive Viewing' , 'comicpress' ); ?> </strong><br /><br /></th>
2009-09-19 10:11:37 +00:00
< td valign = " top " >
2009-11-20 05:39:56 +00:00
< 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 " ; } ?> />Full Content</label>
2009-09-19 10:11:37 +00:00
& nbsp ; & nbsp ;
2009-11-20 05:39:56 +00:00
< 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>
2009-09-19 10:11:37 +00:00
</ td >
< td valign = " top " >
2009-11-20 05:39:56 +00:00
< ? php _e ( 'Would you like to have users see the <b>full content</b> or just an <b>excerpt</b> when viewing the archives?' , 'comicpress' ); ?>
2009-09-19 10:11:37 +00:00
</ td >
</ tr >
< ? php break ;
case " comicpress-excerpt_or_content_search " : ?>
< tr >
2009-11-20 05:39:56 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Searching' , 'comicpress' ); ?> </strong><br /><br /></th>
2009-09-19 10:11:37 +00:00
< td valign = " top " width = " 160 " >
2009-11-20 05:39:56 +00:00
< 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 " ; } ?> />Full Content</label>
2009-09-19 10:11:37 +00:00
& nbsp ; & nbsp ;
2009-11-20 05:39:56 +00:00
< 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>
2009-09-19 10:11:37 +00:00
</ td >
< td valign = " top " >
2009-11-20 05:39:56 +00:00
< ? php _e ( 'Would you like to have users see the <b>full content</b> or just an <b>excerpt</b> when searching?' , 'comicpress' ); ?>
2009-09-19 10:11:37 +00:00
</ td >
</ tr >
< ? php break ;
case " comicpress-archive_display_order " : ?>
< tr >
2009-11-20 05:39:56 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Archive Display Order' , 'comicpress' ); ?> </strong><br /><br /><?php _e('Sets the display order of your archives.','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-11-20 05:39:56 +00:00
< option class = " level-0 " value = " asc " < ? php if ( get_option ( $value [ 'id' ]) == " asc " ) { ?> selected="selected"<?php } ?>>Oldest to Newest</option>
< option class = " level-0 " value = " desc " < ? php if ( get_option ( $value [ 'id' ]) == " desc " ) { ?> selected="selected"<?php } ?>>Newest to Oldest</option>
2009-09-19 10:11:37 +00:00
</ select >
</ label >
</ td >
2009-11-20 05:39:56 +00:00
< td valign = " top " >
< ? php _e ( '<b>Newest to Oldest</b> will display your posts starting with the most recent. <b>Oldest to Newest</b> will start with the first entry in the category, tag, or date range (e.g., Selecting May 20XX will start with May 1, not May 31st.)' , 'comicpress' ); ?>
</ td >
2009-09-19 10:11:37 +00:00
</ tr >
< ? php break ;
case " comicpress-category_thumbnail_postcount " : ?>
< tr >
2009-11-20 05:39:56 +00:00
< th scope = " row " >< b >< ? php _e ( 'Number of archived comics to display' , 'comicpress' ); ?> </b><br /><br /></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-11-20 05:39:56 +00:00
< ? php _e ( 'How many images in the comic category would you like to see in the archive page?' , 'comicpress' ); ?>
2009-09-19 10:11:37 +00:00
</ td >
</ tr >
< ? php break ;
}
}
?>
</ table >
2009-11-20 05:39:56 +00:00
< input name = " comicpress_save " type = " submit " class = " button-primary " value = " Save Settings " />
2009-09-19 10:11:37 +00:00
< input type = " hidden " name = " action " value = " comicpress_save " />
</ form >
</ div >
</ div >