|
@@ 177-184 (lines=8) @@
|
| 174 |
|
|
| 175 |
|
switch ( $setting['type'] ) { |
| 176 |
|
|
| 177 |
|
case 'text' : |
| 178 |
|
?> |
| 179 |
|
<p> |
| 180 |
|
<label for="<?php echo $this->get_field_id( $key ); ?>"><?php echo $setting['label']; ?></label> |
| 181 |
|
<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 ); ?>" /> |
| 182 |
|
</p> |
| 183 |
|
<?php |
| 184 |
|
break; |
| 185 |
|
|
| 186 |
|
case 'number' : |
| 187 |
|
?> |
|
@@ 208-215 (lines=8) @@
|
| 205 |
|
<?php |
| 206 |
|
break; |
| 207 |
|
|
| 208 |
|
case 'checkbox' : |
| 209 |
|
?> |
| 210 |
|
<p> |
| 211 |
|
<input class="<?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 ); ?> /> |
| 212 |
|
<label for="<?php echo $this->get_field_id( $key ); ?>"><?php echo $setting['label']; ?></label> |
| 213 |
|
</p> |
| 214 |
|
<?php |
| 215 |
|
break; |
| 216 |
|
} |
| 217 |
|
} |
| 218 |
|
} |