Plugin Directory

Changeset 2419754


Ignore:
Timestamp:
11/17/2020 03:23:58 AM (5 years ago)
Author:
SimplyRETS
Message:

V2.9.3

Location:
simply-rets
Files:
6 edited
34 copied

Legend:

Unmodified
Added
Removed
  • simply-rets/tags/2.9.3/readme.txt

    r2410797 r2419754  
    236236
    237237== 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
    238244
    239245= 2.9.2 =
  • simply-rets/tags/2.9.3/simply-rets-api-helper.php

    r2410797 r2419754  
    125125        $site_url = get_site_url();
    126126
    127         $ua_string     = "SimplyRETSWP/2.9.2 Wordpress/{$wp_version} PHP/{$php_version}";
     127        $ua_string     = "SimplyRETSWP/2.9.3 Wordpress/{$wp_version} PHP/{$php_version}";
    128128        $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json";
    129129
     
    246246        $php_version = phpversion();
    247247
    248         $ua_string     = "SimplyRETSWP/2.9.2 Wordpress/{$wp_version} PHP/{$php_version}";
     248        $ua_string     = "SimplyRETSWP/2.9.3 Wordpress/{$wp_version} PHP/{$php_version}";
    249249        $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json";
    250250
     
    765765        $terms = SimplyRetsApiHelper::srDetailsTable($listing_terms, "Terms");
    766766
     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
    767777        $listing_lease_term = $listing->leaseTerm;
    768778        $lease_term = SimplyRetsApiHelper::srDetailsTable($listing_lease_term, "Lease Term");
     
    12791289                $agent
    12801290                $agent_phone
     1291                $special_listing_conditions
     1292                $ownership
    12811293                $terms
    12821294                $virtual_tour
  • simply-rets/tags/2.9.3/simply-rets-openhouses.php

    r2278677 r2419754  
    155155                  : "";
    156156
    157         $bathrooms = !empty($listing->property->bathrooms)
     157        $bathrooms = (!empty($listing->property->bathrooms)
    158158                   ? "<strong>Bathrooms: </strong> {$listing->property->bathrooms}<br/>"
    159                    : !empty($listing->property->bathsFull)
     159                   : !empty($listing->property->bathsFull))
    160160                   ? "<strong>Full baths: </strong> {$listing->property->bathsFull}<br/>"
    161161                   : "";
     
    164164        $county = $listing->geo->county;
    165165        $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/>" : "";
    174171
    175172        $living_area = !empty($listing->property->area)
  • simply-rets/tags/2.9.3/simply-rets-post-pages.php

    r2410797 r2419754  
    184184        $vars[] = "sr_subTypeText";
    185185        $vars[] = "sr_specialListingConditions";
     186        $vars[] = "sr_ownership";
    186187        $vars[] = "sr_agent";
    187188        $vars[] = "sr_brokers";
     
    765766            );
    766767
    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"];
    769777
    770778            /** Parse multiple cities from short-code parameter */
     
    904912                "subTypeText" => $subTypeText_att,
    905913                "specialListingConditions" => $specialListingConditions_att,
     914                "ownership" => $ownership_att,
    906915                "agent" => $agent_att,
    907916                "brokers" => $brokers_att,
     
    936945                . $subTypeText_query
    937946                . $specialListingConditions_query
     947                . $ownership_query
    938948                . $statuses_string
    939949                . $amenities_string
  • simply-rets/tags/2.9.3/simply-rets-shortcode.php

    r2410797 r2419754  
    320320        $cities = isset($atts['cities']) ? $atts['cities'] : '';
    321321        $specialListingConditions = isset($atts['speciallistingconditions']) ? $atts['speciallistingconditions'] : '';
     322        $ownership = isset($atts['ownership']) ? $atts['ownership'] : '';
    322323
    323324        if($config_type === '') {
     
    567568                    value="<?php echo $specialListingConditions; ?>"
    568569                />
     570                <input type="hidden" name="sr_ownership" value="<?php echo $ownership; ?>" />
    569571
    570572                <div>
     
    665667                value="<?php echo $specialListingConditions; ?>"
    666668            />
     669            <input type="hidden" name="sr_ownership" value="<?php echo $ownership; ?>" />
    667670
    668671          </form>
  • simply-rets/tags/2.9.3/simply-rets.php

    r2410797 r2419754  
    55Description: Show your Real Estate listings on your Wordpress site. SimplyRETS provides a very simple set up and full control over your listings.
    66Author: SimplyRETS
    7 Version: 2.9.2
     7Version: 2.9.3
    88License: GNU General Public License v3 or later
    99
  • simply-rets/trunk/readme.txt

    r2410797 r2419754  
    236236
    237237== 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
    238244
    239245= 2.9.2 =
  • simply-rets/trunk/simply-rets-api-helper.php

    r2410797 r2419754  
    125125        $site_url = get_site_url();
    126126
    127         $ua_string     = "SimplyRETSWP/2.9.2 Wordpress/{$wp_version} PHP/{$php_version}";
     127        $ua_string     = "SimplyRETSWP/2.9.3 Wordpress/{$wp_version} PHP/{$php_version}";
    128128        $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json";
    129129
     
    246246        $php_version = phpversion();
    247247
    248         $ua_string     = "SimplyRETSWP/2.9.2 Wordpress/{$wp_version} PHP/{$php_version}";
     248        $ua_string     = "SimplyRETSWP/2.9.3 Wordpress/{$wp_version} PHP/{$php_version}";
    249249        $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json";
    250250
     
    765765        $terms = SimplyRetsApiHelper::srDetailsTable($listing_terms, "Terms");
    766766
     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
    767777        $listing_lease_term = $listing->leaseTerm;
    768778        $lease_term = SimplyRetsApiHelper::srDetailsTable($listing_lease_term, "Lease Term");
     
    12791289                $agent
    12801290                $agent_phone
     1291                $special_listing_conditions
     1292                $ownership
    12811293                $terms
    12821294                $virtual_tour
  • simply-rets/trunk/simply-rets-openhouses.php

    r2278677 r2419754  
    155155                  : "";
    156156
    157         $bathrooms = !empty($listing->property->bathrooms)
     157        $bathrooms = (!empty($listing->property->bathrooms)
    158158                   ? "<strong>Bathrooms: </strong> {$listing->property->bathrooms}<br/>"
    159                    : !empty($listing->property->bathsFull)
     159                   : !empty($listing->property->bathsFull))
    160160                   ? "<strong>Full baths: </strong> {$listing->property->bathsFull}<br/>"
    161161                   : "";
     
    164164        $county = $listing->geo->county;
    165165        $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/>" : "";
    174171
    175172        $living_area = !empty($listing->property->area)
  • simply-rets/trunk/simply-rets-post-pages.php

    r2410797 r2419754  
    184184        $vars[] = "sr_subTypeText";
    185185        $vars[] = "sr_specialListingConditions";
     186        $vars[] = "sr_ownership";
    186187        $vars[] = "sr_agent";
    187188        $vars[] = "sr_brokers";
     
    765766            );
    766767
    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"];
    769777
    770778            /** Parse multiple cities from short-code parameter */
     
    904912                "subTypeText" => $subTypeText_att,
    905913                "specialListingConditions" => $specialListingConditions_att,
     914                "ownership" => $ownership_att,
    906915                "agent" => $agent_att,
    907916                "brokers" => $brokers_att,
     
    936945                . $subTypeText_query
    937946                . $specialListingConditions_query
     947                . $ownership_query
    938948                . $statuses_string
    939949                . $amenities_string
  • simply-rets/trunk/simply-rets-shortcode.php

    r2410797 r2419754  
    320320        $cities = isset($atts['cities']) ? $atts['cities'] : '';
    321321        $specialListingConditions = isset($atts['speciallistingconditions']) ? $atts['speciallistingconditions'] : '';
     322        $ownership = isset($atts['ownership']) ? $atts['ownership'] : '';
    322323
    323324        if($config_type === '') {
     
    567568                    value="<?php echo $specialListingConditions; ?>"
    568569                />
     570                <input type="hidden" name="sr_ownership" value="<?php echo $ownership; ?>" />
    569571
    570572                <div>
     
    665667                value="<?php echo $specialListingConditions; ?>"
    666668            />
     669            <input type="hidden" name="sr_ownership" value="<?php echo $ownership; ?>" />
    667670
    668671          </form>
  • simply-rets/trunk/simply-rets.php

    r2410797 r2419754  
    55Description: Show your Real Estate listings on your Wordpress site. SimplyRETS provides a very simple set up and full control over your listings.
    66Author: SimplyRETS
    7 Version: 2.9.2
     7Version: 2.9.3
    88License: GNU General Public License v3 or later
    99
Note: See TracChangeset for help on using the changeset viewer.