| 1 |
<form class="eventpost-search-form" id="eventpost-search-form-<?php echo $list_id; ?>"> |
| 2 |
<input type="hidden" name="evenpost_search" value="<?php echo $list_id; ?>"> |
| 3 |
<?php if($params['q']) : ?> |
| 4 |
<div class="eventpost-search-group"> |
| 5 |
<label for="eventpost-search-label-<?php echo $list_id; ?>"> |
| 6 |
<?php _e('Name or keywords', 'event-post'); ?> |
| 7 |
</label> |
| 8 |
<input id="eventpost-search-label-<?php echo $list_id; ?>" type="search" name="q" value="<?php echo esc_attr($q); ?>"/> |
| 9 |
</div> |
| 10 |
<?php endif; ?> |
| 11 |
|
| 12 |
<?php if($params['dates']) : ?> |
| 13 |
<div class="eventpost-search-group"> |
| 14 |
<label for="eventpost-search-from-<?php echo $list_id; ?>"> |
| 15 |
<?php _e('Between:', 'event-post'); ?> |
| 16 |
</label> |
| 17 |
<input id="eventpost-search-from-<?php echo $list_id; ?>" type="text" name="from" value="<?php echo esc_attr($from); ?>" class="eventpost-datepicker-simple"/> |
| 18 |
|
| 19 |
<label for="eventpost-search-to-<?php echo $list_id; ?>"> |
| 20 |
<?php _e('to:', 'event-post'); ?> |
| 21 |
</label> |
| 22 |
<input id="eventpost-search-from-<?php echo $list_id; ?>" type="text" name="to" value="<?php echo esc_attr($to); ?>" class="eventpost-datepicker-simple"/> |
| 23 |
</div> |
| 24 |
<?php endif; ?> |
| 25 |
|
| 26 |
<?php if($params['tax']) : ?> |
| 27 |
<label for="eventpost-search-tax-<?php echo $list_id; ?>"> |
| 28 |
<?php _e('In:', 'event-post'); ?> |
| 29 |
</label> |
| 30 |
<select id="eventpost-search-tax-<?php echo $list_id; ?>" name="tax"> |
| 31 |
<option value=""></option> |
| 32 |
</select> |
| 33 |
<?php endif; ?> |
| 34 |
|
| 35 |
<button class="btn btn-primary" type="submit"> |
| 36 |
<?php _e('Find events', 'event-post'); ?> |
| 37 |
</button> |
| 38 |
</form> |
| 39 |
|