| 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 |
$readonly = true; |
| 15 |
include( PH()->plugin_path() . '/includes/admin/views/html-viewing-details-meta-box.php' ); |
| 16 |
?> |
| 17 |
</div> |
| 18 |
|
| 19 |
<?php |
| 20 |
$readonly = true; |
| 21 |
include( PH()->plugin_path() . '/includes/admin/views/html-viewing-event-meta-box.php' ); |
| 22 |
?> |
| 23 |
|
| 24 |
</div> |
| 25 |
|
| 26 |
<!-- PROPERTY DETAILS --> |
| 27 |
<div class="propertyhive-lightbox-property-details"> |
| 28 |
|
| 29 |
<h3><?php echo esc_html(__( 'Property Details', 'propertyhive' )); ?></h3> |
| 30 |
|
| 31 |
<?php |
| 32 |
$property_id = $viewing->property_id; |
| 33 |
include( PH()->plugin_path() . '/includes/admin/views/html-lightbox-property-details.php' ); |
| 34 |
?> |
| 35 |
|
| 36 |
</div> |
| 37 |
|
| 38 |
<!-- OWNER/LANDLORD DETAILS --> |
| 39 |
<div class="propertyhive-lightbox-contact-details"> |
| 40 |
|
| 41 |
<h3><?php echo esc_html(__( ( get_post_meta((int)$viewing->property_id, '_department', TRUE) == 'residential-lettings' ? 'Landlord' : 'Owner' ) . ' Details', 'propertyhive' )); ?></h3> |
| 42 |
|
| 43 |
<?php |
| 44 |
$contact_ids = get_post_meta((int)$viewing->property_id, '_owner_contact_id', TRUE); |
| 45 |
include( PH()->plugin_path() . '/includes/admin/views/html-lightbox-contact-details.php' ); |
| 46 |
?> |
| 47 |
|
| 48 |
</div> |
| 49 |
|
| 50 |
<!-- APPLICANT DETAILS --> |
| 51 |
<div class="propertyhive-lightbox-contact-details"> |
| 52 |
|
| 53 |
<h3><?php echo esc_html(__( 'Applicant Details', 'propertyhive' )); ?></h3> |
| 54 |
|
| 55 |
<?php |
| 56 |
$contact_ids = get_post_meta($post->ID, '_applicant_contact_id'); |
| 57 |
include( PH()->plugin_path() . '/includes/admin/views/html-lightbox-contact-details.php' ); |
| 58 |
?> |
| 59 |
|
| 60 |
</div> |
| 61 |
|
| 62 |
</div> |
| 63 |
|
| 64 |
<!-- NOTES --> |
| 65 |
<div class="propertyhive-lightbox-notes"> |
| 66 |
|
| 67 |
<h3><?php echo esc_html(__( 'Notes', 'propertyhive' )); ?></h3> |
| 68 |
|
| 69 |
<?php |
| 70 |
$section = 'viewing'; |
| 71 |
|
| 72 |
echo '<div class="propertyhive-notes-container" id="propertyhive_' . $section . '_notes_container">'; |
| 73 |
include( PH()->plugin_path() . '/includes/admin/views/html-display-notes.php' ); |
| 74 |
echo '</div>'; |
| 75 |
?> |
| 76 |
|
| 77 |
</div> |
| 78 |
|
| 79 |
<!-- ACTIONS --> |
| 80 |
<div class="propertyhive-lightbox-actions"> |
| 81 |
|
| 82 |
<h3><?php echo esc_html(__( 'Actions', 'propertyhive' )); ?></h3> |
| 83 |
|
| 84 |
<div id="propertyhive_viewing_actions_meta_box_container"> |
| 85 |
<?php include( PH()->plugin_path() . '/includes/admin/views/html-viewing-actions.php' ); ?> |
| 86 |
</div> |
| 87 |
|
| 88 |
</div> |
| 89 |
|
| 90 |
<div style="clear:both"></div> |
| 91 |
|
| 92 |
<!-- BUTTONS --> |
| 93 |
<div class="propertyhive-lightbox-buttons"> |
| 94 |
<a href="" class="button button-close"><?php echo esc_html(__( 'Close', 'propertyhive' )); ?></a> |
| 95 |
<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> |
| 96 |
<a href="" class="button button-prev" style="display:none"><</a> |
| 97 |
<a href="" class="button button-next" style="display:none">></a> |
| 98 |
</div> |
| 99 |
|
| 100 |
</div> |