@@ 458-468 (lines=11) @@ | ||
455 | */ |
|
456 | protected function render_content() { |
|
457 | switch( $this->type ) { |
|
458 | case 'checkbox': |
|
459 | ?> |
|
460 | <label> |
|
461 | <input type="checkbox" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); checked( $this->value() ); ?> /> |
|
462 | <?php echo esc_html( $this->label ); ?> |
|
463 | <?php if ( ! empty( $this->description ) ) : ?> |
|
464 | <span class="description customize-control-description"><?php echo $this->description; ?></span> |
|
465 | <?php endif; ?> |
|
466 | </label> |
|
467 | <?php |
|
468 | break; |
|
469 | case 'radio': |
|
470 | if ( empty( $this->choices ) ) |
|
471 | return; |
|
@@ 513-525 (lines=13) @@ | ||
510 | </label> |
|
511 | <?php |
|
512 | break; |
|
513 | case 'textarea': |
|
514 | ?> |
|
515 | <label> |
|
516 | <?php if ( ! empty( $this->label ) ) : ?> |
|
517 | <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> |
|
518 | <?php endif; |
|
519 | if ( ! empty( $this->description ) ) : ?> |
|
520 | <span class="description customize-control-description"><?php echo $this->description; ?></span> |
|
521 | <?php endif; ?> |
|
522 | <textarea rows="5" <?php $this->link(); ?>><?php echo esc_textarea( $this->value() ); ?></textarea> |
|
523 | </label> |
|
524 | <?php |
|
525 | break; |
|
526 | case 'dropdown-pages': |
|
527 | ?> |
|
528 | <label> |