| 1 |
<?php |
| 2 |
/** |
| 3 |
* Single Property Summary Description |
| 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 |
$summary = get_the_excerpt(); |
| 15 |
|
| 16 |
if ( $summary != '' ) |
| 17 |
{ |
| 18 |
?> |
| 19 |
<div class="summary"> |
| 20 |
|
| 21 |
<h4><?php echo esc_html(__( 'Property Summary', 'propertyhive' )); ?></h4> |
| 22 |
|
| 23 |
<div class="summary-contents"><?php echo apply_filters('propertyhive_summary_description_nl2br', true) ? ph_nl2br($summary) : $summary; ?></div> |
| 24 |
|
| 25 |
</div> |
| 26 |
<?php |
| 27 |
} |
| 28 |
?> |