PluginProbe
Customify / 2.7.0
Customify v2.7.0
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_Select2_Control.php

class-Pix_Customize_Select2_Control.php in Customify 2.7.0, at features/customizer/controls/class-Pix_Customize_Select2_Control.php

34 lines 870 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_Select2_Control
5 */
6 class Pix_Customize_Select2_Control extends Pix_Customize_Control {
7 public $type = 'select2';
8
9 /**
10 * Render the control's content.
11 */
12 public function render_content() {
13 ?>
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
19 <select <?php $this->link(); ?> class="customify_select2">
20 <?php
21 foreach ( $this->choices as $value => $label )
22 echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . $label . '</option>';
23 ?>
24 </select>
25
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