GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
type_radio.php
Go to the documentation of this file.
1 <?php
2 /**
3  * select
4  */
6 
7  function render_option() { ?>
8  <div class="gv-label">
9  <?php
10  echo $this->get_field_label();
11  ?>
12  </div>
13  <?php
14  echo $this->get_tooltip();
15  echo $this->get_field_desc() . ' ';
16 
17  $this->render_input();
18 
19  }
20 
21  function render_input( $override_input = null ) {
22  if( isset( $override_input ) ) {
23  echo $override_input;
24  return;
25  }
26 
27  foreach( $this->field['options'] as $value => $label ) : ?>
28  <label class="<?php echo $this->get_label_class(); ?>">
29  <input name="<?php echo esc_attr( $this->name ); ?>" id="<?php echo $this->get_field_id(); ?>-<?php echo esc_attr( $value ); ?>" type="radio" value="<?php echo esc_attr( $value ); ?>" <?php checked( $value, $this->value, true ); ?> />&nbsp;<?php echo esc_html( $label ); ?>
30  </label>
31 <?php
32  endforeach;
33  }
34 }
35 
get_field_desc()
Retrieve field description.
render_input( $override_input=null)
Definition: type_radio.php:21
Modify option field type by extending this class.
get_field_label()
Retrieve field label.