| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 4 |
|
| 5 |
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. |
| 6 |
$property = new PH_Property((int)$property_id); |
| 7 |
|
| 8 |
?> |
| 9 |
|
| 10 |
<div class="thumbnail"> |
| 11 |
<img src="<?php echo esc_url($property->get_main_photo_src()); ?>" alt=""> |
| 12 |
</div> |
| 13 |
|
| 14 |
<div class="details"> |
| 15 |
|
| 16 |
<div class="address"><a href="<?php echo esc_url(get_edit_post_link((int)$property_id)); ?>"><?php echo esc_html($property->get_formatted_summary_address()); ?></a></div> |
| 17 |
|
| 18 |
<div class="price"><?php |
| 19 |
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Price producers escape stored values before trusted currency, commercial and propertyhive_price_output HTML filters. |
| 20 |
echo $property->get_formatted_price(); ?></div> |
| 21 |
|
| 22 |
</div> |
| 23 |
|
| 24 |
<div style="clear:both"></div> |