| 1 |
<?php |
| 2 |
/** |
| 3 |
* Loop Summary |
| 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 |
$summary_length = apply_filters('propertyhive_search_summary_length', 300); |
| 15 |
?> |
| 16 |
<div class="summary"> |
| 17 |
|
| 18 |
<?php |
| 19 |
echo substr(strip_tags($property->post_excerpt), 0, $summary_length); |
| 20 |
if ( strlen(strip_tags($property->post_excerpt)) > $summary_length ) { echo '...'; } |
| 21 |
?> |
| 22 |
|
| 23 |
</div> |