GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
search-field-entry_date.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Display the search by entry date input boxes
4  *
5  * @see class-search-widget.php
6  */
7 
9 $view_id = $gravityview_view->getViewId();
10 $value = $gravityview_view->search_field['value'];
11 $label = $gravityview_view->search_field['label'];
12 
13 ?>
14 
15 <div class="gv-search-box gv-search-date gv-search-date-range gv-search-field-entry_date">
16  <?php if( ! gv_empty( $label, false ) ) { ?>
17  <label for="gv_start_date_<?php echo $view_id; ?>"><?php echo esc_html( $label ); ?></label>
18  <?php } ?>
19  <p>
20  <input name="gv_start" id="gv_start_date_<?php echo $view_id; ?>" type="text" class="<?php echo esc_html( $gravityview_view->datepicker_class ); ?>" placeholder="<?php esc_attr_e('Start date', 'gravityview' ); ?>" value="<?php echo $value['start']; ?>">
21  <input name="gv_end" id="gv_end_date_<?php echo $view_id; ?>" type="text" class="<?php echo esc_html( $gravityview_view->datepicker_class ); ?>" placeholder="<?php esc_attr_e('End date', 'gravityview' ); ?>" value="<?php echo $value['end']; ?>">
22  </p>
23 </div>
gv_empty($value, $zero_is_empty=true, $allow_string_booleans=true)
Is the value empty?
$value
$gravityview_view
Display the search by entry date input boxes.
$view_id
$label
static getInstance($passed_post=NULL)