52 lines
2.0 KiB
HTML
52 lines
2.0 KiB
HTML
<div class="wrap comicpress-admin">
|
|
<h2><?php _e('ComicPress Config', 'comicpress') ?></h2>
|
|
<form method="post" action="">
|
|
<input type="hidden" name="cp[_nonce]" value="<?php echo esc_attr($nonce) ?>" />
|
|
<input type="hidden" name="cp[action]" value="comicpress-options" />
|
|
<input type="hidden" name="cp[_action_nonce]" value="<?php echo esc_attr($action_nonce) ?>" />
|
|
|
|
<h3>
|
|
<?php _e('Storyline Order', 'comicpress') ?>
|
|
</h3>
|
|
<div id="comicpress-storyline-category-order-holder" class="comicpress-holder">
|
|
<input type="hidden" name="cp[storyline_order]" value="" />
|
|
<div id="storyline-sorter">
|
|
<div class="cp-children">
|
|
<?php
|
|
$this->_render_admin_storyline_tree(reset($storyline->get_simple_storyline()))
|
|
?>
|
|
</div>
|
|
</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>
|
|
|
|
<input class="button-primary" type="submit" value="<?php _e('Submit Updated ComicPress Options', 'comicpress') ?>" />
|
|
</div>
|
|
|
|
<h3><?php _e('Comic Image Types', 'comicpress') ?></h3>
|
|
<div id="comicpress-image-types-holder" class="comicpress-holder">
|
|
<div id="image-type-container">
|
|
<?php foreach ($this->comicpress->comicpress_options['image_types'] as $type => $info) { ?>
|
|
<?php include('_image-type-editor.inc'); ?>
|
|
<?php } ?>
|
|
</div>
|
|
<a id="add-new-image-type" href="#">[+] Add a new image type</a>
|
|
<script type="text/javascript">ComicImageTypes.setup()</script>
|
|
|
|
<input class="button-primary" type="submit" value="<?php _e('Submit Updated ComicPress Options', 'comicpress') ?>" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$$('.comicpress-admin h3').each(function(h3) {
|
|
h3.observe('click', function(e) {
|
|
Event.stop(e);
|
|
var area = $(e.target).nextSiblings().shift();
|
|
if (area) {
|
|
new Effect[area.visible() ? 'BlindUp' : 'BlindDown'](area, {
|
|
duration: 0.25
|
|
});
|
|
}
|
|
});
|
|
});
|
|
</script> |