GravityView  2.10.1
The best, easiest way to display Gravity Forms entries on your website.
search-field-submit.php
Go to the documentation of this file.
1 <?php
2 /**
3  * @since 2.0
4  */
5 
7 $view_id = $gravityview_view->getViewId();
8 ?>
9 <div class="gv-search-box gv-search-box-submit">
10  <?php
11 
12  // Output the Clear button, if enabled
14 
16 
17  foreach ( $args as $key => $value ) {
18  if ( is_array( $value ) ) {
19  foreach ( $value as $k => $v ) {
20  ?>
21  <input type="hidden" name="<?php echo esc_attr( sprintf( '%s[%s]', $key, $k ) ); ?>" value="<?php echo esc_attr( $v ); ?>" />
22  <?php
23  }
24  } else {
25  ?>
26  <input type="hidden" name="<?php echo esc_attr( $key ); ?>" value="<?php echo esc_attr( $value ); ?>" />
27  <?php
28  }
29  }
30 
31  ?>
32  <input type="hidden" name="mode" value="<?php echo esc_attr( $gravityview_view->search_mode ); ?>" />
33  <input type="submit" class="button gv-search-button" id="gv_search_button_<?php echo $view_id; ?>" value="<?php esc_attr_e( 'Search', 'gravityview' ); ?>" />
34 </div>
static getInstance( $passed_post=NULL)
$gravityview_view
gv_get_query_args()
Returns query parameters from $_GET with reserved internal GravityView keys removed.
Definition: class-api.php:781
static the_clear_search_button()
Output the Clear Search Results button.