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-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['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:
' . 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];
}
echo '