|
@@ 199-206 (lines=8) @@
|
| 196 |
|
|
| 197 |
|
switch ( $setting['type'] ) { |
| 198 |
|
|
| 199 |
|
case 'text' : |
| 200 |
|
?> |
| 201 |
|
<p> |
| 202 |
|
<label for="<?php echo $this->get_field_id( $key ); ?>"><?php echo $setting['label']; ?></label> |
| 203 |
|
<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 ); ?>" /> |
| 204 |
|
</p> |
| 205 |
|
<?php |
| 206 |
|
break; |
| 207 |
|
|
| 208 |
|
case 'number' : |
| 209 |
|
?> |
|
@@ 230-237 (lines=8) @@
|
| 227 |
|
<?php |
| 228 |
|
break; |
| 229 |
|
|
| 230 |
|
case 'checkbox' : |
| 231 |
|
?> |
| 232 |
|
<p> |
| 233 |
|
<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 ); ?> /> |
| 234 |
|
<label for="<?php echo $this->get_field_id( $key ); ?>"><?php echo $setting['label']; ?></label> |
| 235 |
|
</p> |
| 236 |
|
<?php |
| 237 |
|
break; |
| 238 |
|
|
| 239 |
|
case 'textarea' : |
| 240 |
|
?> |