Changeset 3395453
- Timestamp:
- 11/14/2025 02:57:36 AM (5 months ago)
- Location:
- simply-rets
- Files:
-
- 1 deleted
- 5 edited
- 12 copied
-
tags/3.1.1 (copied) (copied from simply-rets/trunk)
-
tags/3.1.1/assets/css/owl.carousel.min.css (copied) (copied from simply-rets/trunk/assets/css/owl.carousel.min.css)
-
tags/3.1.1/assets/css/owl.theme.default.min.css (copied) (copied from simply-rets/trunk/assets/css/owl.theme.default.min.css)
-
tags/3.1.1/assets/css/owl.theme.min.css (deleted)
-
tags/3.1.1/assets/css/simply-rets-client.css (copied) (copied from simply-rets/trunk/assets/css/simply-rets-client.css)
-
tags/3.1.1/assets/js/owl.carousel.min.js (copied) (copied from simply-rets/trunk/assets/js/owl.carousel.min.js)
-
tags/3.1.1/assets/js/simply-rets-client.js (copied) (copied from simply-rets/trunk/assets/js/simply-rets-client.js)
-
tags/3.1.1/readme.txt (copied) (copied from simply-rets/trunk/readme.txt) (2 diffs)
-
tags/3.1.1/simply-rets-admin.php (copied) (copied from simply-rets/trunk/simply-rets-admin.php)
-
tags/3.1.1/simply-rets-api-helper.php (copied) (copied from simply-rets/trunk/simply-rets-api-helper.php) (2 diffs)
-
tags/3.1.1/simply-rets-openhouses.php (modified) (2 diffs)
-
tags/3.1.1/simply-rets-post-pages.php (copied) (copied from simply-rets/trunk/simply-rets-post-pages.php)
-
tags/3.1.1/simply-rets-shortcode.php (copied) (copied from simply-rets/trunk/simply-rets-shortcode.php)
-
tags/3.1.1/simply-rets.php (copied) (copied from simply-rets/trunk/simply-rets.php) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/simply-rets-api-helper.php (modified) (2 diffs)
-
trunk/simply-rets-openhouses.php (modified) (2 diffs)
-
trunk/simply-rets.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simply-rets/tags/3.1.1/readme.txt
r3386733 r3395453 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.8 7 Stable tag: 3.1. 07 Stable tag: 3.1.1 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 237 237 238 238 == Changelog == 239 240 = 3.1.1 = 241 242 * FIX: Fix "Contact us about this listing" link when using custom contact form 243 * FIX: Properly check user timezone setting when rendering open house times 239 244 240 245 = 3.1.0 = -
simply-rets/tags/3.1.1/simply-rets-api-helper.php
r3386733 r3395453 1161 1161 1162 1162 $upcoming_openhouses_text = 1163 $upcoming_openhouses === 1 ? " upcoming open house" : "upcoming open houses";1163 $upcoming_openhouses === 1 ? " upcoming open house" : " upcoming open houses"; 1164 1164 1165 1165 $next_openhouses_banner = '<div class="sr-listing-openhouses-banner">' … … 1944 1944 // Use custom form if configured 1945 1945 if ($custom_form != false) { 1946 return do_shortcode($custom_form); 1946 return '<div id="sr-contact-form">' 1947 . do_shortcode($custom_form) 1948 . '</div>' ; 1947 1949 } 1948 1950 -
simply-rets/tags/3.1.1/simply-rets-openhouses.php
r3219948 r3395453 40 40 * house times for display. 41 41 */ 42 $default_time_zone = timezone_name_get( 43 get_option("sr_date_default_timezone", wp_timezone()) 44 ); 45 46 $start_time_date = date_create( 47 $openhouse->startTime, 48 timezone_open($default_time_zone) 49 ); 50 51 $end_time_date = date_create( 52 $openhouse->endTime, 53 timezone_open($default_time_zone) 54 ); 42 43 // 1. Get the setting. 44 $timezone_setting = get_option("sr_date_default_timezone", wp_timezone()); 45 $timezone_name_string = ''; 46 47 // 2. Reliably get the timezone *string* name 48 if ($timezone_setting instanceof DateTimeZone) { 49 $timezone_name_string = timezone_name_get($timezone_setting); 50 } elseif (is_string($timezone_setting) && !empty($timezone_setting)) { 51 $timezone_name_string = $timezone_setting; 52 } else { 53 $timezone_name_string = wp_timezone_string(); 54 } 55 56 // 3. Create a DateTimeZone object from the string 57 $display_time_zone_object = timezone_open($timezone_name_string); 58 59 // 4. Validation 60 if ($display_time_zone_object === false) { 61 // Fall back to the default WP timezone object 62 $display_time_zone_object = wp_timezone(); 63 } 64 65 // 5. Create DateTime objects FROM the UTC string. 66 // Since the string ends in 'Z', PHP correctly parses this as UTC. 67 $start_time_date = date_create($openhouse->startTime); 68 $end_time_date = date_create($openhouse->endTime); 69 70 $start_time_date->setTimezone($display_time_zone_object); 71 $end_time_date->setTimezone($display_time_zone_object); 55 72 56 73 // Open house date information … … 60 77 61 78 // Open house time information 79 // Example: 21:00Z will correctly become "3:00pm" (for UTC-6) 62 80 $start = $start_time_date->format("g:ia"); 63 81 $end = $end_time_date->format("g:ia"); -
simply-rets/tags/3.1.1/simply-rets.php
r3386733 r3395453 5 5 Description: Show your Real Estate listings on your Wordpress site. SimplyRETS provides a very simple set up and full control over your listings. 6 6 Author: SimplyRETS 7 Version: 3.1. 07 Version: 3.1.1 8 8 License: GNU General Public License v3 or later 9 9 … … 13 13 14 14 /* Code starts here */ 15 const SIMPLYRETSWP_VERSION = "v3.1. 0";15 const SIMPLYRETSWP_VERSION = "v3.1.1"; 16 16 17 17 $plugin = plugin_basename(__FILE__); -
simply-rets/trunk/readme.txt
r3386733 r3395453 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.8 7 Stable tag: 3.1. 07 Stable tag: 3.1.1 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 237 237 238 238 == Changelog == 239 240 = 3.1.1 = 241 242 * FIX: Fix "Contact us about this listing" link when using custom contact form 243 * FIX: Properly check user timezone setting when rendering open house times 239 244 240 245 = 3.1.0 = -
simply-rets/trunk/simply-rets-api-helper.php
r3386733 r3395453 1161 1161 1162 1162 $upcoming_openhouses_text = 1163 $upcoming_openhouses === 1 ? " upcoming open house" : "upcoming open houses";1163 $upcoming_openhouses === 1 ? " upcoming open house" : " upcoming open houses"; 1164 1164 1165 1165 $next_openhouses_banner = '<div class="sr-listing-openhouses-banner">' … … 1944 1944 // Use custom form if configured 1945 1945 if ($custom_form != false) { 1946 return do_shortcode($custom_form); 1946 return '<div id="sr-contact-form">' 1947 . do_shortcode($custom_form) 1948 . '</div>' ; 1947 1949 } 1948 1950 -
simply-rets/trunk/simply-rets-openhouses.php
r3219948 r3395453 40 40 * house times for display. 41 41 */ 42 $default_time_zone = timezone_name_get( 43 get_option("sr_date_default_timezone", wp_timezone()) 44 ); 45 46 $start_time_date = date_create( 47 $openhouse->startTime, 48 timezone_open($default_time_zone) 49 ); 50 51 $end_time_date = date_create( 52 $openhouse->endTime, 53 timezone_open($default_time_zone) 54 ); 42 43 // 1. Get the setting. 44 $timezone_setting = get_option("sr_date_default_timezone", wp_timezone()); 45 $timezone_name_string = ''; 46 47 // 2. Reliably get the timezone *string* name 48 if ($timezone_setting instanceof DateTimeZone) { 49 $timezone_name_string = timezone_name_get($timezone_setting); 50 } elseif (is_string($timezone_setting) && !empty($timezone_setting)) { 51 $timezone_name_string = $timezone_setting; 52 } else { 53 $timezone_name_string = wp_timezone_string(); 54 } 55 56 // 3. Create a DateTimeZone object from the string 57 $display_time_zone_object = timezone_open($timezone_name_string); 58 59 // 4. Validation 60 if ($display_time_zone_object === false) { 61 // Fall back to the default WP timezone object 62 $display_time_zone_object = wp_timezone(); 63 } 64 65 // 5. Create DateTime objects FROM the UTC string. 66 // Since the string ends in 'Z', PHP correctly parses this as UTC. 67 $start_time_date = date_create($openhouse->startTime); 68 $end_time_date = date_create($openhouse->endTime); 69 70 $start_time_date->setTimezone($display_time_zone_object); 71 $end_time_date->setTimezone($display_time_zone_object); 55 72 56 73 // Open house date information … … 60 77 61 78 // Open house time information 79 // Example: 21:00Z will correctly become "3:00pm" (for UTC-6) 62 80 $start = $start_time_date->format("g:ia"); 63 81 $end = $end_time_date->format("g:ia"); -
simply-rets/trunk/simply-rets.php
r3386733 r3395453 5 5 Description: Show your Real Estate listings on your Wordpress site. SimplyRETS provides a very simple set up and full control over your listings. 6 6 Author: SimplyRETS 7 Version: 3.1. 07 Version: 3.1.1 8 8 License: GNU General Public License v3 or later 9 9 … … 13 13 14 14 /* Code starts here */ 15 const SIMPLYRETSWP_VERSION = "v3.1. 0";15 const SIMPLYRETSWP_VERSION = "v3.1.1"; 16 16 17 17 $plugin = plugin_basename(__FILE__);
Note: See TracChangeset
for help on using the changeset viewer.