Changeset 3393246
- Timestamp:
- 11/10/2025 09:38:04 PM (5 months ago)
- Location:
- propertyhive/trunk
- Files:
-
- 1 added
- 53 edited
-
README.txt (modified) (2 diffs)
-
includes/admin/class-ph-admin-assets.php (modified) (2 diffs)
-
includes/admin/class-ph-admin-post-types.php (modified) (2 diffs)
-
includes/admin/settings/class-ph-settings-custom-fields.php (modified) (1 diff)
-
includes/class-ph-elementor.php (modified) (1 diff)
-
includes/class-ph-rest-api.php (modified) (1 diff)
-
includes/divi-widgets/property-actions.php (modified) (1 diff)
-
includes/divi-widgets/property-address-county.php (modified) (1 diff)
-
includes/divi-widgets/property-address-full.php (modified) (1 diff)
-
includes/divi-widgets/property-address-line-2.php (modified) (1 diff)
-
includes/divi-widgets/property-address-name-number.php (modified) (1 diff)
-
includes/divi-widgets/property-address-postcode.php (modified) (1 diff)
-
includes/divi-widgets/property-address-street.php (modified) (1 diff)
-
includes/divi-widgets/property-address-town-city.php (modified) (1 diff)
-
includes/divi-widgets/property-availability.php (modified) (1 diff)
-
includes/divi-widgets/property-bathrooms.php (modified) (1 diff)
-
includes/divi-widgets/property-bedrooms.php (modified) (1 diff)
-
includes/divi-widgets/property-brochures-link.php (modified) (1 diff)
-
includes/divi-widgets/property-council-tax-band.php (modified) (1 diff)
-
includes/divi-widgets/property-embedded-virtual-tours.php (modified) (1 diff)
-
includes/divi-widgets/property-enquiry-form-link.php (modified) (1 diff)
-
includes/divi-widgets/property-enquiry-form.php (modified) (1 diff)
-
includes/divi-widgets/property-epcs-link.php (modified) (1 diff)
-
includes/divi-widgets/property-epcs.php (modified) (1 diff)
-
includes/divi-widgets/property-features.php (modified) (1 diff)
-
includes/divi-widgets/property-floor-area.php (modified) (1 diff)
-
includes/divi-widgets/property-floorplans-link.php (modified) (1 diff)
-
includes/divi-widgets/property-floorplans.php (modified) (1 diff)
-
includes/divi-widgets/property-full-description.php (modified) (1 diff)
-
includes/divi-widgets/property-gallery.php (modified) (1 diff)
-
includes/divi-widgets/property-image.php (modified) (1 diff)
-
includes/divi-widgets/property-images.php (modified) (1 diff)
-
includes/divi-widgets/property-let-available-date.php (modified) (1 diff)
-
includes/divi-widgets/property-map-link.php (modified) (1 diff)
-
includes/divi-widgets/property-map.php (modified) (1 diff)
-
includes/divi-widgets/property-meta.php (modified) (1 diff)
-
includes/divi-widgets/property-negotiator-email-address.php (modified) (1 diff)
-
includes/divi-widgets/property-negotiator-name.php (modified) (1 diff)
-
includes/divi-widgets/property-negotiator-photo.php (modified) (1 diff)
-
includes/divi-widgets/property-negotiator-telephone-number.php (modified) (1 diff)
-
includes/divi-widgets/property-office-address.php (modified) (1 diff)
-
includes/divi-widgets/property-office-email-address.php (modified) (1 diff)
-
includes/divi-widgets/property-office-name.php (modified) (1 diff)
-
includes/divi-widgets/property-office-telephone-number.php (modified) (1 diff)
-
includes/divi-widgets/property-price.php (modified) (1 diff)
-
includes/divi-widgets/property-reception-rooms.php (modified) (1 diff)
-
includes/divi-widgets/property-reference-number.php (modified) (1 diff)
-
includes/divi-widgets/property-street-view.php (modified) (1 diff)
-
includes/divi-widgets/property-summary-description.php (modified) (1 diff)
-
includes/divi-widgets/property-tenure.php (modified) (1 diff)
-
includes/divi-widgets/property-type.php (modified) (1 diff)
-
includes/elementor-widgets/property-not-on-market-message.php (added)
-
includes/elementor-widgets/property-tabbed-details.php (modified) (3 diffs)
-
propertyhive.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
propertyhive/trunk/README.txt
r3378167 r3393246 3 3 Tags: property, real estate, estate agents, property plugin, property import, propertyhive, property hive, properties, estate agent plugin, rightmove, zoopla, blm, rtdf, jupix, vebra, alto, expertagent, dezrez, expert agent, expertagent, reapit, reaxml, letmc, acquaint 4 4 Requires at least: 5.6 5 Tested up to: 6.8. 26 Stable tag: 2.1.1 15 Tested up to: 6.8.3 6 Stable tag: 2.1.12 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 182 182 183 183 == Changelog == 184 185 = 2.1.12 - 2025-11-10 = 186 * Added new 'Not On Market Message' Elementor widget to display a message when a property is viewed that's no longer on the market 187 * Added the ability to add a custom tab to Elementor 'Tabbed Details' widget 188 * Added Due Date filter to key date admin list 189 * Updated enquiries created via REST API to take into account whether enquiries module is disabled and/or storing of enquiries is disabled in GDPR settings 190 * Catered for custom departments when determining which custom fields to show in settings area 191 * Corrected PHP8.2 warning about creation of dynamic property in Divi widgets 192 * Declared compatibility for WordPress 6.8.3 184 193 185 194 = 2.1.11 - 2025-10-14 = -
propertyhive/trunk/includes/admin/class-ph-admin-assets.php
r3292381 r3393246 75 75 } 76 76 77 if ( in_array( $screen->id, array( 'edit-contact', 'edit-enquiry', 'edit-appraisal', 'edit-viewing', 'edit-offer', 'edit-sale' ) ) )77 if ( in_array( $screen->id, array( 'edit-contact', 'edit-enquiry', 'edit-appraisal', 'edit-viewing', 'edit-offer', 'edit-sale', 'edit-key_date' ) ) ) 78 78 { 79 79 wp_enqueue_style( 'daterangepicker.css', '//cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css' ); … … 213 213 } 214 214 215 if ( in_array( $screen->id, array( 'edit-contact', 'edit-enquiry', 'edit-appraisal', 'edit-viewing', 'edit-offer', 'edit-sale' ) ) )215 if ( in_array( $screen->id, array( 'edit-contact', 'edit-enquiry', 'edit-appraisal', 'edit-viewing', 'edit-offer', 'edit-sale', 'edit-key_date' ) ) ) 216 216 { 217 217 wp_enqueue_script( 'moment.js', '//cdn.jsdelivr.net/momentjs/latest/moment.min.js' ); -
propertyhive/trunk/includes/admin/class-ph-admin-post-types.php
r3292381 r3393246 1219 1219 $output .= $this->key_date_type_filter(); 1220 1220 $output .= $this->key_date_status_filter(); 1221 $output .= $this->date_range_filter(); 1221 1222 1222 1223 echo apply_filters( 'propertyhive_tenancy_filters', $output ); … … 1636 1637 ); 1637 1638 } 1639 1640 $vars = $this->filter_by_date_range($vars, '_date_due'); 1638 1641 } 1639 1642 -
propertyhive/trunk/includes/admin/settings/class-ph-settings-custom-fields.php
r3292381 r3393246 65 65 { 66 66 $commercial_active = true; 67 } 68 69 $default_departments = ph_get_departments(true); 70 $custom_departments = ph_get_custom_departments(false); 71 if ( $custom_departments ) 72 { 73 foreach ( $custom_departments as $key => $custom_department ) 74 { 75 if ( isset($custom_department['based_on']) && get_option('propertyhive_active_departments_' . $key) == 'yes' ) 76 { 77 foreach ( $default_departments as $dept_key => $value ) 78 { 79 if ( $custom_department['based_on'] == $dept_key ) 80 { 81 switch ( $custom_department['based_on'] ) 82 { 83 case "residential-sales": { $residential_active = true; $residential_sales_active = true; } 84 case "residential-lettings": { $residential_active = true; $residential_lettings_active = true; } 85 case "commercial": { $commercial_active = true; } 86 } 87 } 88 } 89 } 90 } 67 91 } 68 92 -
propertyhive/trunk/includes/class-ph-elementor.php
r3350577 r3393246 296 296 'Property Negotiator Email Address', 297 297 'Property Negotiator Photo', 298 'Property Not On Market Message', 298 299 'Back To Search', 299 300 'Property Search Result Count', -
propertyhive/trunk/includes/class-ph-rest-api.php
r3373689 r3393246 111 111 ); 112 112 } 113 114 if ( get_option( 'propertyhive_module_disabled_enquiries', '' ) == 'yes' ) 115 { 116 return new WP_Error( 117 'rest_forbidden', 118 __('The enquiries module is currently disabled.', 'propertyhive'), 119 ['status' => 403] 120 ); 121 } 122 123 if ( get_option( 'propertyhive_store_property_enquiries', 'yes' ) != 'yes' ) 124 { 125 return new WP_Error( 126 'rest_forbidden', 127 __('Storing of property enquiries has been disabled in the GDPR settings.', 'propertyhive'), 128 ['status' => 403] 129 ); 130 } 131 113 132 } 114 133 return $response; -
propertyhive/trunk/includes/divi-widgets/property-actions.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_actions_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-address-county.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_address_county_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-address-full.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_address_full_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-address-line-2.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_address_line_2_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-address-name-number.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_address_name_number_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-address-postcode.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_address_postcode_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-address-street.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_address_street_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-address-town-city.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_address_town_city_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-availability.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_availability_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-bathrooms.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_bathrooms_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-bedrooms.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_bedrooms_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-brochures-link.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_brochures_link_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-council-tax-band.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_council_tax_band_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-embedded-virtual-tours.php
r3318353 r3393246 8 8 public $slug = 'et_pb_property_embedded_virtual_tours_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-enquiry-form-link.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_enquiry_form_link_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-enquiry-form.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_enquiry_form_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-epcs-link.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_epcs_link_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-epcs.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_epcs_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-features.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_features_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-floor-area.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_floor_area_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-floorplans-link.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_floorplans_link_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-floorplans.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_floorplans_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-full-description.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_full_description_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-gallery.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_gallery_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-image.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_image_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-images.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_images_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-let-available-date.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_let_available_date_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-map-link.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_map_link_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-map.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_map_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-meta.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_meta_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-negotiator-email-address.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_negotiator_email_address_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-negotiator-name.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_negotiator_name_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-negotiator-photo.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_negotiator_photo_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-negotiator-telephone-number.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_negotiator_telephone_number_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-office-address.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_office_address_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-office-email-address.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_office_email_address_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-office-name.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_office_name_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-office-telephone-number.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_office_telephone_number_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-price.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_price_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-reception-rooms.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_reception_rooms_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-reference-number.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_reference_number_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-street-view.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_street_view_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-summary-description.php
r2973852 r3393246 8 8 public $slug = 'et_pb_property_summary_description_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-tenure.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_tenure_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/divi-widgets/property-type.php
r3292381 r3393246 8 8 public $slug = 'et_pb_property_type_widget'; 9 9 public $vb_support = 'partial'; 10 public $icon = ''; 10 11 11 12 public function init() { -
propertyhive/trunk/includes/elementor-widgets/property-tabbed-details.php
r3357837 r3393246 122 122 'street_view' => __( 'Street View', 'propertyhive' ), 123 123 'make_enquiry' => __( 'Make Enquiry Form', 'propertyhive' ), 124 'content' => __( 'Other Content', 'propertyhive' ), 124 125 ) ) 126 ], 127 [ 128 'name' => 'tab_content', 129 'label' => __( 'Other Content', 'propertyhive' ), 130 'type' => \Elementor\Controls_Manager::WYSIWYG, 131 'dynamic' => [ 'active' => true ], 132 'label_block' => true, 133 'conditions' => [ 134 'terms' => [ 135 [ 136 'name' => 'tab_display', 137 'operator' => 'contains', 138 'value' => 'content', 139 ], 140 ], 141 ], 125 142 ], 126 143 ], … … 428 445 break; 429 446 } 447 case "content": 448 { 449 if ( ! empty( $item['tab_content'] ) ) 450 { 451 return true; 452 } 453 break; 454 } 430 455 default: 431 456 { … … 843 868 break; 844 869 } 870 case "content": 871 { 872 if ( ! empty( $item['tab_content'] ) ) 873 { 874 echo '<div class="tabbed-custom-content">'; 875 echo $this->parse_text_editor( $item['tab_content'] ); 876 echo '</div>'; 877 } 878 break; 879 } 845 880 } 846 881 -
propertyhive/trunk/propertyhive.php
r3378167 r3393246 4 4 * Plugin URI: https://wordpress.org/plugins/propertyhive/ 5 5 * Description: Property Hive has everything you need to build estate agency websites 6 * Version: 2.1.1 16 * Version: 2.1.12 7 7 * Author: PropertyHive 8 8 * Author URI: https://wp-property-hive.com 9 9 * Requires at least: 5.6 10 * Tested up to: 6.8. 210 * Tested up to: 6.8.3 11 11 * 12 12 * Text Domain: propertyhive … … 28 28 * 29 29 * @class PropertyHive 30 * @version 2.1.1 130 * @version 2.1.12 31 31 */ 32 32 final class PropertyHive { … … 35 35 * @var string 36 36 */ 37 public $version = '2.1.1 1';37 public $version = '2.1.12'; 38 38 39 39 /**
Note: See TracChangeset
for help on using the changeset viewer.