| 1 |
<?php |
| 2 |
/** |
| 3 |
* The Template for displaying a single property. |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/propertyhive/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 |
get_header( 'propertyhive' ); ?> |
| 15 |
|
| 16 |
<?php |
| 17 |
/** |
| 18 |
* propertyhive_before_main_content hook |
| 19 |
* |
| 20 |
* @hooked propertyhive_output_content_wrapper - 10 (outputs opening divs for the content) |
| 21 |
*/ |
| 22 |
do_action( 'propertyhive_before_main_content' ); |
| 23 |
?> |
| 24 |
|
| 25 |
<?php while ( have_posts() ) : the_post(); ?> |
| 26 |
|
| 27 |
<?php ph_get_template_part( 'content', 'single-property' ); ?> |
| 28 |
|
| 29 |
<?php endwhile; // end of the loop. ?> |
| 30 |
|
| 31 |
<?php |
| 32 |
/** |
| 33 |
* propertyhive_after_main_content hook |
| 34 |
* |
| 35 |
* @hooked propertyhive_output_content_wrapper_end - 10 (outputs closing divs for the content) |
| 36 |
*/ |
| 37 |
do_action( 'propertyhive_after_main_content' ); |
| 38 |
?> |
| 39 |
|
| 40 |
<?php get_footer( 'propertyhive' ); ?> |