2009-11-13 16:00:25 +00:00
< script language = " javascript " >
function showimage ( sel , pic )
{
if ( ! document . images )
return
document . getElementById ( pic ) . src = '<?php echo get_template_directory_uri(); ?>/images/options/' + sel . options [ sel . selectedIndex ] . value + '.png'
}
</ 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-11-20 07:45:27 +00:00
< th scope = " row " >< strong >< ? php _e ( 'Choose Layout' , 'comicpress' ); ?> </strong><br /><br /><?php _e('This is the layout in which your theme will be presented.'); ?><br /><br /></th>
2009-11-13 16:00:25 +00:00
< td valign = " top " >
< label >
< select name = " <?php echo $value['id'] ; ?> " id = " <?php echo $value['id'] ; ?> " class = " code " onchange = " showimage(this,'cpthemestyle') " >
2009-11-20 14:14:05 +00:00
< option class = " level-0 " value = " standard " < ? php if ( get_option ( $value [ 'id' ]) == 'standard' ) { ?> selected="selected" <?php } ?>><?php _e('2 Column (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>
< option class = " level-0 " value = " 3c2r " < ? php if ( get_option ( $value [ 'id' ]) == '3c2r' ) { ?> selected="selected" <?php } ?>><?php _e('3 Column: Sidebars Right','comicpress'); ?></option>
< option class = " level-0 " value = " v " < ? php if ( get_option ( $value [ 'id' ]) == 'v' ) { ?> selected="selected" <?php } ?>><?php _e('Single Panel (Vertical)','comicpress'); ?></option>
< option class = " level-0 " value = " v3c " < ? php if ( get_option ( $value [ 'id' ]) == 'v3c' ) { ?> selected="selected" <?php } ?>><?php _e('Single Panel (Vertical) 3 Column','comicpress'); ?></option>
2009-11-20 07:45:27 +00:00
< option class = " level-0 " value = " gn " < ? php if ( get_option ( $value [ 'id' ]) == 'gn' ) { ?> selected="selected" <?php } ?>><?php _e('Graphic Novel: Sidebar Left','comicpress'); ?></option>
< option class = " level-0 " value = " rgn " < ? php if ( get_option ( $value [ 'id' ]) == 'rgn' ) { ?> selected="selected" <?php } ?>><?php _e('Graphic Novel: Sidebar Right','comicpress'); ?></option>
2009-11-13 16:00:25 +00:00
</ select >
</ label >
</ td >
< td valign = " top " >
< img id = " cpthemestyle " src = " <?php echo get_template_directory_uri(); ?>/images/options/<?php echo get_option( $value['id'] ); ?>.png " alt = " ComicPress Theme Style " />
</ td >
< td valign = " top " >
2009-11-20 07:45:27 +00:00
< i > Comic Strip - 2 Column </ i > and < i > Single Panel - 2 Column </ i > themes default width : < b > 780 px </ b >.
< br />< br />
< i > Comic Strip - 3 Column </ i > , < i > Single Panel - 3 Column </ i > , and < i > Graphic Novel </ i > themes default width : < b > 980 px </ b >.
2009-11-13 16:00:25 +00:00
</ td >
</ tr >
< ? php break ;
}
}
?>
</ table >
2009-11-18 01:34:20 +00:00
< input name = " comicpress_save " type = " submit " class = " button-primary " value = " Save Layout " />
2009-11-13 16:00:25 +00:00
< input type = " hidden " name = " action " value = " comicpress_save " />
</ form >
</ div >
</ div >