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-07-14 00:13:19 +00:00
|
|
|
<th scope="row" valign="top"><?php _e('Master Comic Category', 'comicpress') ?></th>
|
2009-07-04 16:16:14 +00:00
|
|
|
<td>
|
2009-07-05 19:46:32 +00:00
|
|
|
<select name="cp[comic_category_id]">
|
2009-07-08 23:51:02 +00:00
|
|
|
<?php echo $this->create_category_options($root_categories, $this->comicpress->comicpress_options['comic_category_id']) ?>
|
2009-07-04 16:16:14 +00:00
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2009-07-23 18:43:15 +00:00
|
|
|
<tr>
|
|
|
|
<th scope="row" valign="top"><?php _e('Layout', 'comicpress') ?></th>
|
|
|
|
<td>
|
|
|
|
<select name="cp[layout]">
|
2009-07-23 19:12:13 +00:00
|
|
|
<?php echo $this->create_layout_options($this->comicpress->get_layout_choices(), $this->comicpress->comicpress_options['layout']) ?>
|
2009-07-23 18:43:15 +00:00
|
|
|
</select>
|
|
|
|
</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-11 19:39:05 +00:00
|
|
|
<tr>
|
2009-07-14 00:13:19 +00:00
|
|
|
<th scope="row" valign="top"><?php _e("Number of blog posts on home page", 'comicpress') ?></th>
|
2009-07-11 19:39:05 +00:00
|
|
|
<td>
|
|
|
|
<input type="text" name="cp[blogpost_count]" value="<?php echo $this->comicpress->comicpress_options['blogpost_count'] ?>" size="3" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
2009-07-14 00:13:19 +00:00
|
|
|
<tr>
|
|
|
|
<th scope="row" valign="top"><?php _e("Set storyline category order", 'comicpress') ?></th>
|
|
|
|
<td>
|
|
|
|
<?php
|
2009-07-14 01:21:53 +00:00
|
|
|
foreach ($this->get_storyline_move_statuses() as $node => $statuses) {
|
2009-07-14 00:13:19 +00:00
|
|
|
$parts = explode("/", $node);
|
|
|
|
$category = get_category(end($parts));
|
|
|
|
if (!empty($category)) {
|
|
|
|
?>
|
|
|
|
<div class="storyline" style="padding-left: <?php echo (count($parts) - 2) * 20 ?>px">
|
|
|
|
<strong><?php echo $category->name ?></strong>
|
|
|
|
<?php
|
|
|
|
foreach (array(
|
|
|
|
"-1" => __("Up", 'comicpress'),
|
|
|
|
"1" => __("Down", 'comicpress')
|
|
|
|
) as $direction => $label) {
|
2009-07-14 01:21:53 +00:00
|
|
|
$status = array_shift($statuses);
|
|
|
|
if ($status) {
|
|
|
|
$query = add_query_arg('cp[_nonce]', $nonce);
|
|
|
|
$query = add_query_arg('cp[category]', $category->term_id, $query);
|
|
|
|
$query = add_query_arg('cp[move_direction]', $direction, $query); ?>
|
2009-07-14 00:13:19 +00:00
|
|
|
| <a href="<?php echo $query ?>"><?php echo $label ?></a>
|
2009-07-14 01:21:53 +00:00
|
|
|
<?php
|
2009-07-14 00:13:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<?php }
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<p><em>(categories can be modified on the Posts -> Categories page)</em></p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2009-07-16 01:34:34 +00:00
|
|
|
<tr>
|
2009-07-29 02:38:20 +00:00
|
|
|
<th scope="row"><?php _e('Insert into comic space:', 'comicpress') ?></th>
|
2009-07-16 01:34:34 +00:00
|
|
|
<td>
|
|
|
|
<?php foreach (array(
|
|
|
|
"comic_only" => __("The comic only, with post content below", 'comicpress'),
|
|
|
|
"post_content" => __("The post content", 'comicpress')
|
|
|
|
) as $value => $label) { ?>
|
|
|
|
<label><input type="radio" name="cp[comic_space]" value="<?php echo $value ?>" <?php echo ($this->comicpress->comicpress_options['comic_space'] == $value) ? 'checked="checked"' : "" ?> /> <?php echo $label ?></label><br />
|
|
|
|
<?php } ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2009-07-16 01:55:28 +00:00
|
|
|
<tr>
|
2009-07-29 02:38:20 +00:00
|
|
|
<th scope="row"><?php _e('Use subcategories of the Master Comic Category as:', 'comicpress') ?></th>
|
2009-07-16 01:55:28 +00:00
|
|
|
<td>
|
|
|
|
<?php foreach (array(
|
2009-07-29 02:38:20 +00:00
|
|
|
"storyline" => __("Storyline indicators for a single comic", 'comicpress'),
|
|
|
|
"multicomic" => __("Multicomic indicators, with direct descendents being separate comics", 'comicpress')
|
2009-07-16 01:55:28 +00:00
|
|
|
) as $value => $label) { ?>
|
2009-07-29 02:38:20 +00:00
|
|
|
<label><input type="radio" name="cp[category_usage]" value="<?php echo $value ?>" <?php echo ($this->comicpress->comicpress_options['category_usage'] == $value) ? 'checked="checked"' : "" ?> /> <?php echo $label ?></label><br />
|
2009-07-16 01:55:28 +00:00
|
|
|
<?php } ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
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-07-28 02:09:20 +00:00
|
|
|
<th scope="row">
|
|
|
|
Enable editing helpers
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
foreach (array(
|
|
|
|
"show_partials_info" => __('Show partials info', 'comicpress')
|
|
|
|
) as $key => $label) { ?>
|
|
|
|
<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>
|
|
|
|
<?php }
|
|
|
|
?>
|
|
|
|
</td>
|
2009-07-05 20:00:09 +00:00
|
|
|
</tr>
|
2009-07-04 16:16:14 +00:00
|
|
|
</table>
|
2009-07-28 02:09:20 +00:00
|
|
|
<input type="submit" value="<?php _e("Submit Changes", 'comicpress') ?>" /> </form>
|
2009-07-04 16:16:14 +00:00
|
|
|
</div>
|