| 1 |
<?php |
| 2 |
/** |
| 3 |
* Loop Price |
| 4 |
* |
| 5 |
* @author PropertyHive |
| 6 |
* @package PropertyHive/Templates |
| 7 |
* @version 1.0.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 11 |
|
| 12 |
global $property; |
| 13 |
?> |
| 14 |
<div class="price"> |
| 15 |
|
| 16 |
<?php echo $property->get_formatted_price(); ?> |
| 17 |
|
| 18 |
<?php |
| 19 |
if ( |
| 20 |
$property->department == 'residential-sales' |
| 21 |
|| |
| 22 |
( $property->department == 'commercial' && $property->for_sale == 'yes' ) |
| 23 |
) |
| 24 |
{ |
| 25 |
echo ' <span class="price-qualifier">' . $property->price_qualifier . '</span>'; |
| 26 |
} |
| 27 |
|
| 28 |
if ( $fees != '' ) |
| 29 |
{ |
| 30 |
echo ' <span class="lettings-fees"><a data-fancybox data-src="#propertyhive_lettings_fees_popup" href="javascript:;">' . __( 'Tenancy Info', 'propertyhive' ) . '</a></span>'; |
| 31 |
|
| 32 |
echo '<div id="propertyhive_lettings_fees_popup" style="display:none; max-width:500px;"><h3>' . __( 'Tenancy Info', 'propertyhive' ) . '</h3>' . $fees . '</div>'; |
| 33 |
} |
| 34 |
?> |
| 35 |
|
| 36 |
</div> |