PluginProbe
Customify / 2.5.2
Customify v2.5.2
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_Text_Control.php

class-Pix_Customize_Text_Control.php in Customify 2.5.2, at features/customizer/controls/class-Pix_Customize_Text_Control.php

34 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class Pix_Customize_Text_Control
4 * A simple 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 * @since 3.4.0
14 */
15 public function render_content() {
16 // here we need an array of classes which should be affected by the live preview
17 // if ( ! empty( $this->live ) && is_array( $this->live ) ) {
18 // $this->input_attrs['data-live_preview_classes'] = implode( ',', $this->live );
19 // $this->input_attrs['class'] = 'customify_text_live_preview';
20 // } ?>
21 <label>
22 <?php if ( ! empty( $this->label ) ) : ?>
23 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
24 <?php endif; ?>
25 <input type="<?php echo esc_attr( $this->type ); ?>" <?php $this->input_attrs(); ?> value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); ?> />
26 <?php if ( ! empty( $this->description ) ) : ?>
27 <span class="description customize-control-description"><?php echo $this->description; ?></span>
28 <?php endif; ?>
29 </label>
30 <?php
31
32 }
33 }
34