← All changes
|
includes/admin/views/html-viewing-details-lightbox.php
+8
-2
2.2.3
→
2.4.0
View file →
| @@ -10,8 +10,9 @@ | ||
| 10 | 10 | <h3><?php echo esc_html(__( 'Viewing Details', 'propertyhive' )); ?></h3> |
| 11 | 11 | |
| 12 | 12 | <div id="propertyhive_viewing_details_meta_box_container"> |
| 13 | 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. | |
| 14 | 15 | $readonly = true; |
| 15 | 16 | include( PH()->plugin_path() . '/includes/admin/views/html-viewing-details-meta-box.php' ); |
| 16 | 17 | ?> |
| 17 | 18 | </div> |
| @@ -16,8 +17,9 @@ | ||
| 16 | 17 | ?> |
| 17 | 18 | </div> |
| 18 | 19 | |
| 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. | |
| 20 | 22 | $readonly = true; |
| 21 | 23 | include( PH()->plugin_path() . '/includes/admin/views/html-viewing-event-meta-box.php' ); |
| 22 | 24 | ?> |
| 23 | 25 | |
| @@ -28,8 +30,9 @@ | ||
| 28 | 30 | |
| 29 | 31 | <h3><?php echo esc_html(__( 'Property Details', 'propertyhive' )); ?></h3> |
| 30 | 32 | |
| 31 | 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. | |
| 32 | 35 | $property_id = $viewing->property_id; |
| 33 | 36 | include( PH()->plugin_path() . '/includes/admin/views/html-lightbox-property-details.php' ); |
| 34 | 37 | ?> |
| 35 | 38 | |
| @@ -37,11 +40,12 @@ | ||
| 37 | 40 | |
| 38 | 41 | <!-- OWNER/LANDLORD DETAILS --> |
| 39 | 42 | <div class="propertyhive-lightbox-contact-details"> |
| 40 | 43 | |
| 41 | - <h3><?php echo esc_html(__( ( get_post_meta((int)$viewing->property_id, '_department', TRUE) == 'residential-lettings' ? 'Landlord' : 'Owner' ) . ' Details', 'propertyhive' )); ?></h3> | |
| 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> | |
| 42 | 45 | |
| 43 | 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. | |
| 44 | 48 | $contact_ids = get_post_meta((int)$viewing->property_id, '_owner_contact_id', TRUE); |
| 45 | 49 | include( PH()->plugin_path() . '/includes/admin/views/html-lightbox-contact-details.php' ); |
| 46 | 50 | ?> |
| 47 | 51 | |
| @@ -52,8 +56,9 @@ | ||
| 52 | 56 | |
| 53 | 57 | <h3><?php echo esc_html(__( 'Applicant Details', 'propertyhive' )); ?></h3> |
| 54 | 58 | |
| 55 | 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. | |
| 56 | 61 | $contact_ids = get_post_meta($post->ID, '_applicant_contact_id'); |
| 57 | 62 | include( PH()->plugin_path() . '/includes/admin/views/html-lightbox-contact-details.php' ); |
| 58 | 63 | ?> |
| 59 | 64 | |
| @@ -66,11 +71,12 @@ | ||
| 66 | 71 | |
| 67 | 72 | <h3><?php echo esc_html(__( 'Notes', 'propertyhive' )); ?></h3> |
| 68 | 73 | |
| 69 | 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. | |
| 70 | 76 | $section = 'viewing'; |
| 71 | 77 | |
| 72 | - echo '<div class="propertyhive-notes-container" id="propertyhive_' . $section . '_notes_container">'; | |
| 78 | + echo '<div class="propertyhive-notes-container" id="propertyhive_' . esc_attr( $section ) . '_notes_container">'; | |
| 73 | 79 | include( PH()->plugin_path() . '/includes/admin/views/html-display-notes.php' ); |
| 74 | 80 | echo '</div>'; |
| 75 | 81 | ?> |
| 76 | 82 | |