| 1 |
<?php |
| 2 |
/** |
| 3 |
* Property search form |
| 4 |
* |
| 5 |
* @author PropertyHive |
| 6 |
* @package PropertyHive/Templates |
| 7 |
* @version 1.0.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 11 |
?> |
| 12 |
|
| 13 |
<?php do_action( 'propertyhive_before_search_form', $id ); ?> |
| 14 |
|
| 15 |
<form name="ph_property_search" class="property-search-form property-search-form-<?php echo esc_attr($id); ?> clear" action="<?php echo apply_filters( 'propertyhive_search_form_action', get_post_type_archive_link( 'property' ) ); ?>" method="get" role="form"> |
| 16 |
|
| 17 |
<?php do_action( 'propertyhive_before_search_form_controls', $id, $form_controls ); ?> |
| 18 |
|
| 19 |
<?php foreach ( $form_controls as $key => $field ) : ?> |
| 20 |
|
| 21 |
<?php ph_form_field( $key, $field ); ?> |
| 22 |
|
| 23 |
<?php endforeach; ?> |
| 24 |
|
| 25 |
<?php do_action( 'propertyhive_after_search_form_controls', $id, $form_controls ); ?> |
| 26 |
|
| 27 |
<input type="submit" value="<?php echo esc_attr__( 'Search', 'propertyhive' ); ?>"> |
| 28 |
|
| 29 |
<?php do_action( 'propertyhive_after_search_form_submit', $id, $form_controls ); ?> |
| 30 |
|
| 31 |
</form> |
| 32 |
|
| 33 |
<?php do_action( 'propertyhive_after_search_form', $id ); ?> |