Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 4.0.4
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (58 sloc) 3.556 kb
<script language="javascript" type="text/javascript">
function lshowimage(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 language="javascript" type="text/javascript">
function sshowimage(sel,pic) {
if (!document.images) return
document.getElementById(pic).src = '<?php echo get_template_directory_uri(); ?>/images/schemes/'+sel.options[sel.selectedIndex].value+'.jpg'
<div id="comicpress-layout">
<form method="post" id="myForm-layout" enctype="multipart/form-data" action="?page=comicpress-options">
<?php wp_nonce_field('update-options') ?>
<div class="comicpress-options">
<table class="widefat" cellspacing="0">
<th colspan="4"><?php _e('Layout','comicpress'); ?></th>
<?php if (!isset($comicpress_options['layout']) || empty($comicpress_options['layout'])) $comicpress_options['layout'] = '3c'; ?>
<tr class="alternate">
<th scope="row" style="width:250px"><label for="layout" style="text-align:left"><?php _e('Choose Your Website Layout','comicpress'); ?></label>
<select name="layout" id="layout" onchange="lshowimage(this,'thelayout')">
<option class="level-0" value="3c" <?php if ($comicpress_options['layout'] == '3c') { ?>selected="selected" <?php } ?>><?php _e('3 Column - Standard','comicpress'); ?></option>
<option class="level-0" value="3cl" <?php if ($comicpress_options['layout'] == '3cl') { ?>selected="selected" <?php } ?>><?php _e('3 Column - Sidebar\'s on Left','comicpress'); ?></option>
<option class="level-0" value="3cr" <?php if ($comicpress_options['layout'] == '3cr') { ?>selected="selected" <?php } ?>><?php _e('3 Column - Sidebar\'s on Right','comicpress'); ?></option>
<option class="level-0" value="2cl" <?php if ($comicpress_options['layout'] == '2cl') { ?>selected="selected" <?php } ?>><?php _e('2 Column - Sidebar on Left (780px)','comicpress'); ?></option>
<option class="level-0" value="2cr" <?php if ($comicpress_options['layout'] == '2cr') { ?>selected="selected" <?php } ?>><?php _e('2 Column - Sidebar on Right (780px)','comicpress'); ?></option>
<option class="level-0" value="2clw" <?php if ($comicpress_options['layout'] == '2clw') { ?>selected="selected" <?php } ?>><?php _e('2 Column Wide, Sidebar on Left (980px)', 'comicpress'); ?></option>
<option class="level-0" value="2crw" <?php if ($comicpress_options['layout'] == '2crw') { ?>selected="selected" <?php } ?>><?php _e('2 Column Wide - Sidebar on Right (980px)','comicpress'); ?></option>
<br />
<img id="thelayout" src="<?php echo get_template_directory_uri(); ?>/images/options/<?php echo $comicpress_options['layout']; ?>.png" alt="Layout" />
<td style="vertical-align:middle">
<br />
<strong><?php _e('Schemes and customization can be modified in the appearance - customize section of the wp-admin','comicpress'); ?></strong>
<br />
<div class="comicpress-options-save">
<div class="comicpress-major-publishing-actions">
<div class="comicpress-publishing-action">
<input name="comicpress_save_layout" type="submit" class="button-primary" value="Save Settings" />
<input type="hidden" name="action" value="comicpress_save_layout" />
<div class="clear"></div>
Jump to Line
Something went wrong with that request. Please try again.