| 1 |
<?php if ( ! defined('ABSPATH')) { |
| 2 |
exit; |
| 3 |
} // Exit if accessed directly |
| 4 |
|
| 5 |
/** |
| 6 |
* Template: Single Listing Description |
| 7 |
*/ |
| 8 |
global $listing; ?> |
| 9 |
|
| 10 |
<div class="wpsight-listing-section wpsight-listing-section-description"> |
| 11 |
|
| 12 |
<?php do_action( 'wpsight_listing_single_description_before', $listing->ID ); ?> |
| 13 |
|
| 14 |
<?php if( wpsight_is_listing_not_available() ) : ?> |
| 15 |
<div class="wpsight-alert wpsight-alert-small wpsight-alert-not-available"> |
| 16 |
<?php $not_available_text = apply_filters( 'wpsight_listing_text_not_available', __( 'This property is currently not available.', 'wpcasa' ) ); ?> |
| 17 |
<?php echo wp_kses( $not_available_text, wpsight_allowed_html_tags() ); ?> |
| 18 |
</div> |
| 19 |
<?php endif; ?> |
| 20 |
|
| 21 |
<div class="wpsight-listing-description" itemprop="description"> |
| 22 |
<?php $listing_content = apply_filters( 'wpsight_listing_description', wpsight_format_content( $listing->post_content ) ); ?> |
| 23 |
<?php echo wp_kses( $listing_content, wpsight_allowed_html_tags() ); ?> |
| 24 |
</div> |
| 25 |
|
| 26 |
<?php do_action( 'wpsight_listing_single_description_after', $listing->ID ); ?> |
| 27 |
|
| 28 |
</div><!-- .wpsight-listing-section --> |