GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
field-section-html.php
Go to the documentation of this file.
1 <?php
2 /**
3  * The default form section output template.
4  *
5  * @global \GV\Template_Context $gravityview
6  * @since 2.0
7  */
8 
9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10  gravityview()->log->error( '{file} template loaded without context', array( 'file' => __FILE__ ) );
11  return;
12 }
13 
14 $field = $gravityview->field->field;
15 $form = $gravityview->view->form->form;
16 $entry = $gravityview->entry->as_entry();
17 
18 if ( ! empty( $field['description'] ) ) {
19  echo GravityView_API::replace_variables( $field['description'], $form, $entry );
20 }
static replace_variables( $text, $form=array(), $entry=array(), $url_encode=false, $esc_html=true, $nl2br=true, $format='html', $aux_data=array())
Alias for GravityView_Merge_Tags::replace_variables()
Definition: class-api.php:118
gravityview()
The main GravityView wrapper function.
if(! isset( $gravityview)||empty( $gravityview->template)) $field
The default form section output template.