2009-07-04 16:16:14 +00:00
|
|
|
<div class="wrap">
|
2009-07-05 20:00:09 +00:00
|
|
|
<h2><?php _e('ComicPress Config', 'comicpress') ?></h2>
|
2009-07-04 16:16:14 +00:00
|
|
|
<form method="post">
|
|
|
|
<input type="hidden" name="cp[_nonce]" value="<?php echo $nonce ?>" />
|
2009-07-28 02:09:20 +00:00
|
|
|
<h3><?php _e('Global Options', 'comicpress') ?></h3>
|
|
|
|
<table class="widefat fixed">
|
2009-07-04 16:16:14 +00:00
|
|
|
<tr>
|
2009-11-07 22:50:47 +00:00
|
|
|
<th scope="row" valign="top"><?php _e("Arrange storyline category order", 'comicpress') ?></th>
|
2009-07-23 18:43:15 +00:00
|
|
|
<td>
|
2009-11-07 22:50:47 +00:00
|
|
|
<input type="hidden" name="cp[storyline_order]" />
|
|
|
|
<div id="storyline-sorter" class="cp-children">
|
2009-11-08 03:47:28 +00:00
|
|
|
<?php
|
2009-11-07 22:50:47 +00:00
|
|
|
$this->_render_admin_storyline_tree(reset($storyline->get_simple_storyline()))
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">Storyline.setup()</script>
|
|
|
|
<p><em><?php _e('(drag and drop desired order. categories can be modified on the Posts -> Categories page)', 'comicpress') ?></em></p>
|
2009-07-23 18:43:15 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2009-07-05 20:00:09 +00:00
|
|
|
<?php foreach (array(
|
|
|
|
'comic_dimensions' => __('Comic Image Dimensions', 'comicpress'),
|
|
|
|
'rss_dimensions' => __('RSS Feed Image Dimensions', 'comicpress'),
|
2009-07-07 02:45:17 +00:00
|
|
|
'archive_dimensions' => __('Archive Image Dimensions', 'comicpress'),
|
2009-07-14 00:13:19 +00:00
|
|
|
'mini_dimensions' => __('Mini Image Dimensions', 'comicpress'),
|
2009-07-05 20:00:09 +00:00
|
|
|
) as $field => $name) { ?>
|
|
|
|
<tr>
|
2009-07-14 00:13:19 +00:00
|
|
|
<th scope="row" valign="top"><?php echo $name ?></th>
|
2009-07-05 20:00:09 +00:00
|
|
|
<td>
|
2009-07-08 23:51:02 +00:00
|
|
|
<?php echo $this->create_dimension_selector('cp[' . $field . ']', $this->comicpress->comicpress_options[$field]) ?>
|
2009-07-05 20:00:09 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
2009-07-28 02:09:20 +00:00
|
|
|
</table>
|
|
|
|
<h3><?php _e('Admin Options', 'comicpress') ?></h3>
|
|
|
|
<table class="widefat fixed">
|
2009-07-05 20:00:09 +00:00
|
|
|
<tr>
|
2009-08-23 20:44:54 +00:00
|
|
|
<th scope="row"><?php _e('Enable editing helpers', 'comicpress') ?></th>
|
2009-07-28 02:09:20 +00:00
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
foreach (array(
|
2009-08-04 01:28:59 +00:00
|
|
|
"show_inline_comic_ordering" => __('Show inline comic ordering', 'comicpress')
|
2009-07-28 02:09:20 +00:00
|
|
|
) as $key => $label) { ?>
|
2009-08-23 20:44:54 +00:00
|
|
|
<label>
|
|
|
|
<input type="checkbox"
|
|
|
|
name="cp[helpers][<?php echo $key ?>]"
|
|
|
|
value="yes"
|
|
|
|
<?php echo (($this->comicpress->comicpress_options['helpers'][$key] === true) ? 'checked="checked"' : '') ?> />
|
|
|
|
<?php echo $label ?>
|
|
|
|
</label>
|
|
|
|
<br />
|
2009-07-28 02:09:20 +00:00
|
|
|
<?php }
|
|
|
|
?>
|
|
|
|
</td>
|
2009-07-05 20:00:09 +00:00
|
|
|
</tr>
|
2009-08-23 20:44:54 +00:00
|
|
|
<?php if (is_array($this->all_addons)) { ?>
|
|
|
|
<tr>
|
|
|
|
<th scope="row"><?php _e('Enable addons', 'comicpress') ?></th>
|
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
foreach ($this->all_addons as $addon) {
|
2009-11-08 03:47:28 +00:00
|
|
|
if (!empty($addon->name)) {
|
2009-08-23 20:44:54 +00:00
|
|
|
$enabled = ($addon->is_addon_manager !== true);
|
|
|
|
$checked = $enabled && $this->comicpress->comicpress_options['addons'][$addon->name];
|
|
|
|
?>
|
2009-11-08 03:47:28 +00:00
|
|
|
|
2009-08-23 20:44:54 +00:00
|
|
|
<label>
|
|
|
|
<input type="checkbox"
|
|
|
|
name="cp[addons][<?php echo $addon->name ?>]"
|
|
|
|
value="yes"
|
|
|
|
<?php echo !$enabled ? 'disabled="disabled"' : '' ?>
|
|
|
|
<?php echo $checked ? 'checked="checked"' : '' ?> />
|
|
|
|
<?php echo $addon->name ?>
|
|
|
|
</label><br />
|
|
|
|
<?php }
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2009-11-08 03:47:28 +00:00
|
|
|
<?php } ?>
|
2009-07-04 16:16:14 +00:00
|
|
|
</table>
|
2009-08-23 20:44:54 +00:00
|
|
|
<input class="button" type="submit" value="<?php _e('Submit Changes', 'comicpress') ?>" />
|
|
|
|
</form>
|
2009-07-04 16:16:14 +00:00
|
|
|
</div>
|