Matching Properties For ()

Applicant Requirements

'; if ( isset($applicant_profile['department']) && $applicant_profile['department'] == 'residential-sales' && isset($applicant_profile['max_price_actual']) && $applicant_profile['max_price_actual'] != '' && $applicant_profile['max_price_actual'] != 0 ) { echo '
Maximum Price:
£' . number_format($applicant_profile['max_price']) . '
'; } if ( isset($applicant_profile['department']) && $applicant_profile['department'] == 'residential-sales' ) { if ( $percentage_lower != '' && $percentage_higher != '' ) { $match_price_range_lower = ''; if ( !isset($applicant_profile['match_price_range_lower_actual']) || ( isset($applicant_profile['match_price_range_lower_actual']) && $applicant_profile['match_price_range_lower_actual'] == '' ) ) { if ( isset($applicant_profile['max_price_actual']) && $applicant_profile['max_price_actual'] != '' ) { $match_price_range_lower = $applicant_profile['max_price_actual'] - ( $applicant_profile['max_price_actual'] * ( $percentage_lower / 100 ) ); } } else { $match_price_range_lower = $applicant_profile['match_price_range_lower_actual']; } $match_price_range_higher = ''; if ( !isset($applicant_profile['match_price_range_higher_actual']) || ( isset($applicant_profile['match_price_range_higher_actual']) && $applicant_profile['match_price_range_higher_actual'] == '' ) ) { if ( isset($applicant_profile['max_price_actual']) && $applicant_profile['max_price_actual'] != '' ) { $match_price_range_higher = $applicant_profile['max_price_actual'] + ( $applicant_profile['max_price_actual'] * ( $percentage_higher / 100 ) ); } } else { $match_price_range_higher = $applicant_profile['match_price_range_higher_actual']; } if ( $match_price_range_lower != '' && $match_price_range_higher != '' ) { echo '
Match Price Range:
£' . number_format($match_price_range_lower) . ' to £' . number_format($match_price_range_higher) . '
'; } } } if ( isset($applicant_profile['department']) && $applicant_profile['department'] == 'residential-lettings' && isset($applicant_profile['max_price_actual']) && $applicant_profile['max_price_actual'] != '' && $applicant_profile['max_price_actual'] != 0 ) { echo '
Maximum Rent:
£' . number_format($applicant_profile['max_rent']) . ' ' . $applicant_profile['rent_frequency'] . '
'; } if ( isset($applicant_profile['department']) && ( $applicant_profile['department'] == 'residential-sales' || $applicant_profile['department'] == 'residential-lettings' ) ) { if ( isset($applicant_profile['min_beds']) && $applicant_profile['min_beds'] != '' && $applicant_profile['min_beds'] != 0 ) { echo '
Minimum Beds:
' . $applicant_profile['min_beds'] . '
'; } if ( isset($applicant_profile['property_types']) && is_array($applicant_profile['property_types']) && !empty($applicant_profile['property_types']) ) { $terms = get_terms('property_type', array('hide_empty' => false, 'fields' => 'names', 'include' => $applicant_profile['property_types'])); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) { $sliced_terms = array_slice( $terms, 0, 2 ); echo '
Property Types:
' . implode(", ", $sliced_terms) . ( (count($terms) > 2) ? ' + ' . (count($terms) - 2) . ' more' : '' ) . '
'; } } } if ( isset($applicant_profile['department']) && ( $applicant_profile['department'] == 'commercial' ) ) { if ( isset($applicant_profile['available_as']) && is_array($applicant_profile['available_as']) && !empty($applicant_profile['available_as']) ) { $available_as = array(); if ( in_array('sale', $applicant_profile['available_as']) ) { $available_as[] = 'For Sale'; } if ( in_array('rent', $applicant_profile['available_as']) ) { $available_as[] = 'To Rent'; } echo '
Available As:
' . implode(", ", $available_as) .'
'; } if ( (isset($applicant_profile['min_floor_area_actual']) && $applicant_profile['min_floor_area_actual'] != '') || (isset($applicant_profile['max_floor_area_actual']) && $applicant_profile['max_floor_area_actual'] != '') ) { echo '
Floor Area:
'; $sizes = array('min' => '', 'max'); if ( isset($applicant_profile['min_floor_area_actual']) && $applicant_profile['min_floor_area_actual'] != '' ) { $sizes['min'] = $applicant_profile['min_floor_area_actual']; } if ( isset($applicant_profile['max_floor_area_actual']) && $applicant_profile['max_floor_area_actual'] != '' ) { $sizes['max'] = $applicant_profile['max_floor_area_actual']; } if ( $sizes['min'] != '' && $sizes['max'] != '' ) { echo number_format($sizes['min']) . ' - ' . number_format($sizes['max']) . ' Sq Ft'; } if ( $sizes['min'] != '' && $sizes['max'] == '' ) { echo 'From ' . number_format($sizes['min']) . ' Sq Ft'; } if ( $sizes['min'] == '' && $sizes['max'] != '' ) { echo 'Up To ' . number_format($sizes['max']) . ' Sq Ft'; } echo '
'; } if ( isset($applicant_profile['commercial_property_types']) && is_array($applicant_profile['commercial_property_types']) && !empty($applicant_profile['commercial_property_types']) ) { $terms = get_terms('commercial_property_type', array('hide_empty' => false, 'fields' => 'names', 'include' => $applicant_profile['commercial_property_types'])); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) { $sliced_terms = array_slice( $terms, 0, 2 ); echo '
Property Types:
' . implode(", ", $sliced_terms) . ( (count($terms) > 2) ? ' + ' . (count($terms) - 2) . ' more' : '' ) . '
'; } } } if ( isset($applicant_profile['locations']) && is_array($applicant_profile['locations']) && !empty($applicant_profile['locations']) ) { $terms = get_terms('location', array('hide_empty' => false, 'fields' => 'names', 'include' => $applicant_profile['locations'])); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) { $sliced_terms = array_slice( $terms, 0, 2 ); echo '
Locations:
' . implode(", ", $sliced_terms) . ( (count($terms) > 2) ? ' + ' . (count($terms) - 2) . ' more' : '' ) . '
'; } } if ( isset($applicant_profile['notes']) && $applicant_profile['notes'] != '' ) { echo '
Additional Requirement Notes:
' . nl2br( strip_tags( $applicant_profile['notes'] ) ) . '
'; } echo '
'; ?> id]) && is_array($applicant_profile_match_history[$property->id]) && !empty($applicant_profile_match_history[$property->id]) ) { $previously_sent = $applicant_profile_match_history[$property->id]; } $on_market_change_date = $property->_on_market_change_date; $price_change_date = $property->_price_change_date; echo '
'; echo '
'; $image_url = $property->get_main_photo_src(); if ( $image_url !== FALSE ) { echo '' . addslashes($property->get_formatted_summary_address()) . ''; } echo '
'; echo '
'; echo '

' . $property->get_formatted_summary_address() . '

'; echo '
' . ( ($property->_department == 'residential-lettings') ? __('Rent', 'propertyhive') : __('Price', 'propertyhive') ) . ': ' . $property->price_qualifier . ' ' . $property->get_formatted_price() . ' | '; if ($property->department != 'commercial') { echo $property->bedrooms . ' bed | '; } else { $floor_area = $property->get_formatted_floor_area(); if ( $floor_area != '' ) { echo $floor_area . ' | '; } } $property_type = $property->get_property_type(); if ( $property_type != '' ) { echo $property_type . ' | '; } echo ' ' . $property->get_availability() . '
'; echo '
' . strip_tags(get_the_excerpt($property->id)) . '
'; echo '

'; do_action( 'propertyhive_applicant_match_send_methods', $contact_id, $applicant_profile_id, $property->id ); echo '
'; echo '
'; echo '
'; echo '
'; } } ?>