2009-09-19 10:11:37 +00:00
< script language = " javascript " >
function showimage ( sel , pic )
{
if ( ! document . images )
return
2009-11-06 02:56:36 +00:00
document . getElementById ( pic ) . src = '<?php echo get_template_directory_uri(); ?>/images/options/' + sel . options [ sel . selectedIndex ] . value + '.png'
2009-09-19 10:11:37 +00:00
}
</ script >
< div id = " themestyle " class = " show " >
< 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-cp_theme_layout " : ?>
< tr >
2009-10-05 06:08:01 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Choose which theme layout you want to use.' , 'comicpress' ); ?> </strong><br /><br /><?php _e('This is the layout in which your theme will be presented.'); ?><br /><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'] ; ?> " class = " code " onchange = " showimage(this,'cpthemestyle') " >
2009-10-05 06:08:01 +00:00
< option class = " level-0 " value = " standard " < ? php if ( get_option ( $value [ 'id' ]) == 'standard' ) { ?> selected="selected" <?php } ?>><?php _e('Standard','comicpress'); ?></option>
< option class = " level-0 " value = " 3c " < ? php if ( get_option ( $value [ 'id' ]) == '3c' ) { ?> selected="selected" <?php } ?>><?php _e('3 Column','comicpress'); ?></option>
2009-10-06 01:18:30 +00:00
< option class = " level-0 " value = " 3c2r " < ? php if ( get_option ( $value [ 'id' ]) == '3c2r' ) { ?> selected="selected" <?php } ?>><?php _e('3 Column, Sidebars Right','comicpress'); ?></option>
2009-10-05 06:08:01 +00:00
< option class = " level-0 " value = " gn " < ? php if ( get_option ( $value [ 'id' ]) == 'gn' ) { ?> selected="selected" <?php } ?>><?php _e('Graphic Novel Left','comicpress'); ?></option>
< option class = " level-0 " value = " rgn " < ? php if ( get_option ( $value [ 'id' ]) == 'rgn' ) { ?> selected="selected" <?php } ?>><?php _e('Graphic Novel Right','comicpress'); ?></option>
< option class = " level-0 " value = " v " < ? php if ( get_option ( $value [ 'id' ]) == 'v' ) { ?> selected="selected" <?php } ?>><?php _e('Vertical','comicpress'); ?></option>
< option class = " level-0 " value = " v3c " < ? php if ( get_option ( $value [ 'id' ]) == 'v3c' ) { ?> selected="selected" <?php } ?>><?php _e('Vertical 3 Column','comicpress'); ?></option>
2009-09-19 10:11:37 +00:00
</ select >
</ label >
</ td >
< td valign = " top " >
2009-11-06 02:56:36 +00:00
< img id = " cpthemestyle " src = " <?php echo get_template_directory_uri(); ?>/images/options/<?php echo get_option( $value['id'] ); ?>.png " alt = " ComicPress Theme Style " />
2009-09-19 10:11:37 +00:00
</ td >
2009-10-21 01:14:59 +00:00
< td valign = " top " >
Standard and Vertical themes are 780 px , 3 Column , Graphic Novel and Vertical 3 Column are 980 px wide .
</ td >
2009-09-19 10:11:37 +00:00
</ 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 >