Plugin Directory

Changeset 1073639


Ignore:
Timestamp:
01/22/2015 09:07:22 PM (11 years ago)
Author:
blots
Message:

version 1.7.1 includes many bug fixes related the new switchover to the new API

Location:
wolfnet-idx-for-wordpress
Files:
93 added
1 deleted
13 edited

Legend:

Unmodified
Added
Removed
  • wolfnet-idx-for-wordpress/trunk/ReadMe.txt

    r1051920 r1073639  
    55Requires at least:  3.5.1
    66Tested up to:       4.1
    7 Stable tag:         1.7.0
     7Stable tag:         1.7.1
    88License:            GPLv2 or later
    99License URI:        http://www.gnu.org/licenses/gpl-2.0.html
     
    8181
    8282== Changelog ==
     83
     84= 1.7.1 =
     85* Fixed bugs with several search manager search fields
     86* Fixed issue which caused some fields in widgets to be handled differently than shortcodes
     87* Updated error handling and reporting
     88* Added support for custom field search
     89* Added alternate Quick Search view
     90* Fix several other bugs with Search Manager searches
    8391
    8492= 1.7.0 =
  • wolfnet-idx-for-wordpress/trunk/css/wolfnet.min.css

    r1051920 r1073639  
    1 .wolfnet_widget{margin:1em auto 2em auto}.wolfnet_widget.wolfnet_quickSearch{border:1px solid #DDD;padding:8px;position:relative;z-index:10;background:-moz-linear-gradient(top,#fff 60%,#e2e2e2 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(60%,#fff),color-stop(100%,#e2e2e2));background:-webkit-linear-gradient(top,#fff 60%,#e2e2e2 100%);background:-o-linear-gradient(top,#fff 60%,#e2e2e2 100%);background:-ms-linear-gradient(top,#fff 60%,#e2e2e2 100%);background:linear-gradient(to bottom,#fff 60%,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#e2e2e2",GradientType=0)}.wolfnet_widget.wolfnet_quickSearch .wolfnet_widgetTitle{font-size:1.5em;font-weight:bold}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form label{font-size:1.1em;font-weight:bold;float:left}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form input,.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form select{font-size:1em;border:1px solid #bababa;color:#000;margin:0 0 5px 0;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form input.hintText,.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form select.hintText{color:#888}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form ul.wolfnet_searchType{margin:0;padding:0 0 1.5em 0;list-style:none}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form ul.wolfnet_searchType li{float:left;margin:0 1em 0 0}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form ul.wolfnet_searchType li .wolfnet_active{font-weight:bold}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_searchTypeField input{height:2em;width:97%}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_widgetPrice{margin-top:.3em}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_widgetPrice div{float:right;clear:right}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_widgetBeds,.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_widgetBaths{margin-top:.3em;clear:both;height:2em}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_widgetBeds select,.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_widgetBaths select{float:right}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_quickSearchFormButton{margin-top:.3em;clear:both}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_quickSearchFormButton button{font-size:1.6em;font-weight:bold;height:100%;margin-top:.6em;width:100%;margin:0 auto;vertical-align:middle;text-align:center;line-height:1em}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_market{float:left;margin:0 20px 10px 0}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_searchType,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_searchTypeField,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetPrice,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBeds,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBaths,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_quickSearchFormButton{width:auto;line-height:1.3em}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form label{width:auto;display:inline;float:none}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_searchTypeField input{width:98.5%}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetPrice,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBeds,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBaths{float:none;margin-right:1em;clear:none}
    2 .wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetPrice{width:100%;text-align:right}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetPrice div{display:inline;float:none;clear:none}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetPrice div select{display:inline;margin-left:1em;float:none}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBedBath{width:100%;text-align:right}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBedBath .wolfnet_widgetBeds,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBedBath .wolfnet_widgetBaths{display:inline;float:none;clear:none;margin:0 0 0 1em}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBedBath .wolfnet_widgetBeds select,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBedBath .wolfnet_widgetBaths select{display:inline;margin-left:1em;float:none;clear:none}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_quickSearchFormButton{height:auto;text-align:right}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_quickSearchFormButton button{font-size:1.25em;height:auto;width:auto;float:none}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing{width:150px;float:left;margin:0 auto 1em auto;position:relative;text-align:left;font-size:.8em;margin:0 5px 0 5px}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing a,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing a{color:inherit;text-decoration:none}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_detailsLink,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_detailsLink{display:block}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_listingImage,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_listingImage{width:100%;height:auto;display:block;overflow:hidden;margin:0;text-align:center;margin-bottom:.5em;border:1px solid #dedede;background-color:#f5f5f5;padding:10px 0 10px 0}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_listingImage img,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_listingImage img{height:95px;box-shadow:0 5px 10px rgba(153,153,153,0.25);margin:auto;border:1px solid #ebebeb}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_price,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_price{font-size:1.2em;font-weight:bold;display:block}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_location,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_location,.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_address,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_address{display:block}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_bed_bath,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_bed_bath{display:block;position:absolute;top:125px;right:0}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_branding,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_branding{display:none}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo{display:block}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo img,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo img{height:auto;border:0;border-radius:0;box-shadow:none}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo.wolfnet_idxLogo img,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo.wolfnet_idxLogo img{max-width:45px}
     1.wolfnet_widget{margin:1em auto 2em auto}.wolfnet_widget.wolfnet_quickSearch_legacy{z-index:10;background:-moz-linear-gradient(top,#fff 60%,#e2e2e2 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(60%,#fff),color-stop(100%,#e2e2e2));background:-webkit-linear-gradient(top,#fff 60%,#e2e2e2 100%);background:-o-linear-gradient(top,#fff 60%,#e2e2e2 100%);background:-ms-linear-gradient(top,#fff 60%,#e2e2e2 100%);background:linear-gradient(to bottom,#fff 60%,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#e2e2e2",GradientType=0)}.wolfnet_widget.wolfnet_quickSearch{border:1px solid #DDD;padding:8px;position:relative}.wolfnet_widget.wolfnet_quickSearch .wolfnet_widgetTitle{font-size:1.5em;font-weight:bold}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form label{font-size:1.1em;font-weight:bold;float:left}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form input,.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form select{font-size:1em;border:1px solid #bababa;color:#000;margin:0 0 5px 0;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form input.hintText,.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form select.hintText{color:#888}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form ul.wolfnet_searchType{margin:0;padding:0 0 1.5em 0;list-style:none}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form ul.wolfnet_searchType li{float:left;margin:0 1em 0 0}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form ul.wolfnet_searchType li .wolfnet_active{font-weight:bold}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_searchTypeField input{height:2em;width:97%}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_widgetPrice{margin-top:.3em}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_widgetPrice div{float:right;clear:right}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_widgetBeds,.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_widgetBaths{margin-top:.3em;clear:both;height:2em}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_widgetBeds select,.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_widgetBaths select{float:right}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_quickSearchFormButton{margin-top:.3em;clear:both}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_quickSearchFormButton button{font-size:1.6em;font-weight:bold;height:100%;margin-top:.6em;width:100%;margin:0 auto;vertical-align:middle;text-align:center;line-height:1em}.wolfnet_widget.wolfnet_quickSearch .wolfnet_quickSearch_form .wolfnet_market{float:left;margin:0 20px 10px 0}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_searchType,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_searchTypeField,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetPrice,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBeds,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBaths,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_quickSearchFormButton{width:auto;line-height:1.3em}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form label{width:auto;display:inline;float:none}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_searchTypeField input{width:98.5%}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetPrice,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBeds,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBaths{float:none;margin-right:1em;clear:none}
     2.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetPrice{width:100%;text-align:right}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetPrice div{display:inline;float:none;clear:none}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetPrice div select{display:inline;margin-left:1em;float:none}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBedBath{width:100%;text-align:right}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBedBath .wolfnet_widgetBeds,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBedBath .wolfnet_widgetBaths{display:inline;float:none;clear:none;margin:0 0 0 1em}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBedBath .wolfnet_widgetBeds select,.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_widgetBedBath .wolfnet_widgetBaths select{display:inline;margin-left:1em;float:none;clear:none}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_quickSearchFormButton{height:auto;text-align:right}.wolfnet_widget.wolfnet_quickSearch.wolfnet_wWide .wolfnet_quickSearch_form .wolfnet_quickSearchFormButton button{font-size:1.25em;height:auto;width:auto;float:none}.wolfnet_widget.wolfnet_quickSearch_basic{z-index:0}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing{width:150px;float:left;margin:0 auto 1em auto;position:relative;text-align:left;font-size:.8em;margin:0 5px 0 5px}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing a,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing a{color:inherit;text-decoration:none}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_detailsLink,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_detailsLink{display:block}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_listingImage,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_listingImage{width:100%;height:auto;display:block;overflow:hidden;margin:0;text-align:center;margin-bottom:.5em;border:1px solid #dedede;background-color:#f5f5f5;padding:10px 0 10px 0}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_listingImage img,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_listingImage img{height:95px;box-shadow:0 5px 10px rgba(153,153,153,0.25);margin:auto;border:1px solid #ebebeb}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_price,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_price{font-size:1.2em;font-weight:bold;display:block}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_location,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_location,.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_address,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_address{display:block}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_bed_bath,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_bed_bath{display:block;position:absolute;top:125px;right:0}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_branding,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_branding{display:none}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo{display:block}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo img,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo img{height:auto;border:0;border-radius:0;box-shadow:none}.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo.wolfnet_idxLogo img,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo.wolfnet_idxLogo img{max-width:45px}
    33.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing .wolfnet_branding .wolfnet_brandingMessage,.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_branding .wolfnet_brandingMessage{display:block}.wolfnet_widget.wolfnet_listingGrid .wolfnet_showhide,.wolfnet_widget.wolfnet_propertyList .wolfnet_showhide{clear:both}.wolfnet_widget.wolfnet_listingGrid .mqa-display img,.wolfnet_widget.wolfnet_propertyList .mqa-display img{max-width:none!important}.wolfnet_widget.wolfnet_listingGrid .wolfnet_wntMainMap,.wolfnet_widget.wolfnet_propertyList .wolfnet_wntMainMap{height:480px;position:relative}.wolfnet_widget.wolfnet_listingGrid .wntHOItem,.wolfnet_widget.wolfnet_propertyList .wntHOItem{cursor:pointer;min-height:115px;width:100%}.wolfnet_widget.wolfnet_listingGrid .wolfnet_wntHOTable,.wolfnet_widget.wolfnet_propertyList .wolfnet_wntHOTable{padding:0;width:auto}.wolfnet_widget.wolfnet_listingGrid .wolfnet_wntHOImg,.wolfnet_widget.wolfnet_propertyList .wolfnet_wntHOImg{position:relative;top:0;left:0}.wolfnet_widget.wolfnet_listingGrid .wolfnet_wntHOBroker,.wolfnet_widget.wolfnet_propertyList .wolfnet_wntHOBroker{position:relative;width:110px;margin-bottom:5px!important;color:##888}.wolfnet_widget.wolfnet_listingGrid .wolfnet_wntHOBrokerLogo,.wolfnet_widget.wolfnet_propertyList .wolfnet_wntHOBrokerLogo{max-width:100px;height:auto}.wolfnet_widget.wolfnet_listingGrid .wolfnet_wntHOContentContainer,.wolfnet_widget.wolfnet_propertyList .wolfnet_wntHOContentContainer{position:relative;min-width:200px;line-height:1.2;top:0}.wolfnet_widget.wolfnet_listingGrid .wolfnet_wntHOContentBold,.wolfnet_widget.wolfnet_propertyList .wolfnet_wntHOContentBold{display:block;white-space:nowrap;font-weight:bold!important}.wolfnet_widget.wolfnet_listingGrid .wolfnet_wntHOContentBold,.wolfnet_widget.wolfnet_propertyList .wolfnet_wntHOContentBold{display:block;white-space:nowrap}.wolfnet_widget.wolfnet_listingGrid .wolfnet_wntHouseOverWrapper,.wolfnet_widget.wolfnet_propertyList .wolfnet_wntHouseOverWrapper{position:relative;max-height:170px;min-height:150px;width:auto;overflow-x:hidden;overflow-y:auto}.wolfnet_widget.wolfnet_listingGrid .showHideLink,.wolfnet_widget.wolfnet_propertyList .showHideLink{padding-top:25px}.wolfnet_widget.wolfnet_listingGrid .wolfnet_toolbar,.wolfnet_widget.wolfnet_propertyList .wolfnet_toolbar{width:100%;clear:both;height:2em}.wolfnet_widget.wolfnet_listingGrid .wolfnet_toolbar.wolfnet_toolbarTop,.wolfnet_widget.wolfnet_propertyList .wolfnet_toolbar.wolfnet_toolbarTop{margin:2em 0 1.75em 0}.wolfnet_widget.wolfnet_listingGrid .wolfnet_toolbar.wolfnet_toolbarBottom,.wolfnet_widget.wolfnet_propertyList .wolfnet_toolbar.wolfnet_toolbarBottom{margin:0 0 2em 0;padding:1.75em 0 0 0}.wolfnet_widget.wolfnet_listingGrid .wolfnet_toolbar .wolfnet_page_nav,.wolfnet_widget.wolfnet_propertyList .wolfnet_toolbar .wolfnet_page_nav{display:inline-block;width:20%;white-space:nowrap}.wolfnet_widget.wolfnet_listingGrid .wolfnet_toolbar .wolfnet_page_nav.wolfnet_page_nav_prev,.wolfnet_widget.wolfnet_propertyList .wolfnet_toolbar .wolfnet_page_nav.wolfnet_page_nav_prev{float:left;text-align:left}.wolfnet_widget.wolfnet_listingGrid .wolfnet_toolbar .wolfnet_page_nav.wolfnet_page_nav_next,.wolfnet_widget.wolfnet_propertyList .wolfnet_toolbar .wolfnet_page_nav.wolfnet_page_nav_next{float:right;text-align:right}.wolfnet_widget.wolfnet_listingGrid .wolfnet_toolbar .wolfnet_page_nav.wolfnet_disabled,.wolfnet_widget.wolfnet_propertyList .wolfnet_toolbar .wolfnet_page_nav.wolfnet_disabled{text-decoration:none;opacity:.5;filter:alpha(opacity=50);cursor:default}.wolfnet_widget.wolfnet_listingGrid .wolfnet_toolbar .wolfnet_page_info,.wolfnet_widget.wolfnet_propertyList .wolfnet_toolbar .wolfnet_page_info{display:inline-block;float:left;text-align:center}.wolfnet_widget.wolfnet_listingGrid .wolfnet_toolbar .wolfnet_page_info .wolfnet_page_items,.wolfnet_widget.wolfnet_propertyList .wolfnet_toolbar .wolfnet_page_info .wolfnet_page_items{white-space:nowrap;display:inline-block;padding-right:1em}
    44.wolfnet_widget.wolfnet_listingGrid .wolfnet_toolbar .wolfnet_page_info .wolfnet_page_items_select,.wolfnet_widget.wolfnet_propertyList .wolfnet_toolbar .wolfnet_page_info .wolfnet_page_items_select{white-space:nowrap;display:inline-block;padding-right:1em}.wolfnet_widget.wolfnet_listingGrid .wolfnet_toolbar .wolfnet_page_info .wolfnet_sortoptions,.wolfnet_widget.wolfnet_propertyList .wolfnet_toolbar .wolfnet_page_info .wolfnet_sortoptions{display:inline-block}.wolfnet_widget.wolfnet_listingGrid.wolfnet_withPagination .wolfnet_page_info,.wolfnet_widget.wolfnet_propertyList.wolfnet_withPagination .wolfnet_page_info{width:60%}.wolfnet_widget.wolfnet_listingGrid.wolfnet_withPagination.wolfnet_withSortOptions .wolfnet_toolbar,.wolfnet_widget.wolfnet_propertyList.wolfnet_withPagination.wolfnet_withSortOptions .wolfnet_toolbar{height:3em}.wolfnet_widget.wolfnet_featuredListings{overflow:hidden;white-space:nowrap;height:140px}.wolfnet_widget.wolfnet_featuredListings .scrollingHotSpotLeft,.wolfnet_widget.wolfnet_featuredListings .scrollingHotSpotRight{min-width:75px;width:10%;height:100%;background-image:url('../img/big_transparent.gif');background-repeat:repeat;background-position:center center;position:absolute;z-index:200}.wolfnet_widget.wolfnet_featuredListings .scrollingHotSpotLeftVisible,.wolfnet_widget.wolfnet_featuredListings .scrollingHotSpotRightVisible{background-color:#fff;background-repeat:no-repeat;opacity:.35;-moz-opacity:.35;zoom:1}.wolfnet_widget.wolfnet_featuredListings .scrollingHotSpotLeft{left:0}.wolfnet_widget.wolfnet_featuredListings .scrollingHotSpotLeftVisible{background-image:url('../img/arrow_left.gif')}.wolfnet_widget.wolfnet_featuredListings .scrollingHotSpotRight{right:0}.wolfnet_widget.wolfnet_featuredListings .scrollingHotSpotRightVisible{background-image:url('../img/arrow_right.gif')}.wolfnet_widget.wolfnet_featuredListings .scrollWrapper{position:relative;overflow:hidden;width:100%;height:100%}.wolfnet_widget.wolfnet_featuredListings .scrollWrapper .scrollableArea{position:relative;width:auto;height:100%}.wolfnet_widget.wolfnet_listingGrid{text-align:left;margin:0 auto 2em auto}.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing{height:185px;text-align:left;position:relative}.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing.wolfnet_branded{height:300px}.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_branding{display:block;padding-top:2em}.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_branding .wolfnet_brokerLogo{display:block}.wolfnet_widget.wolfnet_listingGrid .wolfnet_listing .wolfnet_branding .wolfnet_brandingMessage{display:block}.wolfnet_widget.wolfnet_propertyList .wolfnet_listing .wolfnet_full_address{float:left}.wolfnet_widget.wolfnet_propertyList .wolfnet_listing .wolfnet_price{float:right}.wolfnet_widget.wolfnet_propertyList .wolfnet_listing>a{display:block;clear:both}.wolfnet_widget .wolfnet_marketDisclaimer{clear:both;margin-top:2em}.wolfnet_moreInfo{width:100%;height:18px}.wolfnet_moreInfo span{display:none}.wolfnet_moreInfoIcon{display:inline-block;width:18px;height:18px;background:url('../img/info.png') no-repeat center;vertical-align:top}#tooltip{position:absolute;z-index:3000;border:1px solid #d5d5d0;background-color:#ffffd0;padding:10px;-moz-border-radius:5px;border-radius:5px;box-shadow:0 10px 30px #DDD;min-width:100px;min-height:100px}#tooltip h3,#tooltip div{margin:0;font-style:italic;width:100%}.wolfnet_clearfix:before,.wolfnet_clearfix:after{content:"";display:table}.wolfnet_clearfix:after{clear:both}.wolfnet_clearfix{float:none!important;clear:both}
  • wolfnet-idx-for-wordpress/trunk/css/wolfnet.src.css

    r1051920 r1073639  
    2424  margin: 1em auto 2em auto;
    2525}
     26.wolfnet_widget.wolfnet_quickSearch_legacy {
     27  z-index: 10;
     28  background: -moz-linear-gradient(top, #ffffff 60%, #e2e2e2 100%);
     29  /* FF3.6+ */
     30
     31  background: -webkit-gradient(linear, left top, left bottom, color-stop(60%, #ffffff), color-stop(100%, #e2e2e2));
     32  /* Chrome,Safari4+ */
     33
     34  background: -webkit-linear-gradient(top, #ffffff 60%, #e2e2e2 100%);
     35  /* Chrome10+,Safari5.1+ */
     36
     37  background: -o-linear-gradient(top, #ffffff 60%, #e2e2e2 100%);
     38  /* Opera 11.10+ */
     39
     40  background: -ms-linear-gradient(top, #ffffff 60%, #e2e2e2 100%);
     41  /* IE10+ */
     42
     43  background: linear-gradient(to bottom, #ffffff 60%, #e2e2e2 100%);
     44  /* W3C */
     45
     46  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#e2e2e2",GradientType=0);
     47  /* IE6-9 */
     48
     49}
    2650.wolfnet_widget.wolfnet_quickSearch {
    2751  border: 1px solid #DDD;
    2852  padding: 8px;
    2953  position: relative;
    30   z-index: 10;
    31   background: -moz-linear-gradient(top, #ffffff 60%, #e2e2e2 100%);
    32   /* FF3.6+ */
    33 
    34   background: -webkit-gradient(linear, left top, left bottom, color-stop(60%, #ffffff), color-stop(100%, #e2e2e2));
    35   /* Chrome,Safari4+ */
    36 
    37   background: -webkit-linear-gradient(top, #ffffff 60%, #e2e2e2 100%);
    38   /* Chrome10+,Safari5.1+ */
    39 
    40   background: -o-linear-gradient(top, #ffffff 60%, #e2e2e2 100%);
    41   /* Opera 11.10+ */
    42 
    43   background: -ms-linear-gradient(top, #ffffff 60%, #e2e2e2 100%);
    44   /* IE10+ */
    45 
    46   background: linear-gradient(to bottom, #ffffff 60%, #e2e2e2 100%);
    47   /* W3C */
    48 
    49   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#e2e2e2",GradientType=0);
    50   /* IE6-9 */
    51 
    5254}
    5355.wolfnet_widget.wolfnet_quickSearch .wolfnet_widgetTitle {
     
    183185  width: auto;
    184186  float: none;
     187}
     188.wolfnet_widget.wolfnet_quickSearch_basic {
     189  z-index: 0;
    185190}
    186191.wolfnet_widget.wolfnet_featuredListings .wolfnet_listing, .wolfnet_widget.wolfnet_listingGrid .wolfnet_listing {
  • wolfnet-idx-for-wordpress/trunk/js/wolfnet.min.js

    r856450 r1073639  
    11var wolfnet=function(){};wolfnet.initMoreInfo=function(c){(function(b){c.hide();c.each(function(){var c=b(this),a=c.siblings("span.wolfnet_moreInfoIcon");0==a.length&&(a=b("<span />"),a.addClass("wolfnet_moreInfoIcon"),c.before(a))});"undefined"!=typeof b.fn.tooltip&&b(".wolfnet_moreInfoIcon").tooltip({showURL:!1,bodyHandler:function(){return b(this).siblings(".wolfnet_moreInfo").html()}})})(jQuery)};wolfnet.hideMap=function(c,b,d){var a=jQuery;a("#"+c).hide();a("#"+b).hide();a("#"+d).show()};
    22wolfnet.showMap=function(c,b,d){var a=jQuery;a("#"+c).show();a("#"+b).show();a("#"+d).hide()};wolfnet.hideListings=function(c,b,d){var a=jQuery;a("#"+c).hide();a("#"+d).show();a("#"+b).hide()};wolfnet.showListings=function(c,b,d,a){var e=jQuery;e("#"+c).show();e("#"+b).show();e("#"+d).hide();-1!=a.indexOf("listingGrid")&&e("#"+a).wolfnetListingGrid("reload")};
    3 "undefined"!=typeof jQuery&&function(c){c(document).ready(function(){wolfnet.initMoreInfo(c(".wolfnet_moreInfo"));(function(){if(!("placeholder"in document.createElement("input"))){var b=c("input[placeholder]"),d=function(){var a=c(this),b=a.attr("placeholder");if(""==a.val().trim()||a.val().trim()==b)a.val(b),a.addClass("input-placeholder")},a=function(){var a=c(this),b=a.attr("placeholder");a.val().trim()==b&&a.val("");a.removeClass("input-placeholder")};b.blur(d);b.change(d);b.focus(a);b.submit(a);
    4 b.trigger("blur")}})()})}(jQuery);
     3"undefined"!=typeof jQuery&&function(c){c(document).ready(function(){wolfnet.initMoreInfo(c(".wolfnet_moreInfo"));(function(){c(".wolfnet_error a").click(function(){c(this).siblings("div").toggle()});if(!("placeholder"in document.createElement("input"))){var b=c("input[placeholder]"),d=function(){var a=c(this),b=a.attr("placeholder");if(""==a.val().trim()||a.val().trim()==b)a.val(b),a.addClass("input-placeholder")},a=function(){var a=c(this),b=a.attr("placeholder");a.val().trim()==b&&a.val("");a.removeClass("input-placeholder")};
     4b.blur(d);b.change(d);b.focus(a);b.submit(a);b.trigger("blur")}})()})}(jQuery);
  • wolfnet-idx-for-wordpress/trunk/js/wolfnet.src.js

    r856450 r1073639  
    131131            ( function () {
    132132
     133                $(".wolfnet_error a").click( function() {
     134                    $(this).siblings("div").toggle();
     135                });
     136
    133137                if ( !isPlaceholderSupported() ) {
    134138
  • wolfnet-idx-for-wordpress/trunk/template/adminSettings.php

    r974301 r1073639  
    6363                                        value="<?php echo $productKey[$i-1]->key; ?>" class="wolfnet_productKey" size="50" />
    6464                                </td>
    65                                 <td><span class="wolfnet_keyMarket"><?php echo $productKey[$i-1]->market; ?></span></td>
     65                                <td><span class="wolfnet_keyMarket">
     66                                <?php if ( isset($productKey[$i-1]->market) ) echo $productKey[$i-1]->market; ?>
     67                                </span></td>
    6668                                <td>
    6769                                    <input id="wolfnet_keyLabel_<?php echo $i; ?>" class="wolfnet_keyLabel" name="wolfnet_keyLabel_<?php echo $i; ?>" type="text"
  • wolfnet-idx-for-wordpress/trunk/template/listingGridOptions.php

    r1051920 r1073639  
    7373               
    7474                <p id="mapDisabled" class="mapDisabled" style="display:<?php echo ($mapEnabled ? 'none' : 'block'); ?>">
    75                     <span style="color:#FF0000;font-weight:bold;">*</span>
    76 
    77                 <?php if (!$mapEnabled) { ?>
    78                 <p>
    79                     <span style="color:#FF0000;font-weight:bold;">*</span>
    80                     <span style="font-style:italic;font-size:0.75em;">Map option is unavailable at this time. To enable this feature, please contact WolfNet sales for more information (612) 342-0088.</span>
     75                    <?php if (!$mapEnabled) { ?>
     76                        <p>
     77                            <span style="color:#FF0000;font-weight:bold;">*</span>
     78                            <span style="font-style:italic;font-size:0.75em;">
     79                                Map option is unavailable at this time. To enable this feature, please contact WolfNet sales for more information (612) 342-0088.
     80                            </span>
     81                        </p>
     82                    <?php } ?>
    8183                </p>
    82         <?php } ?>
    8384            </td>
    8485        </tr>
  • wolfnet-idx-for-wordpress/trunk/template/quickSearch.php

    r1051920 r1073639  
    2323?>
    2424
    25 <div id="<?php echo $instance_id; ?>" class="wolfnet_widget wolfnet_quickSearch">
     25<div id="<?php echo $instance_id; ?>" class="wolfnet_widget wolfnet_quickSearch <?php echo $viewclass; ?>">
    2626
    2727    <?php if (trim($title) != '') { ?>
  • wolfnet-idx-for-wordpress/trunk/template/quickSearchOptions.php

    r972601 r1073639  
    3232            <td><label>Title:</label></td>
    3333            <td><input id="<?php echo $title_wpid; ?>" name="<?php echo $title_wpname; ?>" value="<?php echo $title; ?>" type="text" /></td>
     34        </tr>
     35        <tr>
     36            <td><label>Layout:</label></td>
     37            <td>
     38                <select id="<?php echo $view_wpid; ?>" name="<?php echo $view_wpname; ?>" >
     39                    <option value="basic" <?php echo ($view == "basic" ? 'selected="selcted"': "") ?>>Basic</option>
     40                    <option value="legacy" <?php echo ($view == "legacy" ? 'selected="selcted"': "") ?>>Legacy</option>
     41                </select>
     42            </td>
    3443        </tr>
    3544        <?php if(count($markets) > 1):
  • wolfnet-idx-for-wordpress/trunk/widget/ListingGridWidget.php

    r1051920 r1073639  
    130130        if ($data['mode'] == 'advanced') {
    131131            $criteriaArray = $this->convertCriteriaJsonToArray($data['criteria']);
     132            // array keys need to be lowercase
     133            $criteriaArray = array_change_key_case($criteriaArray);
    132134            $data = array_merge($data, $criteriaArray);
    133135        }
  • wolfnet-idx-for-wordpress/trunk/wolfnet.php

    r1051920 r1073639  
    66 * Description:  The WolfNet IDX for WordPress plugin provides IDX search solution integration with
    77 *               any WordPress website.
    8  * Version:      1.7.0
     8 * Version:      1.7.1
    99 * Author:       WolfNet Technologies, LLC.
    1010 * Author URI:   http://www.wolfnet.com
     
    4646     * @var string
    4747     */
    48     public $version = '1.7.0';
     48    public $version = '1.7.1';
    4949
    5050    /**
     
    203203
    204204
    205     public function buildUrl($url='', array $params=array())
    206     {
    207         if (!strstr($url, '?')) {
    208             $url .= '?';
    209         }
    210 
    211         $restrictedParams = array('criteria','toolbarTop','toolbarBottom','listingsHtml','prevLink',
    212             'nextLink','prevClass','nextClass','toolbarClass','instance_id','siteUrl','class','_');
    213 
    214         $restrictedSuffix = array('_wpid', '_wpname', '_wps', '_wpc');
    215 
    216         foreach ($params as $key => $value) {
    217             $valid = true;
    218             $valid = (array_search($key, $restrictedParams) !== false) ? false : $valid;
    219             $valid = (!is_string($value) && !is_numeric($value) && !is_bool($value)) ? false : $valid;
    220 
    221             foreach ($restrictedSuffix as $suffix) {
    222                 $valid = (substr($key, strlen($suffix)*-1) == $suffix) ? false : $valid;
    223             }
    224 
    225             if ($valid) {
    226                 $url .= '&' . $key . '=' . urlencode($this->html_entity_decode_numeric($value));
    227             }
    228 
    229         }
    230 
    231         return $url;
    232 
    233     }
    234 
    235205    /**
    236206     * Decodes all HTML entities, including numeric and hexadecimal ones.
     
    265235        return $this->chr_utf8($matches[1]);
    266236    }
     237
    267238
    268239    /* Hooks ************************************************************************************ */
     
    514485        global $wp_version;
    515486        $baseUrl = $this->getBaseUrl($productKey);
     487
     488        if (is_wp_error($baseUrl)) return $this->getWpError($baseUrl);
     489
    516490        $maptracksEnabled = $this->getMaptracksEnabled($productKey);
    517491
     
    658632
    659633
     634
     635    public function buildUrl($url='', array $params=array())
     636    {
     637        if (!strstr($url, '?')) {
     638            $url .= '?';
     639        }
     640
     641        $restrictedParams = array('criteria','toolbarTop','toolbarBottom','listingsHtml','prevLink',
     642            'nextLink','prevClass','nextClass','toolbarClass','instance_id','siteUrl','class','_');
     643
     644        $restrictedSuffix = array('_wpid', '_wpname', '_wps', '_wpc');
     645
     646        foreach ($params as $key => $value) {
     647            $valid = true;
     648            $valid = (array_search($key, $restrictedParams) !== false) ? false : $valid;
     649            $valid = (!is_string($value) && !is_numeric($value) && !is_bool($value)) ? false : $valid;
     650
     651            foreach ($restrictedSuffix as $suffix) {
     652                $valid = (substr($key, strlen($suffix)*-1) == $suffix) ? false : $valid;
     653            }
     654
     655            if ($valid) {
     656                $url .= '&' . $key . '=' . urlencode($this->html_entity_decode_numeric($value));
     657            }
     658
     659        }
     660
     661        return $url;
     662
     663    }
     664
    660665    /* Custom Post Types ************************************************************************ */
    661666    /*  _                         _              ___                                              */
     
    959964
    960965        $data = $this->apin->sendRequest($_REQUEST['key'], '/listing', 'GET', $qdata);
    961         if (is_wp_error($data)){
    962             echo "API returned and error: ";
    963             echo $data->get_error_code();
    964             return $data;
    965         } 
     966        if (is_wp_error($data)) return $this->getWpError($data);
    966967 
    967968        $this->augmentListingsData($data, $_REQUEST['key']);
     
    11051106
    11061107        $data = $this->apin->sendRequest($criteria['key'], '/listing', 'GET', $qdata);
     1108
     1109        if (is_wp_error($data)) return $this->getWpError($data);
     1110
    11071111        $this->augmentListingsData($data, $criteria['key']);
    11081112
    1109         // TODO
    1110         // create a wp_error display method with some nice formating
    1111         if (is_wp_error($data)) {
    1112             $msg = "Wolfnet Error: <br>";
    1113             $code = $data->get_error_code();
    1114             $msg .= "code: $code </br> Message: ";
    1115             $msg .= $data->get_error_message($code);
    1116             $msg .= '<div style="display:none;">';
    1117             $msg .= "<br>Data: <pre>";
    1118             $msg .= print_r($data, true);
    1119             $msg .= "</pre>";
    1120             $msg .= "</div>";
    1121             return $msg;
    1122         }
     1113       
    11231114
    11241115        $listingsData = array();
     
    12201211        $qdata = $this->prepareListingQuery($criteria);
    12211212
    1222         $data = $this->apin->sendRequest($criteria['key'], '/listing', 'GET', $qdata);
    1223        
    1224         // TODO
    1225         // create a wp_error display method with some nice formating
    1226         if (is_wp_error($data)) {
    1227 
    1228             $msg = "Wolfnet Error: <br>";
    1229             $code = $data->get_error_code();
    1230             $msg .= "code: $code </br> Message: ";
    1231             $msg .= $data->get_error_message($code);
    1232             $msg .= '<div style="display:none">';
    1233             $msg .= "Returned data: \n";
    1234             $msg .= print_r($data, true);
    1235             $msg .= '</div>';
    1236             $msg .= "</pre>";
    1237             return $msg;
    1238             //return $data;
    1239         }
     1213        $data = $this->apin->sendRequest($criteria['key'], '/listing', 'GET', $qdata);   
     1214        if (is_wp_error($data)) return $this->getWpError($data);
    12401215
    12411216        // add some elements to the array returned by the API
     
    14331408
    14341409        return array(
    1435             'title' => 'QuickSearch',
    1436             'keyid' => '',
    1437             'keyids' => '',
     1410            'title'     => 'QuickSearch',
     1411            'keyid'     => '',
     1412            'keyids'    => '',
     1413            'view'      => '',
    14381414            );
    14391415
     
    15811557            // we look for a comma in the string and change exact city to false if one exists
    15821558            if ( strpos($criteria['city'], ',') !== false) $qdata['exact_city'] = 0;
    1583         } 
     1559        }
     1560
     1561        if ( !empty( $criteria['primarysearchtype'] )) {
     1562            if ( $criteria['primarysearchtype'] == 'sold' ) $qdata['sold'] = 1;
     1563            if ( $criteria['primarysearchtype'] == 'open' ) $qdata['open_house'] = 1;
     1564            if ( $criteria['primarysearchtype'] == 'foreclosure' ) $qdata['foreclosure'] = 1;
     1565        }
     1566
     1567        // 'owner_type' was replaced by bools 'agent_only', 'office_only' and 'agent_office_only'
     1568        // if owner_type is set then add the correct bool
     1569        // if the bool is set directly the value set will overwrite what has been set by owner_type below
     1570        //
     1571        // The field 'ownertype' is being used by a client but I can't find where the plugin is generating that
     1572        if ( !empty( $criteria['ownertype'] )) {
     1573            if ($criteria['ownertype'] == 'agent') $qdata['agent_only'] = 1;
     1574            if ($criteria['ownertype'] == 'broker') $qdata['office_only'] = 1;
     1575            if ($criteria['ownertype'] == 'agent_broker') $qdata['agent_office_only'] = 1;
     1576        }
     1577        if ( !empty( $criteria['owner_type'] )) {
     1578            if ($criteria['owner_type'] == 'agent') $qdata['agent_only'] = 1;
     1579            if ($criteria['owner_type'] == 'broker') $qdata['office_only'] = 1;
     1580            if ($criteria['owner_type'] == 'agent_broker') $qdata['agent_office_only'] = 1;
     1581        }
     1582
     1583        if (isset( $criteria['agent_only'] )) 
     1584            $qdata['agent_only'] = $this->convertBool($criteria['agent_only']);
     1585        if (isset( $criteria['office_only'] )) 
     1586            $qdata['office_only'] = $this->convertBool($criteria['office_only']);
     1587        if (isset( $criteria['agent_office_only'] )) 
     1588            $qdata['agent_office_only'] = $this->convertBool($criteria['agent_office_only']);
    15841589
    15851590        if (isset($criteria['address'])) $qdata['address'] = $criteria['address'];
    15861591        if (isset($criteria['agent_id'])) $qdata['agent_id'] = $criteria['agent_id'];
    1587         if (isset( $criteria['agent_office_only'] )) 
    1588             $qdata['agent_office_only'] = $this->convertBool($criteria['agent_office_only']);
    1589         if (isset( $criteria['agent_only'] )) 
    1590             $qdata['agent_only'] = $this->convertBool($criteria['agent_only']);
    1591         if (isset($criteria['custom1'])) $qdata['area_name'] = $criteria['custom1']; // legacy
     1592       
    15921593        if (isset($criteria['area_name'])) $qdata['area_name'] = $criteria['area_name'];
     1594        if (isset($criteria['area_int'])) $qdata['area_int'] = $criteria['area_int'];
    15931595        if (isset($criteria['building_name'])) $qdata['building_name'] = $criteria['building_name'];
    15941596        if (isset($criteria['built_after'])) $qdata['built_after'] = $criteria['built_after'];
     
    16961698            $qdata['newlistings'] = $this->convertBool($criteria['newlistings']);
    16971699        if (isset($criteria['office_id'])) $qdata['office_id'] = $criteria['office_id'];
    1698         if (isset( $criteria['office_only'] )) 
    1699             $qdata['office_only'] = $this->convertBool($criteria['office_only']);
     1700       
    17001701        if (isset( $criteria['on_golf_course'] )) 
    17011702            $qdata['on_golf_course'] = $this->convertBool($criteria['on_golf_course']);
     
    17541755        if (isset($criteria['zipcode'])) $qdata['zip_code'] = $criteria['zipcode']; // legacy
    17551756        if (isset($criteria['zip_code'])) $qdata['zip_code'] = $criteria['zip_code'];
    1756  
    1757         // stories use to be a select called "custom2" with possible values 1,2,3,4,5,Multi-Leve - note the l is missing
    1758         if (isset($criteria['custom2'])) {
    1759             $three_plus = array(3,4,5,'Multi-Leve', 'Multi-Level');
    1760             if ($criteria['custom2'] == 1) { $qdata['one_story'] = 1; }  // legacy
    1761             else if ($criteria['custom2'] == 2) { $qdata['two_story'] =1; } // legacy
    1762             else if ( in_array($criteria['custom2'], $three_plus)) { $qdata['three_plus_story'] = 1; } // legacy
    1763         }
    17641757
    17651758        if (isset( $criteria['one_story'] )) 
     
    17701763            $qdata['three_plus_story'] = $this->convertBool($criteria['three_plus_story']);
    17711764
     1765        for ($i = 1; $i <= 25; $i++) {
     1766            $check = 'custom' . $i;
     1767            if (isset( $criteria[ $check ] )) $qdata[ $check ] = $criteria[ $check ];
     1768        }
    17721769
    17731770        return $qdata;
     
    20492046
    20502047    /**
    2051      * Prepair the listings for display. Pass in the array returned from the api /listing method.
     2048     * Prepare the listings for display. Pass in the array returned from the api /listing method.
    20522049     * Format fields & add missing data items needed for displays
    20532050     * @param  array $data   the array as returned from the api /listing method
     
    20572054    public function augmentListingsData(&$data, $key)
    20582055    {
     2056
    20592057        if (is_array($data['responseData']['data']))
    20602058            $listingsData = &$data['responseData']['data']['listing'];
     
    22002198    }
    22012199
     2200    public function getWpError($error)
     2201    {
     2202        return $this->views->errorView($error);
     2203    }
     2204
    22022205    /**
    22032206     * get the api display setting for "Max Results". If it is not set use 250
     
    23212324
    23222325        $data  = $this->apin->sendRequest( $productKey, '/settings' );
     2326        if (is_wp_error($data)) return $this->getWpError($data);
    23232327
    23242328        $args['map_start_lat'] = $data['responseData']['data']['market']['maptracks']['map_start_lat'];
     
    23922396        }
    23932397
    2394         $http = $this->apin->sendRequest(
    2395                     $productKey,
    2396                     '/status');
     2398        $http = $this->apin->sendRequest( $productKey, '/status');
     2399
    23972400
    23982401        if (!is_wp_error($http) && $http['responseStatusCode'] == '200') {
  • wolfnet-idx-for-wordpress/trunk/wolfnet/Wolfnet_Views.php

    r1051920 r1073639  
    171171        $markets = json_decode($GLOBALS['wolfnet']->getProductKey());
    172172        $keyids = array();
     173        $view = '';
     174
    173175        foreach($markets as $market) {
    174176            array_push($keyids, $market->id);
     
    178180            'markets'     => $markets,
    179181            'keyids'      => $keyids,
     182            'view'        => $view,
    180183            );
    181184
     
    294297    public function quickSearchView(array $args=array())
    295298    {
     299        // array containing possible values for "view" arg
     300        $views = array( "basic" , "legacy");
     301        //set up a custom css class for the wrapper. default "wolfnet_quickSearch_legacy"
     302        $args['viewclass'] = "wolfnet_quickSearch_" . ( in_array($args['view'], $views ) ? $args['view'] : "legacy");
     303
    296304        foreach ($args as $key => $item) {
    297305            $args[$key] = apply_filters( 'wolfnet_quickSearchView_' . $key, $item );
     
    346354
    347355        return apply_filters('wolfnet_toolbarView', ob_get_clean());
     356
     357    }
     358
     359    public function errorView($error)
     360    {
     361
     362        ob_start();
     363        include $GLOBALS['wolfnet']->dir .'/template/error.php';
     364        return ob_get_clean();
    348365
    349366    }
  • wolfnet-idx-for-wordpress/trunk/wolfnet/wolfnet-api-wp-client/WolfnetApiClient.php

    r1051920 r1073639  
    145145            'method'   => $method,
    146146            'headers'  => $headers,
     147            // 'timeout'  => 10000, // 10sec
    147148        );
    148149
     
    317318
    318319                if (is_wp_error($valid)) { // if we already have error add a message to it
    319                     $valid->add('badData', __("invalid data type $key : $value"));
     320                    $show = print_r($data, true);
     321                    $valid->add('badData', __("Invalid API request argument"), $show);
    320322                } else {
    321323                    $show = print_r($data, true);
     
    332334    private function getApiToken( $key, $force = false)
    333335    {
     336        global $wp_version;
    334337        // Unless forced to do otherwise, attempt to retrieve the token from a cache.
    335338        $transient_key = $this->transientIndexKey . $key;
    336339        $token = get_transient( $transient_key );
     340        $theme = wp_get_theme();
    337341        //$token = $force ? "" : $this->retrieveApiTokenDataFromCache($key);
    338 
    339          
     342             
    340343        // If a token was not retrieved from the cache perform an API request to retrieve a new one.
    341344        if ($token == "") {
     
    344347                'v' => $this->version,
    345348            );
    346             // echo "how about here?<br>";
     349            $headers = array(
     350                'pluginVersion' => $GLOBALS['wolfnet']->version,
     351                'phpVersion'    => phpversion(),
     352                'wpVersion'     => $wp_version,
     353                'wpTheme'       => $theme->get('Name'),
     354                );
     355           
    347356            $auth_response = $this->rawRequest(
    348357                $key,
     
    350359                "POST",
    351360                $data,
    352                 array(),
     361                $headers,
    353362                true // Since we don't have a valid token we don't want to attempt to include it.
    354363                );
     
    360369            $token = $auth_response['responseData']['data']['api_token'];
    361370
    362             // time to live. when should this transient expire?
    363             // expiration time - time created - 5
    364371            $ttl = ( strtotime($auth_response['responseData']['data']['expiration']) - strtotime($auth_response['responseData']['data']['date_created']) - 5 );
    365372
Note: See TracChangeset for help on using the changeset viewer.