Update search form template.

This commit is contained in:
Hoang Huu
2019-10-10 10:41:57 +07:00
parent a701ccc5f4
commit f6a07185a8
14 changed files with 157 additions and 91 deletions

View File

@@ -1169,7 +1169,7 @@ function opalestate_get_property_statuses() {
* @param $key
*/
function opalestate_get_property_meta_icon( $key ) {
$classes = '';
$classes = '';
$classes .= 'icon-property-' . esc_attr( $key );
switch ( $key ) {
@@ -1214,3 +1214,21 @@ function opalestate_get_property_meta_icon( $key ) {
return $classes;
}
/**
* Is enable price field in the search forms?
*
* @return bool
*/
function opalestate_is_enable_price_field() {
return 'on' == opalestate_get_option( 'opalestate_ppt_price_opt', 'on' );
}
/**
* Is enable areasize field in the search forms?
*
* @return bool
*/
function opalestate_is_enable_areasize_field() {
return 'on' == opalestate_get_option( 'opalestate_ppt_areasize_opt', 'on' );
}