|
@@ 207-214 (lines=8) @@
|
| 204 |
|
|
| 205 |
|
switch ( $setting['type'] ) { |
| 206 |
|
|
| 207 |
|
case 'text' : |
| 208 |
|
?> |
| 209 |
|
<p> |
| 210 |
|
<label for="<?php echo $this->get_field_id( $key ); ?>"><?php echo $setting['label']; ?></label> |
| 211 |
|
<input class="widefat <?php echo esc_attr( $class ); ?>" id="<?php echo esc_attr( $this->get_field_id( $key ) ); ?>" name="<?php echo $this->get_field_name( $key ); ?>" type="text" value="<?php echo esc_attr( $value ); ?>" /> |
| 212 |
|
</p> |
| 213 |
|
<?php |
| 214 |
|
break; |
| 215 |
|
|
| 216 |
|
case 'number' : |
| 217 |
|
?> |
|
@@ 250-257 (lines=8) @@
|
| 247 |
|
<?php |
| 248 |
|
break; |
| 249 |
|
|
| 250 |
|
case 'checkbox' : |
| 251 |
|
?> |
| 252 |
|
<p> |
| 253 |
|
<input class="checkbox <?php echo esc_attr( $class ); ?>" id="<?php echo esc_attr( $this->get_field_id( $key ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( $key ) ); ?>" type="checkbox" value="1" <?php checked( $value, 1 ); ?> /> |
| 254 |
|
<label for="<?php echo $this->get_field_id( $key ); ?>"><?php echo $setting['label']; ?></label> |
| 255 |
|
</p> |
| 256 |
|
<?php |
| 257 |
|
break; |
| 258 |
|
|
| 259 |
|
// Default: run an action |
| 260 |
|
default : |