| 1 |
<?php |
| 2 |
/** |
| 3 |
* Single Property Features |
| 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 $post, $property; |
| 13 |
|
| 14 |
$features = $property->get_features(); |
| 15 |
|
| 16 |
if ( !empty($features) ) |
| 17 |
{ |
| 18 |
?> |
| 19 |
<div class="features"> |
| 20 |
|
| 21 |
<h4><?php echo esc_html(__( 'Property Features', 'propertyhive' )); ?></h4> |
| 22 |
|
| 23 |
<ul> |
| 24 |
<?php |
| 25 |
foreach ($features as $feature) |
| 26 |
{ |
| 27 |
?> |
| 28 |
<li><?php echo esc_html($feature); ?></li> |
| 29 |
<?php |
| 30 |
} |
| 31 |
?> |
| 32 |
</ul> |
| 33 |
|
| 34 |
</div> |
| 35 |
<?php |
| 36 |
} |
| 37 |
?> |