| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Class Pix_Customize_Ace_Editor_Control |
| 5 |
* The ace editor at your feet. |
| 6 |
*/ |
| 7 |
class Pix_Customize_Ace_Editor_Control extends Pix_Customize_Control { |
| 8 |
public $type = 'ace_editor'; |
| 9 |
|
| 10 |
public $editor_type = 'editor_type'; |
| 11 |
|
| 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 |
<textarea <?php $this->link(); ?> id="<?php echo sanitize_html_class( $this->id ) ?>_textarea" class="customify_ace_editor_text"><?php echo esc_textarea( $this->value() ); ?></textarea> |
| 19 |
<div class="customify_ace_editor" id="<?php echo sanitize_html_class( $this->id ); ?>" data-editor_type="<?php echo $this->editor_type; ?>"></div> |
| 20 |
<?php if ( ! empty( $this->description ) ) : ?> |
| 21 |
<span class="description customize-control-description"><?php echo $this->description; ?></span> |
| 22 |
<?php endif; ?> |
| 23 |
</label> |
| 24 |
<?php |
| 25 |
|
| 26 |
} |
| 27 |
} |
| 28 |
|