| 1 |
<?php |
| 2 |
/** |
| 3 |
* The template for displaying property content in the single-property.php template |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/propertyhive/content-single-property.php |
| 6 |
* |
| 7 |
* @author PropertyHive |
| 8 |
* @package PropertyHive/Templates |
| 9 |
* @version 1.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 13 |
|
| 14 |
global $property; |
| 15 |
?> |
| 16 |
|
| 17 |
<?php |
| 18 |
if ( post_password_required() ) |
| 19 |
{ |
| 20 |
echo get_the_password_form(); |
| 21 |
return; |
| 22 |
} |
| 23 |
?> |
| 24 |
|
| 25 |
<div id="property-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 26 |
|
| 27 |
<?php |
| 28 |
/** |
| 29 |
* propertyhive_before_single_property_summary hook |
| 30 |
* |
| 31 |
* @hooked propertyhive_template_not_on_market - 5 |
| 32 |
* @hooked propertyhive_show_property_images - 10 |
| 33 |
*/ |
| 34 |
do_action( 'propertyhive_before_single_property_summary' ); |
| 35 |
?> |
| 36 |
|
| 37 |
<div class="summary entry-summary"> |
| 38 |
|
| 39 |
<?php |
| 40 |
/** |
| 41 |
* propertyhive_single_property_summary hook |
| 42 |
* |
| 43 |
* @hooked propertyhive_template_single_title - 5 |
| 44 |
* @hooked propertyhive_template_single_floor_area - 7 |
| 45 |
* @hooked propertyhive_template_single_price - 10 |
| 46 |
* @hooked propertyhive_template_single_meta - 20 |
| 47 |
* @hooked propertyhive_template_single_sharing - 30 |
| 48 |
*/ |
| 49 |
do_action( 'propertyhive_single_property_summary' ); |
| 50 |
?> |
| 51 |
|
| 52 |
</div><!-- .summary --> |
| 53 |
|
| 54 |
<?php |
| 55 |
/** |
| 56 |
* propertyhive_after_single_property_summary hook |
| 57 |
* |
| 58 |
* @hooked propertyhive_template_single_actions - 10 |
| 59 |
* @hooked propertyhive_template_single_features - 20 |
| 60 |
* @hooked propertyhive_template_single_summary - 30 |
| 61 |
* @hooked propertyhive_template_single_description - 40 |
| 62 |
*/ |
| 63 |
do_action( 'propertyhive_after_single_property_summary' ); |
| 64 |
?> |
| 65 |
|
| 66 |
</div><!-- #property-<?php the_ID(); ?> --> |