Changeset 3161191
- Timestamp:
- 10/02/2024 03:28:25 AM (16 months ago)
- Location:
- essential-real-estate/trunk
- Files:
-
- 6 edited
-
CHANGELOG.md (modified) (1 diff)
-
essential-real-estate.php (modified) (2 diffs)
-
includes/ere-core-functions.php (modified) (5 diffs)
-
public/templates/property/print/qr-image.php (modified) (1 diff)
-
public/templates/property/property-print.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
essential-real-estate/trunk/CHANGELOG.md
r3152440 r3161191 1 1 Changelog 2 2 ========= 3 ### 5.1.0 - October 02, 2024 4 * Fix function 'ere_image_resize_url' 5 6 ### 5.0.9 - September 27, 2024 7 * Fix qr code in property print page 8 3 9 ### 5.0.8 - September 16, 2024 4 10 * Fix enqueue js select2 in shortcode property search map -
essential-real-estate/trunk/essential-real-estate.php
r3152440 r3161191 4 4 * Plugin URI: https://wordpress.org/plugins/essential-real-estate 5 5 * Description: The latest plugins Real Estate you want. Completely all features, easy customize and override layout, functions. Supported global payment, build market, single, list property, single agent...etc. All fields are defined dynamic, they will help you can build any kind of Real Estate website. 6 * Version: 5. 0.86 * Version: 5.1.0 7 7 * Author: G5Theme 8 8 * Author URI: http://themeforest.net/user/g5theme … … 29 29 30 30 if (!defined('ERE_PLUGIN_VER')) { 31 define('ERE_PLUGIN_VER', '5. 0.8');31 define('ERE_PLUGIN_VER', '5.1.0'); 32 32 } 33 33 if (!defined('ERE_PLUGIN_FILE')) { -
essential-real-estate/trunk/includes/ere-core-functions.php
r3138823 r3161191 455 455 456 456 $file_path = sanitize_text_field($_SERVER['DOCUMENT_ROOT']) . $file_path['path']; 457 $wp_upload_ folder = wp_upload_dir();458 $wp_upload_folder = $wp_upload_ folder['basedir'];457 $wp_upload_dir = wp_upload_dir(); 458 $wp_upload_folder = $wp_upload_dir['basedir']; 459 459 460 460 $file_path = explode('/uploads/', $file_path); 461 461 462 if (is_array($file_path)) { 462 463 if (count($file_path) > 1) { … … 473 474 global $blog_id; 474 475 $file_path = str_replace("/sites/{$blog_id}/sites/{$blog_id}/", "/sites/{$blog_id}/", $file_path); 475 } 476 $wp_upload_dir = wp_get_upload_dir(); 477 } 478 476 479 477 480 // Destination width and height variables … … 498 501 // Get the destination file name 499 502 $dest_file_name = "{$dir}/{$file_name}"; 500 501 503 if (!file_exists($dest_file_name)) { 502 504 … … 505 507 * We only want to resize Media Library images, so we can be sure they get deleted correctly when appropriate. 506 508 */ 507 $get_attachment = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE guid=%s", $url)); 508 if (!$get_attachment) 509 $attachment = $wpdb->get_row( 510 $wpdb->prepare( 511 "SELECT ID as post_id FROM $wpdb->posts WHERE guid = %s", 512 $url 513 ) 514 ); 515 if (!$attachment) { 516 $relative_file_path = str_replace($wp_upload_dir['baseurl'] . '/', '', $url); 517 $attachment = $wpdb->get_row( 518 $wpdb->prepare( 519 "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_wp_attached_file' AND meta_value = %s", 520 $relative_file_path 521 ) 522 ); 523 } 524 525 if ($attachment) { 526 $attachment_id = $attachment->post_id; 527 } else { 509 528 return array('url' => $url, 'width' => $width, 'height' => $height); 529 } 530 510 531 511 532 // Load WordPress Image Editor … … 560 581 561 582 // Add the resized dimensions to original image metadata (so we can delete our resized images when the original image is delete from the Media Library) 562 $metadata = wp_get_attachment_metadata($ get_attachment[0]->ID);583 $metadata = wp_get_attachment_metadata($attachment_id); 563 584 if (isset($metadata['image_meta'])) { 564 585 $metadata['image_meta']['resized_images'][] = $resized_width . 'x' . $resized_height; 565 wp_update_attachment_metadata($ get_attachment[0]->ID, $metadata);586 wp_update_attachment_metadata($attachment_id, $metadata); 566 587 } 567 588 -
essential-real-estate/trunk/public/templates/property/print/qr-image.php
r3123067 r3161191 9 9 ?> 10 10 <img class="ere__print-property-qr-image" 11 src="https:// chart.googleapis.com/chart?chs=100x100&cht=qr&chl=<?php echo esc_url(get_permalink($property_id)); ?>&choe=UTF-8"11 src="https://quickchart.io/qr?text=<?php echo esc_url(get_permalink($property_id)); ?>&size=100" 12 12 title="<?php echo esc_attr(get_the_title($property_id)); ?>"/> -
essential-real-estate/trunk/public/templates/property/property-print.php
r3123067 r3161191 27 27 remove_action( 'wp_head', 'wp_custom_css_cb', 101 ); 28 28 remove_action( 'wp_head', 'wp_site_icon', 99 ); 29 add_action('wp_enqueue_scripts','ere_dequeue_assets_print_property',9999);29 //add_action('wp_enqueue_scripts','ere_dequeue_assets_print_property',9999); 30 30 function ere_dequeue_assets_print_property() { 31 31 foreach (wp_styles()->registered as $k => $v) { -
essential-real-estate/trunk/readme.txt
r3152440 r3161191 5 5 Requires at least: 4.5 6 6 Tested up to: 6.6.2 7 Stable tag: 5. 0.87 Stable tag: 5.1.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 99 99 100 100 == Changelog == 101 = 5.1.0 = 102 * Fix function 'ere_image_resize_url' 103 104 = 5.0.9 = 105 * Fix qr code in property print page 106 101 107 = 5.0.8 = 102 108 * Fix enqueue js select2 in shortcode property search map
Note: See TracChangeset
for help on using the changeset viewer.