PluginProbe
Property Hive / 2.2.3
Property Hive v2.2.3
2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 All 261 releases
propertyhive / templates / global / search-form.php

search-form.php in Property Hive 2.2.3, at templates/global/search-form.php

33 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 ); ?>