Changeset 2972401
- Timestamp:
- 09/27/2023 08:23:56 PM (3 years ago)
- Location:
- simply-rets
- Files:
-
- 6 edited
- 1 copied
-
tags/2.10.4 (copied) (copied from simply-rets/trunk)
-
tags/2.10.4/readme.txt (modified) (2 diffs)
-
tags/2.10.4/simply-rets-api-helper.php (modified) (6 diffs)
-
tags/2.10.4/simply-rets.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/simply-rets-api-helper.php (modified) (6 diffs)
-
trunk/simply-rets.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simply-rets/tags/2.10.4/readme.txt
r2946831 r2972401 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.1 7 Stable tag: 2.10. 37 Stable tag: 2.10.4 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 237 237 238 238 == Changelog == 239 240 = 2.10.4 = 241 * FIX: Fix misc PHP warnings on single listing page 239 242 240 243 = 2.10.3 = -
simply-rets/tags/2.10.4/simply-rets-api-helper.php
r2946831 r2972401 125 125 $site_url = get_site_url(); 126 126 127 $ua_string = "SimplyRETSWP/2.10. 3Wordpress/{$wp_version} PHP/{$php_version}";127 $ua_string = "SimplyRETSWP/2.10.4 Wordpress/{$wp_version} PHP/{$php_version}"; 128 128 $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json"; 129 129 … … 236 236 $php_version = phpversion(); 237 237 238 $ua_string = "SimplyRETSWP/2.10. 3Wordpress/{$wp_version} PHP/{$php_version}";238 $ua_string = "SimplyRETSWP/2.10.4 Wordpress/{$wp_version} PHP/{$php_version}"; 239 239 $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json"; 240 240 … … 571 571 if($listing == NULL 572 572 || property_exists($listing, "error") 573 || property_exists($listing, "message") 573 574 || property_exists($listing, "errors")) { 574 575 $err = SrMessages::noResultsMsg((array)$listing); … … 918 919 919 920 // school data 920 $listing_school_district = $listing->school->district; 921 $has_school_data = !empty($listing->school); 922 923 $listing_school_district = $has_school_data ? $listing->school->district : NULL; 921 924 $school_district = SimplyRetsApiHelper::srDetailsTable($listing_school_district, "District"); 922 925 // elementary school 923 $listing_elementary = $ listing->school->elementarySchool;926 $listing_elementary = $has_school_data ? $listing->school->elementarySchool : NULL; 924 927 $school_elementary = SimplyRetsApiHelper::srDetailsTable($listing_elementary, "Elementary School"); 925 928 // middle school 926 $listing_middle_school = $ listing->school->middleSchool;929 $listing_middle_school = $has_school_data ? $listing->school->middleSchool : NULL; 927 930 $school_middle = SimplyRetsApiHelper::srDetailsTable($listing_middle_school, "Middle School"); 928 931 // high school 929 $listing_high_school = $ listing->school->highSchool;932 $listing_high_school = $has_school_data ? $listing->school->highSchool : NULL; 930 933 $school_high = SimplyRetsApiHelper::srDetailsTable($listing_high_school, "High School"); 931 934 … … 1103 1106 } 1104 1107 1105 1106 1108 /** 1107 1109 * Create the custom compliance markup for map marker … … 1109 1111 $compliance_markup = SrUtils::mkListingSummaryCompliance($listing_office, $listing_agent_name); 1110 1112 1111 1112 1113 /** 1113 1114 * Find available contact information to display 1114 1115 * Then, create the "Listing by" markup 1115 1116 */ 1116 $attribution_contact = property_exists($complianceData, "attributionContact") 1117 $attribution_contact = !empty($complianceData) 1118 && property_exists($complianceData, "attributionContact") 1117 1119 ? $complianceData->attributionContact 1118 1120 : NULL; -
simply-rets/tags/2.10.4/simply-rets.php
r2946831 r2972401 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: 2.10. 37 Version: 2.10.4 8 8 License: GNU General Public License v3 or later 9 9 -
simply-rets/trunk/readme.txt
r2946831 r2972401 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.1 7 Stable tag: 2.10. 37 Stable tag: 2.10.4 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 237 237 238 238 == Changelog == 239 240 = 2.10.4 = 241 * FIX: Fix misc PHP warnings on single listing page 239 242 240 243 = 2.10.3 = -
simply-rets/trunk/simply-rets-api-helper.php
r2946831 r2972401 125 125 $site_url = get_site_url(); 126 126 127 $ua_string = "SimplyRETSWP/2.10. 3Wordpress/{$wp_version} PHP/{$php_version}";127 $ua_string = "SimplyRETSWP/2.10.4 Wordpress/{$wp_version} PHP/{$php_version}"; 128 128 $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json"; 129 129 … … 236 236 $php_version = phpversion(); 237 237 238 $ua_string = "SimplyRETSWP/2.10. 3Wordpress/{$wp_version} PHP/{$php_version}";238 $ua_string = "SimplyRETSWP/2.10.4 Wordpress/{$wp_version} PHP/{$php_version}"; 239 239 $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json"; 240 240 … … 571 571 if($listing == NULL 572 572 || property_exists($listing, "error") 573 || property_exists($listing, "message") 573 574 || property_exists($listing, "errors")) { 574 575 $err = SrMessages::noResultsMsg((array)$listing); … … 918 919 919 920 // school data 920 $listing_school_district = $listing->school->district; 921 $has_school_data = !empty($listing->school); 922 923 $listing_school_district = $has_school_data ? $listing->school->district : NULL; 921 924 $school_district = SimplyRetsApiHelper::srDetailsTable($listing_school_district, "District"); 922 925 // elementary school 923 $listing_elementary = $ listing->school->elementarySchool;926 $listing_elementary = $has_school_data ? $listing->school->elementarySchool : NULL; 924 927 $school_elementary = SimplyRetsApiHelper::srDetailsTable($listing_elementary, "Elementary School"); 925 928 // middle school 926 $listing_middle_school = $ listing->school->middleSchool;929 $listing_middle_school = $has_school_data ? $listing->school->middleSchool : NULL; 927 930 $school_middle = SimplyRetsApiHelper::srDetailsTable($listing_middle_school, "Middle School"); 928 931 // high school 929 $listing_high_school = $ listing->school->highSchool;932 $listing_high_school = $has_school_data ? $listing->school->highSchool : NULL; 930 933 $school_high = SimplyRetsApiHelper::srDetailsTable($listing_high_school, "High School"); 931 934 … … 1103 1106 } 1104 1107 1105 1106 1108 /** 1107 1109 * Create the custom compliance markup for map marker … … 1109 1111 $compliance_markup = SrUtils::mkListingSummaryCompliance($listing_office, $listing_agent_name); 1110 1112 1111 1112 1113 /** 1113 1114 * Find available contact information to display 1114 1115 * Then, create the "Listing by" markup 1115 1116 */ 1116 $attribution_contact = property_exists($complianceData, "attributionContact") 1117 $attribution_contact = !empty($complianceData) 1118 && property_exists($complianceData, "attributionContact") 1117 1119 ? $complianceData->attributionContact 1118 1120 : NULL; -
simply-rets/trunk/simply-rets.php
r2946831 r2972401 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: 2.10. 37 Version: 2.10.4 8 8 License: GNU General Public License v3 or later 9 9
Note: See TracChangeset
for help on using the changeset viewer.