PluginProbe
Property Hive / 2.3.1
Property Hive v2.3.1
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 / includes / admin / views / html-viewing-details-lightbox.php

html-viewing-details-lightbox.php in Property Hive 2.3.1, at includes/admin/views/html-viewing-details-lightbox.php

106 lines 4.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
2
3 <div class="propertyhive-lightbox-details">
4
5 <div class="propertyhive-lightbox-left">
6
7 <!-- VIEWING DETAILS -->
8 <div class="propertyhive-lightbox-viewing-details">
9
10 <h3><?php echo esc_html(__( 'Viewing Details', 'propertyhive' )); ?></h3>
11
12 <div id="propertyhive_viewing_details_meta_box_container">
13 <?php
14 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope.
15 $readonly = true;
16 include( PH()->plugin_path() . '/includes/admin/views/html-viewing-details-meta-box.php' );
17 ?>
18 </div>
19
20 <?php
21 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope.
22 $readonly = true;
23 include( PH()->plugin_path() . '/includes/admin/views/html-viewing-event-meta-box.php' );
24 ?>
25
26 </div>
27
28 <!-- PROPERTY DETAILS -->
29 <div class="propertyhive-lightbox-property-details">
30
31 <h3><?php echo esc_html(__( 'Property Details', 'propertyhive' )); ?></h3>
32
33 <?php
34 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope.
35 $property_id = $viewing->property_id;
36 include( PH()->plugin_path() . '/includes/admin/views/html-lightbox-property-details.php' );
37 ?>
38
39 </div>
40
41 <!-- OWNER/LANDLORD DETAILS -->
42 <div class="propertyhive-lightbox-contact-details">
43
44 <h3><?php echo ( get_post_meta( (int) $viewing->property_id, '_department', true ) == 'residential-lettings' ? esc_html__( 'Landlord Details', 'propertyhive' ) : esc_html__( 'Owner Details', 'propertyhive' ) ); ?></h3>
45
46 <?php
47 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope.
48 $contact_ids = get_post_meta((int)$viewing->property_id, '_owner_contact_id', TRUE);
49 include( PH()->plugin_path() . '/includes/admin/views/html-lightbox-contact-details.php' );
50 ?>
51
52 </div>
53
54 <!-- APPLICANT DETAILS -->
55 <div class="propertyhive-lightbox-contact-details">
56
57 <h3><?php echo esc_html(__( 'Applicant Details', 'propertyhive' )); ?></h3>
58
59 <?php
60 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope.
61 $contact_ids = get_post_meta($post->ID, '_applicant_contact_id');
62 include( PH()->plugin_path() . '/includes/admin/views/html-lightbox-contact-details.php' );
63 ?>
64
65 </div>
66
67 </div>
68
69 <!-- NOTES -->
70 <div class="propertyhive-lightbox-notes">
71
72 <h3><?php echo esc_html(__( 'Notes', 'propertyhive' )); ?></h3>
73
74 <?php
75 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope.
76 $section = 'viewing';
77
78 echo '<div class="propertyhive-notes-container" id="propertyhive_' . esc_attr( $section ) . '_notes_container">';
79 include( PH()->plugin_path() . '/includes/admin/views/html-display-notes.php' );
80 echo '</div>';
81 ?>
82
83 </div>
84
85 <!-- ACTIONS -->
86 <div class="propertyhive-lightbox-actions">
87
88 <h3><?php echo esc_html(__( 'Actions', 'propertyhive' )); ?></h3>
89
90 <div id="propertyhive_viewing_actions_meta_box_container">
91 <?php include( PH()->plugin_path() . '/includes/admin/views/html-viewing-actions.php' ); ?>
92 </div>
93
94 </div>
95
96 <div style="clear:both"></div>
97
98 <!-- BUTTONS -->
99 <div class="propertyhive-lightbox-buttons">
100 <a href="" class="button button-close"><?php echo esc_html(__( 'Close', 'propertyhive' )); ?></a>
101 <a href="<?php echo esc_url(get_edit_post_link($post->ID)); ?>" class="button button-primary"><?php echo esc_html(__( 'Go To Viewing', 'propertyhive' )); ?></a>
102 <a href="" class="button button-prev" style="display:none">&lt;</a>
103 <a href="" class="button button-next" style="display:none">&gt;</a>
104 </div>
105
106 </div>