PluginProbe
Property Hive / 1.4.6
Property Hive v1.4.6
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 / single-property / meta.php

meta.php in Property Hive 1.4.6, at templates/single-property/meta.php

76 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Single Property Meta
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 $post, $property;
13 ?>
14 <div class="property_meta">
15
16 <?php do_action( 'propertyhive_property_meta_start' ); ?>
17
18 <ul>
19
20 <?php do_action( 'propertyhive_property_meta_list_start' ); ?>
21
22 <?php if ( $property->reference_number != '' ) : ?><li class="ref"><?php _e( 'Ref', 'propertyhive' ); echo ': ' . $property->reference_number; ?></li><?php endif; ?>
23
24 <?php if ( $property->property_type != '' ) { ?><li class="type"><?php _e( 'Type', 'propertyhive' ); echo ': ' . $property->property_type; ?></li><?php } ?>
25
26 <?php if ( $property->availability != '' ) { ?><li class="availability"><?php _e( 'Availability', 'propertyhive' ); echo ': ' . $property->availability; ?></li><?php } ?>
27
28 <?php if ( $property->department != 'commercial' ) { ?>
29
30 <?php if ( $property->bedrooms > 0 ) { ?><li class="bedrooms"><?php _e( 'Bedrooms', 'propertyhive' ); echo ': ' . $property->bedrooms; ?></li><?php } ?>
31
32 <?php if ( $property->bathrooms > 0 ) { ?><li class="bathrooms"><?php _e( 'Bathrooms', 'propertyhive' ); echo ': ' . $property->bathrooms; ?></li><?php } ?>
33
34 <?php if ( $property->reception_rooms > 0 ) { ?><li class="receptions"><?php _e( 'Reception Rooms', 'propertyhive' ); echo ': ' . $property->reception_rooms; ?></li><?php } ?>
35
36 <?php if ( $property->parking != '' ) { ?><li class="parking"><?php _e( 'Parking', 'propertyhive' ); echo ': ' . $property->parking; ?></li><?php } ?>
37
38 <?php if ( $property->outside_space != '' ) { ?><li class="outside-space"><?php _e( 'Outside Space', 'propertyhive' ); echo ': ' . $property->outside_space; ?></li><?php } ?>
39
40 <?php
41 switch ( $property->department )
42 {
43 case "residential-sales":
44 {
45 ?>
46
47 <?php if ( $property->tenure != '' ) { ?><li class="tenure"><?php _e( 'Tenure', 'propertyhive' ); echo ': ' . $property->tenure; ?></li><?php } ?>
48
49 <?php
50 break;
51 }
52 case "residential-lettings":
53 {
54 ?>
55
56 <?php if ( $property->furnished != '' ) { ?><li class="furnished"><?php _e( 'Furnished', 'propertyhive' ); echo ': ' . $property->furnished; ?></li><?php } ?>
57
58 <?php if ( $property->deposit > 0 ) { ?><li class="deposit"><?php _e( 'Deposit', 'propertyhive' ); echo ': ' . $property->get_formatted_deposit(); ?></li><?php } ?>
59
60 <?php if ( $property->available_date != '') { ?><li class="available"><?php _e( 'Available', 'propertyhive' ); echo ': ' . $property->get_available_date(); ?></li><?php } ?>
61
62 <?php
63 break;
64 }
65 }
66 ?>
67
68 <?php } // end if residential ?>
69
70 <?php do_action( 'propertyhive_property_meta_list_end' ); ?>
71
72 </ul>
73
74 <?php do_action( 'propertyhive_property_meta_end' ); ?>
75
76 </div>