Changeset 2419754
- Timestamp:
- 11/17/2020 03:23:58 AM (5 years ago)
- Location:
- simply-rets
- Files:
-
- 6 edited
- 34 copied
-
tags/2.9.3 (copied) (copied from simply-rets/trunk)
-
tags/2.9.3/assets/js/simply-rets-client.js (copied) (copied from simply-rets/trunk/assets/js/simply-rets-client.js)
-
tags/2.9.3/composer.json (copied) (copied from simply-rets/trunk/composer.json)
-
tags/2.9.3/composer.lock (copied) (copied from simply-rets/trunk/composer.lock)
-
tags/2.9.3/readme.txt (copied) (copied from simply-rets/trunk/readme.txt) (1 diff)
-
tags/2.9.3/simply-rets-api-helper.php (copied) (copied from simply-rets/trunk/simply-rets-api-helper.php) (4 diffs)
-
tags/2.9.3/simply-rets-maps.php (copied) (copied from simply-rets/trunk/simply-rets-maps.php)
-
tags/2.9.3/simply-rets-openhouses.php (copied) (copied from simply-rets/trunk/simply-rets-openhouses.php) (2 diffs)
-
tags/2.9.3/simply-rets-post-pages.php (copied) (copied from simply-rets/trunk/simply-rets-post-pages.php) (4 diffs)
-
tags/2.9.3/simply-rets-shortcode.php (copied) (copied from simply-rets/trunk/simply-rets-shortcode.php) (3 diffs)
-
tags/2.9.3/simply-rets-utils.php (copied) (copied from simply-rets/trunk/simply-rets-utils.php)
-
tags/2.9.3/simply-rets-widgets.php (copied) (copied from simply-rets/trunk/simply-rets-widgets.php)
-
tags/2.9.3/simply-rets.php (copied) (copied from simply-rets/trunk/simply-rets.php) (1 diff)
-
tags/2.9.3/tests/bootstrap.php (copied) (copied from simply-rets/trunk/tests/bootstrap.php)
-
tags/2.9.3/tests/init.sh (copied) (copied from simply-rets/trunk/tests/init.sh)
-
tags/2.9.3/tests/test-plugin.php (copied) (copied from simply-rets/trunk/tests/test-plugin.php)
-
tags/2.9.3/vendor/autoload.php (copied) (copied from simply-rets/trunk/vendor/autoload.php)
-
tags/2.9.3/vendor/composer/ClassLoader.php (copied) (copied from simply-rets/trunk/vendor/composer/ClassLoader.php)
-
tags/2.9.3/vendor/composer/autoload_files.php (copied) (copied from simply-rets/trunk/vendor/composer/autoload_files.php)
-
tags/2.9.3/vendor/composer/autoload_psr4.php (copied) (copied from simply-rets/trunk/vendor/composer/autoload_psr4.php)
-
tags/2.9.3/vendor/composer/autoload_real.php (copied) (copied from simply-rets/trunk/vendor/composer/autoload_real.php)
-
tags/2.9.3/vendor/composer/autoload_static.php (copied) (copied from simply-rets/trunk/vendor/composer/autoload_static.php)
-
tags/2.9.3/vendor/composer/installed.json (copied) (copied from simply-rets/trunk/vendor/composer/installed.json)
-
tags/2.9.3/vendor/egeloen/google-map/src/Helper/ApiHelper.php (copied) (copied from simply-rets/trunk/vendor/egeloen/google-map/src/Helper/ApiHelper.php)
-
tags/2.9.3/vendor/symfony/polyfill-ctype (copied) (copied from simply-rets/trunk/vendor/symfony/polyfill-ctype)
-
tags/2.9.3/vendor/symfony/property-access/Exception/UnexpectedTypeException.php (copied) (copied from simply-rets/trunk/vendor/symfony/property-access/Exception/UnexpectedTypeException.php)
-
tags/2.9.3/vendor/symfony/property-access/LICENSE (copied) (copied from simply-rets/trunk/vendor/symfony/property-access/LICENSE)
-
tags/2.9.3/vendor/symfony/property-access/PropertyAccess.php (copied) (copied from simply-rets/trunk/vendor/symfony/property-access/PropertyAccess.php)
-
tags/2.9.3/vendor/symfony/property-access/PropertyAccessor.php (copied) (copied from simply-rets/trunk/vendor/symfony/property-access/PropertyAccessor.php)
-
tags/2.9.3/vendor/symfony/property-access/PropertyAccessorBuilder.php (copied) (copied from simply-rets/trunk/vendor/symfony/property-access/PropertyAccessorBuilder.php)
-
tags/2.9.3/vendor/symfony/property-access/PropertyPath.php (copied) (copied from simply-rets/trunk/vendor/symfony/property-access/PropertyPath.php)
-
tags/2.9.3/vendor/symfony/property-access/PropertyPathBuilder.php (copied) (copied from simply-rets/trunk/vendor/symfony/property-access/PropertyPathBuilder.php)
-
tags/2.9.3/vendor/symfony/property-access/PropertyPathIterator.php (copied) (copied from simply-rets/trunk/vendor/symfony/property-access/PropertyPathIterator.php)
-
tags/2.9.3/vendor/symfony/property-access/StringUtil.php (copied) (copied from simply-rets/trunk/vendor/symfony/property-access/StringUtil.php)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/simply-rets-api-helper.php (modified) (4 diffs)
-
trunk/simply-rets-openhouses.php (modified) (2 diffs)
-
trunk/simply-rets-post-pages.php (modified) (4 diffs)
-
trunk/simply-rets-shortcode.php (modified) (3 diffs)
-
trunk/simply-rets.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simply-rets/tags/2.9.3/readme.txt
r2410797 r2419754 236 236 237 237 == Changelog == 238 239 = 2.9.3 = 240 * FEATURE: Add support for `ownership` filter. 241 * FEATURE: Show ownership information on listing details page. 242 * FEATURE: Show special listing conditions on listing details page. 243 * FIX: Fix various PHP warnings 238 244 239 245 = 2.9.2 = -
simply-rets/tags/2.9.3/simply-rets-api-helper.php
r2410797 r2419754 125 125 $site_url = get_site_url(); 126 126 127 $ua_string = "SimplyRETSWP/2.9. 2Wordpress/{$wp_version} PHP/{$php_version}";127 $ua_string = "SimplyRETSWP/2.9.3 Wordpress/{$wp_version} PHP/{$php_version}"; 128 128 $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json"; 129 129 … … 246 246 $php_version = phpversion(); 247 247 248 $ua_string = "SimplyRETSWP/2.9. 2Wordpress/{$wp_version} PHP/{$php_version}";248 $ua_string = "SimplyRETSWP/2.9.3 Wordpress/{$wp_version} PHP/{$php_version}"; 249 249 $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json"; 250 250 … … 765 765 $terms = SimplyRetsApiHelper::srDetailsTable($listing_terms, "Terms"); 766 766 767 $listing_special_listing_conditions = $listing->specialListingConditions; 768 $special_listing_conditions = SimplyRetsApiHelper::srDetailsTable( 769 $listing_special_listing_conditions, "Special listing conditions" 770 ); 771 772 $listing_ownership = $listing->ownership; 773 $ownership = SimplyRetsApiHelper::srDetailsTable( 774 $listing_ownership, "Ownership" 775 ); 776 767 777 $listing_lease_term = $listing->leaseTerm; 768 778 $lease_term = SimplyRetsApiHelper::srDetailsTable($listing_lease_term, "Lease Term"); … … 1279 1289 $agent 1280 1290 $agent_phone 1291 $special_listing_conditions 1292 $ownership 1281 1293 $terms 1282 1294 $virtual_tour -
simply-rets/tags/2.9.3/simply-rets-openhouses.php
r2278677 r2419754 155 155 : ""; 156 156 157 $bathrooms = !empty($listing->property->bathrooms)157 $bathrooms = (!empty($listing->property->bathrooms) 158 158 ? "<strong>Bathrooms: </strong> {$listing->property->bathrooms}<br/>" 159 : !empty($listing->property->bathsFull) 159 : !empty($listing->property->bathsFull)) 160 160 ? "<strong>Full baths: </strong> {$listing->property->bathsFull}<br/>" 161 161 : ""; … … 164 164 $county = $listing->geo->county; 165 165 $city = $listing->address->city; 166 $area = !empty($mls_area) 167 ? strlen($mls_area) >= 50 ? "{$mls_area}..." : "{$mls_area}" 168 : !empty($county) 169 ? strlen($county) >= 50 ? "{$county}..." : "{$county}" 170 : !empty($city) 171 ? strlen($city) >= 50 ? "{$city}..." : "{$city}" 172 : ""; 173 $area = empty($area) ? "" : "<strong>Area: </strong> {$area}<br/>"; 166 167 // Find a non-empty field for geographical location 168 $area = !empty($mls_area) ? "<strong>MLS area: </strong> {$mls_area}<br/>" : ""; 169 $area = empty($area) && !empty($county) ? "<strong>County: </strong> {$county}<br/>" : ""; 170 $area = empty($area) && !empty($city) ? "<strong>City: </strong> {$city}<br/>" : ""; 174 171 175 172 $living_area = !empty($listing->property->area) -
simply-rets/tags/2.9.3/simply-rets-post-pages.php
r2410797 r2419754 184 184 $vars[] = "sr_subTypeText"; 185 185 $vars[] = "sr_specialListingConditions"; 186 $vars[] = "sr_ownership"; 186 187 $vars[] = "sr_agent"; 187 188 $vars[] = "sr_brokers"; … … 765 766 ); 766 767 767 $specialListingConditions_att = $specialListingConditionsData["att"]; 768 $specialListingConditions_query = $specialListingConditionsData["query"]; 768 /** Parse multiple subtypes from short-code parameter */ 769 $ownershipData = SimplyRetsCustomPostPages::parseGetParameter( 770 "sr_ownership", 771 "ownership", 772 $_GET 773 ); 774 775 $ownership_att = $ownershipData["att"]; 776 $ownership_query = $ownershipData["query"]; 769 777 770 778 /** Parse multiple cities from short-code parameter */ … … 904 912 "subTypeText" => $subTypeText_att, 905 913 "specialListingConditions" => $specialListingConditions_att, 914 "ownership" => $ownership_att, 906 915 "agent" => $agent_att, 907 916 "brokers" => $brokers_att, … … 936 945 . $subTypeText_query 937 946 . $specialListingConditions_query 947 . $ownership_query 938 948 . $statuses_string 939 949 . $amenities_string -
simply-rets/tags/2.9.3/simply-rets-shortcode.php
r2410797 r2419754 320 320 $cities = isset($atts['cities']) ? $atts['cities'] : ''; 321 321 $specialListingConditions = isset($atts['speciallistingconditions']) ? $atts['speciallistingconditions'] : ''; 322 $ownership = isset($atts['ownership']) ? $atts['ownership'] : ''; 322 323 323 324 if($config_type === '') { … … 567 568 value="<?php echo $specialListingConditions; ?>" 568 569 /> 570 <input type="hidden" name="sr_ownership" value="<?php echo $ownership; ?>" /> 569 571 570 572 <div> … … 665 667 value="<?php echo $specialListingConditions; ?>" 666 668 /> 669 <input type="hidden" name="sr_ownership" value="<?php echo $ownership; ?>" /> 667 670 668 671 </form> -
simply-rets/tags/2.9.3/simply-rets.php
r2410797 r2419754 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.9. 27 Version: 2.9.3 8 8 License: GNU General Public License v3 or later 9 9 -
simply-rets/trunk/readme.txt
r2410797 r2419754 236 236 237 237 == Changelog == 238 239 = 2.9.3 = 240 * FEATURE: Add support for `ownership` filter. 241 * FEATURE: Show ownership information on listing details page. 242 * FEATURE: Show special listing conditions on listing details page. 243 * FIX: Fix various PHP warnings 238 244 239 245 = 2.9.2 = -
simply-rets/trunk/simply-rets-api-helper.php
r2410797 r2419754 125 125 $site_url = get_site_url(); 126 126 127 $ua_string = "SimplyRETSWP/2.9. 2Wordpress/{$wp_version} PHP/{$php_version}";127 $ua_string = "SimplyRETSWP/2.9.3 Wordpress/{$wp_version} PHP/{$php_version}"; 128 128 $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json"; 129 129 … … 246 246 $php_version = phpversion(); 247 247 248 $ua_string = "SimplyRETSWP/2.9. 2Wordpress/{$wp_version} PHP/{$php_version}";248 $ua_string = "SimplyRETSWP/2.9.3 Wordpress/{$wp_version} PHP/{$php_version}"; 249 249 $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json"; 250 250 … … 765 765 $terms = SimplyRetsApiHelper::srDetailsTable($listing_terms, "Terms"); 766 766 767 $listing_special_listing_conditions = $listing->specialListingConditions; 768 $special_listing_conditions = SimplyRetsApiHelper::srDetailsTable( 769 $listing_special_listing_conditions, "Special listing conditions" 770 ); 771 772 $listing_ownership = $listing->ownership; 773 $ownership = SimplyRetsApiHelper::srDetailsTable( 774 $listing_ownership, "Ownership" 775 ); 776 767 777 $listing_lease_term = $listing->leaseTerm; 768 778 $lease_term = SimplyRetsApiHelper::srDetailsTable($listing_lease_term, "Lease Term"); … … 1279 1289 $agent 1280 1290 $agent_phone 1291 $special_listing_conditions 1292 $ownership 1281 1293 $terms 1282 1294 $virtual_tour -
simply-rets/trunk/simply-rets-openhouses.php
r2278677 r2419754 155 155 : ""; 156 156 157 $bathrooms = !empty($listing->property->bathrooms)157 $bathrooms = (!empty($listing->property->bathrooms) 158 158 ? "<strong>Bathrooms: </strong> {$listing->property->bathrooms}<br/>" 159 : !empty($listing->property->bathsFull) 159 : !empty($listing->property->bathsFull)) 160 160 ? "<strong>Full baths: </strong> {$listing->property->bathsFull}<br/>" 161 161 : ""; … … 164 164 $county = $listing->geo->county; 165 165 $city = $listing->address->city; 166 $area = !empty($mls_area) 167 ? strlen($mls_area) >= 50 ? "{$mls_area}..." : "{$mls_area}" 168 : !empty($county) 169 ? strlen($county) >= 50 ? "{$county}..." : "{$county}" 170 : !empty($city) 171 ? strlen($city) >= 50 ? "{$city}..." : "{$city}" 172 : ""; 173 $area = empty($area) ? "" : "<strong>Area: </strong> {$area}<br/>"; 166 167 // Find a non-empty field for geographical location 168 $area = !empty($mls_area) ? "<strong>MLS area: </strong> {$mls_area}<br/>" : ""; 169 $area = empty($area) && !empty($county) ? "<strong>County: </strong> {$county}<br/>" : ""; 170 $area = empty($area) && !empty($city) ? "<strong>City: </strong> {$city}<br/>" : ""; 174 171 175 172 $living_area = !empty($listing->property->area) -
simply-rets/trunk/simply-rets-post-pages.php
r2410797 r2419754 184 184 $vars[] = "sr_subTypeText"; 185 185 $vars[] = "sr_specialListingConditions"; 186 $vars[] = "sr_ownership"; 186 187 $vars[] = "sr_agent"; 187 188 $vars[] = "sr_brokers"; … … 765 766 ); 766 767 767 $specialListingConditions_att = $specialListingConditionsData["att"]; 768 $specialListingConditions_query = $specialListingConditionsData["query"]; 768 /** Parse multiple subtypes from short-code parameter */ 769 $ownershipData = SimplyRetsCustomPostPages::parseGetParameter( 770 "sr_ownership", 771 "ownership", 772 $_GET 773 ); 774 775 $ownership_att = $ownershipData["att"]; 776 $ownership_query = $ownershipData["query"]; 769 777 770 778 /** Parse multiple cities from short-code parameter */ … … 904 912 "subTypeText" => $subTypeText_att, 905 913 "specialListingConditions" => $specialListingConditions_att, 914 "ownership" => $ownership_att, 906 915 "agent" => $agent_att, 907 916 "brokers" => $brokers_att, … … 936 945 . $subTypeText_query 937 946 . $specialListingConditions_query 947 . $ownership_query 938 948 . $statuses_string 939 949 . $amenities_string -
simply-rets/trunk/simply-rets-shortcode.php
r2410797 r2419754 320 320 $cities = isset($atts['cities']) ? $atts['cities'] : ''; 321 321 $specialListingConditions = isset($atts['speciallistingconditions']) ? $atts['speciallistingconditions'] : ''; 322 $ownership = isset($atts['ownership']) ? $atts['ownership'] : ''; 322 323 323 324 if($config_type === '') { … … 567 568 value="<?php echo $specialListingConditions; ?>" 568 569 /> 570 <input type="hidden" name="sr_ownership" value="<?php echo $ownership; ?>" /> 569 571 570 572 <div> … … 665 667 value="<?php echo $specialListingConditions; ?>" 666 668 /> 669 <input type="hidden" name="sr_ownership" value="<?php echo $ownership; ?>" /> 667 670 668 671 </form> -
simply-rets/trunk/simply-rets.php
r2410797 r2419754 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.9. 27 Version: 2.9.3 8 8 License: GNU General Public License v3 or later 9 9
Note: See TracChangeset
for help on using the changeset viewer.