mirror of
https://github.com/yunluo/gdk.git
synced 2024-05-11 10:46:52 +02:00
优化代码
This commit is contained in:
parent
689f0b8348
commit
72f39b63f3
|
@ -124,26 +124,29 @@ break;
|
||||||
?>
|
?>
|
||||||
<p><label for="<?php echo $id; ?>"><?php echo $option['desc']; ?></label></p>
|
<p><label for="<?php echo $id; ?>"><?php echo $option['desc']; ?></label></p>
|
||||||
<p><textarea name="<?php echo $id; ?>" id="<?php echo $id; ?>" rows="10" cols="50" class="large-text code"><?php echo esc_textarea(gdk_option($id)) ?></textarea></p>
|
<p><textarea name="<?php echo $id; ?>" id="<?php echo $id; ?>" rows="10" cols="50" class="large-text code"><?php echo esc_textarea(gdk_option($id)) ?></textarea></p>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
case 'select':
|
case 'select':
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<label for="<?php echo $id; ?>"></label>
|
<label for="<?php echo $id; ?>"></label>
|
||||||
<label>
|
<label>
|
||||||
<select name="<?php echo $id; ?>" id="<?php echo $id; ?>">
|
<select name="<?php echo $id; ?>" id="<?php echo $id; ?>">
|
||||||
<?php foreach ($option['options'] as $val => $name) : ?>
|
<?php foreach ($option['options'] as $val => $name) : ?>
|
||||||
<option value="<?php echo $val; ?>" <?php selected(gdk_option($id), $val); ?>>
|
<option value="<?php echo $val; ?>" <?php selected(gdk_option($id), $val);
|
||||||
<?php echo $name; ?>
|
?>>
|
||||||
|
<?php echo $name;
|
||||||
|
?>
|
||||||
</option>
|
</option>
|
||||||
<?php endforeach; ?>
|
<?php endforeach;
|
||||||
|
?>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<p class="description"><?php echo $option['desc']; ?></p>
|
<p class="description"><?php echo $option['desc'];
|
||||||
|
?></p>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
case 'radio':
|
case 'radio':
|
||||||
?>
|
?>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<?php foreach ($option['options'] as $val => $name): ?>
|
<?php foreach ($option['options'] as $val => $name): ?>
|
||||||
<label>
|
<label>
|
||||||
|
|
Loading…
Reference in a new issue