PluginProbe
Property Hive / 2.3.0
Property Hive v2.3.0
2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 All 261 releases
propertyhive / templates / content-single-property.php

content-single-property.php in Property Hive 2.3.0, at templates/content-single-property.php

68 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- WordPress returns the escaped password form HTML and its trusted PHP form filter.
21 echo get_the_password_form();
22 return;
23 }
24 ?>
25
26 <div id="property-<?php the_ID(); ?>" <?php post_class(); ?>>
27
28 <?php
29 /**
30 * propertyhive_before_single_property_summary hook
31 *
32 * @hooked propertyhive_template_not_on_market - 5
33 * @hooked propertyhive_show_property_images - 10
34 */
35 do_action( 'propertyhive_before_single_property_summary' );
36 ?>
37
38 <div class="summary entry-summary">
39
40 <?php
41 /**
42 * propertyhive_single_property_summary hook
43 *
44 * @hooked propertyhive_template_single_title - 5
45 * @hooked propertyhive_template_single_floor_area - 7
46 * @hooked propertyhive_template_single_price - 10
47 * @hooked propertyhive_template_single_meta - 20
48 * @hooked propertyhive_template_single_sharing - 30
49 */
50 do_action( 'propertyhive_single_property_summary' );
51 ?>
52
53 </div><!-- .summary -->
54
55 <?php
56 /**
57 * propertyhive_after_single_property_summary hook
58 *
59 * @hooked propertyhive_template_single_actions - 10
60 * @hooked propertyhive_template_single_features - 20
61 * @hooked propertyhive_template_single_summary - 30
62 * @hooked propertyhive_template_single_description - 40
63 */
64 do_action( 'propertyhive_after_single_property_summary' );
65 ?>
66
67 </div><!-- #property-<?php the_ID(); ?> -->
68