@@ 400-407 (lines=8) @@ | ||
397 | * @param array $args |
|
398 | * @return void |
|
399 | */ |
|
400 | public function form_field_text ( $args ) { |
|
401 | $options = $this->get_settings(); |
|
402 | ||
403 | echo '<input id="' . esc_attr( $args['key'] ) . '" name="' . $this->token . '[' . esc_attr( $args['key'] ) . ']" size="40" type="text" value="' . esc_attr( $options[$args['key']] ) . '" />' . "\n"; |
|
404 | if ( isset( $args['data']['description'] ) ) { |
|
405 | echo '<span class="description">' . $args['data']['description'] . '</span>' . "\n"; |
|
406 | } |
|
407 | } // End form_field_text() |
|
408 | ||
409 | /** |
|
410 | * Generate color picker field. |
|
@@ 416-424 (lines=9) @@ | ||
413 | * @param array $args |
|
414 | * @return void |
|
415 | */ |
|
416 | public function form_field_color ( $args ) { |
|
417 | $options = $this->get_settings(); |
|
418 | ||
419 | echo '<input id="' . esc_attr( $args['key'] ) . '" name="' . $this->token . '[' . esc_attr( $args['key'] ) . ']" size="40" type="text" class="color" value="' . esc_attr( $options[$args['key']] ) . '" />' . "\n"; |
|
420 | echo '<div style="position:absolute;background:#FFF;z-index:99;border-radius:100%;" class="colorpicker"></div>'; |
|
421 | if ( isset( $args['data']['description'] ) ) { |
|
422 | echo '<span class="description">' . $args['data']['description'] . '</span>' . "\n"; |
|
423 | } |
|
424 | } // End form_field_text() |
|
425 | ||
426 | /** |
|
427 | * Generate checkbox field. |
|
@@ 459-466 (lines=8) @@ | ||
456 | * @param array $args |
|
457 | * @return void |
|
458 | */ |
|
459 | public function form_field_textarea ( $args ) { |
|
460 | $options = $this->get_settings(); |
|
461 | ||
462 | echo '<textarea id="' . esc_attr( $args['key'] ) . '" name="' . $this->token . '[' . esc_attr( $args['key'] ) . ']" cols="42" rows="5">' . esc_html( $options[$args['key']] ) . '</textarea>' . "\n"; |
|
463 | if ( isset( $args['data']['description'] ) ) { |
|
464 | echo '<p><span class="description">' . esc_html( $args['data']['description'] ) . '</span></p>' . "\n"; |
|
465 | } |
|
466 | } // End form_field_textarea() |
|
467 | ||
468 | /** |
|
469 | * Generate select box field. |