Created
August 10, 2016 16:55
-
-
Save propertyhive/4f150953c142f910d1de586005db4086 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Loop Price | |
* | |
* @author PropertyHive | |
* @package PropertyHive/Templates | |
* @version 1.0.0 | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
global $property; | |
?> | |
<div class="address"> | |
<?php echo $property->get_formatted_full_address(); ?> | |
</div> | |
<div class="bedrooms"> | |
Bedrooms: <?php echo $property->bedrooms; ?> | |
</div> | |
<div class="price"> | |
Price: | |
<?php echo $property->get_formatted_price(); ?> | |
<?php | |
if ($property->department == 'residential-sales') | |
{ | |
echo ' <span class="price-qualifier">' . $property->price_qualifier . '</span>'; | |
} | |
?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
awesome, works a treat, thanks!