PluginProbe
Customify / 1.5.5
Customify v1.5.5
2.10.9 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.7.1 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.0.1 1.6.5 1.7.0 1.7.1 All 77 releases
customify / features / customizer / controls / class-Pix_Customize_Ace_Editor_Control.php

class-Pix_Customize_Ace_Editor_Control.php in Customify 1.5.5, at features/customizer/controls/class-Pix_Customize_Ace_Editor_Control.php

28 lines 971 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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