PluginProbe
Customify / 2.10.0
Customify v2.10.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 / includes / customizer-controls / class-Pix_Customize_Radio_HTML_Control.php

class-Pix_Customize_Radio_HTML_Control.php in Customify 2.10.0, at includes/customizer-controls/class-Pix_Customize_Radio_HTML_Control.php

43 lines 1.0 KB
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_Radio_HTML_Control
5 */
6 class Pix_Customize_Radio_HTML_Control extends Pix_Customize_Control {
7 public $type = 'radio_html';
8 public $description = null;
9
10 /**
11 * Render the control's content.
12 */
13 public function render_content() { ?>
14
15 <label>
16 <?php if ( ! empty( $this->label ) ) { ?>
17 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
18 <?php } ?>
19
20 <div class="customify_radio_html">
21 <?php
22 foreach ( $this->choices as $value => $html ) { ?>
23 <label>
24 <input
25 type="radio"
26 name="<?php echo esc_attr( $this->setting->id ); ?>"
27 value="<?php echo esc_attr( $value ); ?>"
28 <?php $this->link(); ?>
29 <?php echo selected( $this->value(), $value, false ); ?>
30 />
31 <div><?php echo $html; ?></div>
32 </label>
33 <?php } ?>
34 </div>
35
36 <?php if ( ! empty( $this->description ) ) { ?>
37 <span class="description customize-control-description"><?php echo $this->description; ?></span>
38 <?php } ?>
39 </label>
40
41 <?php }
42 }
43