GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
search-field-search_all.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Display the search all input box
4  *
5  * @file class-search-widget.php See for usage
6  */
7 
9 $view_id = $gravityview_view->getViewId();
10 $value = $gravityview_view->search_field['value'];
11 $label = $gravityview_view->search_field['label'];
12 
13 $html_input_type = RGFormsModel::is_html5_enabled() ? 'search' : 'text';
14 ?>
15 
16 <div class="gv-search-box gv-search-field-text gv-search-field-search_all">
17  <div class="gv-search">
18  <?php if( ! gv_empty( $label, false, false ) ) { ?>
19  <label for="gv_search_<?php echo $view_id; ?>"><?php echo esc_html( $label ); ?></label>
20  <?php } ?>
21  <p><input type="<?php echo $html_input_type; ?>" name="gv_search" id="gv_search_<?php echo $view_id; ?>" value="<?php echo esc_attr( $value ); ?>" /></p>
22  </div>
23 </div>
static getInstance( $passed_post=NULL)
gv_empty( $value, $zero_is_empty=true, $allow_string_booleans=true)
Is the value empty?