start work on deletion

This commit is contained in:
John Bintz 2009-12-08 21:15:28 -05:00
parent 7bc761938c
commit 205768742a
1 changed files with 13 additions and 1 deletions

View File

@ -1,10 +1,22 @@
<div class="comicpress-url-backend-holder">
<table class="widefat">
<tr>
<td align="right" colspan="2">
<a class="comicpress-url-backend-deleter" href="#">X</a>
</td>
</tr>
<?php
foreach ($comicpress->comicpress_options['image_types'] as $type => $info) {
$url = isset($backend->urls_by_type[$type]) ? $backend->urls_by_type[$type] : ''; ?>
<tr>
<th scope="row"><?php echo esc_html($info['name']) ?></th>
<th scope="row">
<?php echo esc_html($info['name']) ?>
<?php if (isset($info['default'])) { ?>
<?php if ($info['default']) { ?>
<em><?php _e('(required)', 'comicpress') ?></em>
<?php } ?>
<?php } ?>
</th>
<td><input type="text" style="width: 100%" name="cp[url][<?php echo esc_attr($backend->id) ?>][<?php echo esc_attr($type) ?>]" value="<?php echo esc_attr($url) ?>" />
</tr>
<?php