2009-09-19 10:11:37 +00:00
< 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 >
2009-11-20 05:39:56 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Use Custom Header?' , 'comicpress' ); ?> </strong><br /><?php _e('Adds Custom Header option under Dashboard -> Appearance.','comicpress'); ?><br /></th>
2009-09-19 10:11:37 +00:00
< td valign = " top " width = " 100 " >
2009-10-05 06:08:01 +00:00
< 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>
2009-09-19 10:11:37 +00:00
& nbsp ; & nbsp ;
2009-10-05 06:08:01 +00:00
< 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>
2009-09-19 10:11:37 +00:00
</ td >
< td valign = " top " >
2009-11-20 05:39:56 +00:00
< ? php _e ( 'Allows you to add your own header image and customize or hide the default text.' , 'comicpress' ); ?>
2009-09-19 10:11:37 +00:00
</ td >
</ tr >
2009-11-20 05:39:56 +00:00
< ? php break ;
case " comicpress-custom_image_header_width " : ?>
2009-09-19 10:11:37 +00:00
< tr >
2009-11-20 05:39:56 +00:00
< th scope = " row " >< b >< ? php _e ( 'Width' , 'comicpress' ); ?> </b><br /><?php _e('Sets the <b>width</b> of the image you want to use for Custom Header.','comicpress'); ?><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 >
2009-11-20 05:39:56 +00:00
< td valign = " top " rowspawn = " 5 " >
< ? php _e ( 'Defaults widths are <b>780px</b> or <b>980px</b> depending on the layout. Refer to the width of the layout you chose and any custom changes you have made to site width in the CSS.' , 'comicpress' ); ?>
2009-09-19 10:11:37 +00:00
</ td >
</ tr >
2009-11-20 05:39:56 +00:00
< ? php break ;
case " comicpress-custom_image_header_height " : ?>
2009-09-19 10:11:37 +00:00
< tr >
2009-11-20 05:39:56 +00:00
< th scope = " row " >< b >< ? php _e ( 'Height' , 'comicpress' ); ?> </b><br /><?php _e('Sets the <b>height</b> of the image you want to use for Custom Header.','comicpress'); ?><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 >
2009-11-20 05:39:56 +00:00
< td valign = " top " >
< ? php _e ( 'Recommended maximum height is <b>120px</b>, but if your logo/image demands it you can set it higher.' , 'comicpress' ); ?>
2009-09-19 10:11:37 +00:00
</ td >
</ tr >
2009-11-20 05:39:56 +00:00
2009-09-19 10:11:37 +00:00
< ? 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 >