GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
type_html.php
Go to the documentation of this file.
1 <?php
2 /**
3  * HTML input type - pass pure HTML into settings in the `desc` key
4  * @since 1.17
5  */
7 
8  /**
9  * Display HTML, wrapped in container class
10  */
11  function render_option() {
12  ?>
13  <div class="<?php echo $this->get_label_class(); ?>">
14  <?php echo $this->get_field_desc(); ?>
15  </div>
16  <?php
17  }
18 
19  /**
20  * @since 1.17
21  * @return string
22  */
23  function get_field_desc() {
24  return !empty( $this->field['desc'] ) ? $this->field['desc'] : '';
25  }
26 
27 }
render_option()
Display HTML, wrapped in container class.
Definition: type_html.php:11
Modify option field type by extending this class.
HTML input type - pass pure HTML into settings in the desc key.
Definition: type_html.php:6