| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Class Pix_Customize_Textarea_Control |
| 5 |
* A simple Text Control |
| 6 |
*/ |
| 7 |
class Pix_Customize_Textarea_Control extends Pix_Customize_Control { |
| 8 |
public $type = 'textarea'; |
| 9 |
public $live = false; |
| 10 |
|
| 11 |
/** |
| 12 |
* Render the control's content. |
| 13 |
* |
| 14 |
* @since 3.4.0 |
| 15 |
*/ |
| 16 |
public function render_content() { ?> |
| 17 |
|
| 18 |
<label> |
| 19 |
<?php if ( ! empty( $this->label ) ) : ?> |
| 20 |
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> |
| 21 |
<?php endif; ?> |
| 22 |
<textarea id="<?php echo $this->id; ?>" rows="5" <?php $this->link(); ?>><?php echo esc_textarea( $this->value() ); ?></textarea> |
| 23 |
<?php if ( ! empty( $this->description ) ) : ?> |
| 24 |
<span class="description customize-control-description"><?php echo $this->description; ?></span> |
| 25 |
<?php endif; ?> |
| 26 |
</label> |
| 27 |
<?php |
| 28 |
|
| 29 |
} |
| 30 |
} |
| 31 |
|