| 1 |
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" style="margin-bottom:10px;"> |
| 2 |
<tr> |
| 3 |
<td width="25%"><?php |
| 4 |
$image = $property->get_main_photo_src(); |
| 5 |
if ($image !== FALSE) |
| 6 |
{ |
| 7 |
?> |
| 8 |
<a href="<?php echo get_the_permalink( $property->id ); ?>"><img src="<?php echo $image; ?>" style="max-width:100%" alt="<?php echo get_the_title( $property->id ); ?>"></a> |
| 9 |
<?php |
| 10 |
} |
| 11 |
?></td> |
| 12 |
<td> |
| 13 |
<h2><a href="<?php echo get_the_permalink( $property->id ); ?>"><?php echo get_the_title( $property->id ); ?></a></h2> |
| 14 |
<p> |
| 15 |
<strong><?php echo $property->get_formatted_price(); ?></strong> | <?php |
| 16 |
if ( $property->department != 'commercial' ) |
| 17 |
{ |
| 18 |
echo $property->bedrooms . ' bed '; |
| 19 |
} |
| 20 |
else |
| 21 |
{ |
| 22 |
echo $property->get_formatted_floor_area() . ' | '; |
| 23 |
} |
| 24 |
echo $property->get_property_type(); ?> | <?php echo $property->get_availability(); ?></p> |
| 25 |
<p><?php echo $property->post_excerpt; ?></p> |
| 26 |
</td> |
| 27 |
</tr> |
| 28 |
</table> |