| 1 |
<?php |
| 2 |
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped,WordPress.Security.EscapeOutput.ExceptionNotEscaped,WordPress.Security.EscapeOutput.UnsafePrintingFunction -- Legacy Customify view output contains trusted config HTML, dynamic CSS/JS, or WordPress Customizer binding attributes. |
| 3 |
/** |
| 4 |
* Class Pix_Customize_Text_Control |
| 5 |
*/ |
| 6 |
class Pix_Customize_Text_Control extends Pix_Customize_Control { |
| 7 |
public $type = 'text'; |
| 8 |
public $live = false; |
| 9 |
|
| 10 |
/** |
| 11 |
* Render the control's content. |
| 12 |
*/ |
| 13 |
public function render_content() { ?> |
| 14 |
<label> |
| 15 |
<?php if ( ! empty( $this->label ) ) : ?> |
| 16 |
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> |
| 17 |
<?php endif; ?> |
| 18 |
<input type="<?php echo esc_attr( $this->type ); ?>" <?php $this->input_attrs(); ?> value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); ?> /> |
| 19 |
<?php if ( ! empty( $this->description ) ) : ?> |
| 20 |
<span class="description customize-control-description"><?php echo $this->description; ?></span> |
| 21 |
<?php endif; ?> |
| 22 |
</label> |
| 23 |
<?php |
| 24 |
|
| 25 |
} |
| 26 |
} |
| 27 |
|