| 1 |
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" style="margin-bottom:10px;"> |
| 2 |
<tr> |
| 3 |
<td width="25%"><?php |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; |
| 7 |
} |
| 8 |
|
| 9 |
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone. |
| 10 |
$image = $property->get_main_photo_src(); |
| 11 |
if ($image !== FALSE) |
| 12 |
{ |
| 13 |
?> |
| 14 |
<a href="<?php echo esc_url( get_the_permalink( $property->id ) ); ?>"><img src="<?php echo esc_url( $image ); ?>" style="max-width:100%" alt="<?php echo esc_attr( get_the_title( $property->id ) ); ?>"></a> |
| 15 |
<?php |
| 16 |
} |
| 17 |
?></td> |
| 18 |
<td> |
| 19 |
<h2><a href="<?php echo esc_url( get_the_permalink( $property->id ) ); ?>"><?php echo esc_html( get_the_title( $property->id ) ); ?></a></h2> |
| 20 |
<p> |
| 21 |
<strong><?php echo wp_kses_post( $property->get_formatted_price() ); ?></strong><?php |
| 22 |
if ( $property->price_qualifier != '' ) |
| 23 |
{ |
| 24 |
echo ' <span class="price-qualifier">' . esc_html( $property->price_qualifier ) . '</span>'; |
| 25 |
} |
| 26 |
?> | <?php |
| 27 |
if ( $property->department != 'commercial' && ph_get_custom_department_based_on( $property->department ) != 'commercial' ) |
| 28 |
{ |
| 29 |
echo esc_html( $property->bedrooms ) . ' bed '; |
| 30 |
} |
| 31 |
else |
| 32 |
{ |
| 33 |
echo wp_kses_post( $property->get_formatted_floor_area() ) . ' | '; |
| 34 |
} |
| 35 |
echo esc_html( $property->get_property_type() ); ?> | <?php echo esc_html( $property->get_availability() ); ?></p> |
| 36 |
<p><?php echo wp_kses_post( $property->post_excerpt ); ?></p> |
| 37 |
</td> |
| 38 |
</tr> |
| 39 |
</table> |