Changeset 1073639
- Timestamp:
- 01/22/2015 09:07:22 PM (11 years ago)
- Location:
- wolfnet-idx-for-wordpress
- Files:
-
- 93 added
- 1 deleted
- 13 edited
-
tags/1.7.1 (added)
-
tags/1.7.1/LICENSE (added)
-
tags/1.7.1/ReadMe.txt (added)
-
tags/1.7.1/css (added)
-
tags/1.7.1/css/wolfnet.min.css (added)
-
tags/1.7.1/css/wolfnet.src.css (added)
-
tags/1.7.1/css/wolfnetAdmin.min.css (added)
-
tags/1.7.1/css/wolfnetAdmin.src.css (added)
-
tags/1.7.1/humans.txt (added)
-
tags/1.7.1/img (added)
-
tags/1.7.1/img/arrow_left.gif (added)
-
tags/1.7.1/img/arrow_left.png (added)
-
tags/1.7.1/img/arrow_right.gif (added)
-
tags/1.7.1/img/arrow_right.png (added)
-
tags/1.7.1/img/big_transparent.gif (added)
-
tags/1.7.1/img/houseover.png (added)
-
tags/1.7.1/img/info.png (added)
-
tags/1.7.1/img/info.src.png (added)
-
tags/1.7.1/img/invalid.png (added)
-
tags/1.7.1/img/showmap.gif (added)
-
tags/1.7.1/img/valid.png (added)
-
tags/1.7.1/img/wp_wolfnet_nav.png (added)
-
tags/1.7.1/img/wp_wolfnet_title.png (added)
-
tags/1.7.1/js (added)
-
tags/1.7.1/js/jquery.imagesloaded.min.js (added)
-
tags/1.7.1/js/jquery.imagesloaded.src.js (added)
-
tags/1.7.1/js/jquery.migrate.min.js (added)
-
tags/1.7.1/js/jquery.migrate.src.js (added)
-
tags/1.7.1/js/jquery.mousewheel.min.js (added)
-
tags/1.7.1/js/jquery.mousewheel.src.js (added)
-
tags/1.7.1/js/jquery.smoothDivScroll-1.2.min.js (added)
-
tags/1.7.1/js/jquery.smoothDivScroll-1.2.src.js (added)
-
tags/1.7.1/js/jquery.tooltip.min.js (added)
-
tags/1.7.1/js/jquery.tooltip.src.js (added)
-
tags/1.7.1/js/jquery.wolfnetListingGrid.min.js (added)
-
tags/1.7.1/js/jquery.wolfnetListingGrid.src.js (added)
-
tags/1.7.1/js/jquery.wolfnetMaptracks.min.js (added)
-
tags/1.7.1/js/jquery.wolfnetMaptracks.src.js (added)
-
tags/1.7.1/js/jquery.wolfnetPropertyList.min.js (added)
-
tags/1.7.1/js/jquery.wolfnetPropertyList.src.js (added)
-
tags/1.7.1/js/jquery.wolfnetQuickSearch.min.js (added)
-
tags/1.7.1/js/jquery.wolfnetQuickSearch.src.js (added)
-
tags/1.7.1/js/jquery.wolfnetScrollingItems.min.js (added)
-
tags/1.7.1/js/jquery.wolfnetScrollingItems.src.js (added)
-
tags/1.7.1/js/jquery.wolfnetSearchManager.min.js (added)
-
tags/1.7.1/js/jquery.wolfnetSearchManager.src.js (added)
-
tags/1.7.1/js/jquery.wolfnetShortcodeBuilder.min.js (added)
-
tags/1.7.1/js/jquery.wolfnetShortcodeBuilder.src.js (added)
-
tags/1.7.1/js/jquery.wolfnetToolbar.min.js (added)
-
tags/1.7.1/js/jquery.wolfnetToolbar.src.js (added)
-
tags/1.7.1/js/mapquestApiConfig.min.js (added)
-
tags/1.7.1/js/mapquestApiConfig.src.js (added)
-
tags/1.7.1/js/tinymce.wolfnetShortcodeBuilder.min.js (added)
-
tags/1.7.1/js/tinymce.wolfnetShortcodeBuilder.src.js (added)
-
tags/1.7.1/js/wolfnet.min.js (added)
-
tags/1.7.1/js/wolfnet.src.js (added)
-
tags/1.7.1/js/wolfnetAdmin.min.js (added)
-
tags/1.7.1/js/wolfnetAdmin.src.js (added)
-
tags/1.7.1/template (added)
-
tags/1.7.1/template/adminEditCss.php (added)
-
tags/1.7.1/template/adminSearchManager.php (added)
-
tags/1.7.1/template/adminSettings.php (added)
-
tags/1.7.1/template/adminSupport.php (added)
-
tags/1.7.1/template/briefListing.php (added)
-
tags/1.7.1/template/error.php (added)
-
tags/1.7.1/template/featuredListings.php (added)
-
tags/1.7.1/template/featuredListingsOptions.php (added)
-
tags/1.7.1/template/hideListingsTools.php (added)
-
tags/1.7.1/template/invalidProductKey.php (added)
-
tags/1.7.1/template/listing.php (added)
-
tags/1.7.1/template/listingGrid.php (added)
-
tags/1.7.1/template/listingGridOptions.php (added)
-
tags/1.7.1/template/listingHouseover.php (added)
-
tags/1.7.1/template/map.php (added)
-
tags/1.7.1/template/propertyList.php (added)
-
tags/1.7.1/template/propertyListOptions.php (added)
-
tags/1.7.1/template/quickSearch.php (added)
-
tags/1.7.1/template/quickSearchOptions.php (added)
-
tags/1.7.1/template/resultsListing.php (added)
-
tags/1.7.1/template/toolbar.php (added)
-
tags/1.7.1/widget (added)
-
tags/1.7.1/widget/AbstractWidget.php (added)
-
tags/1.7.1/widget/FeaturedListingsWidget.php (added)
-
tags/1.7.1/widget/ListingGridWidget.php (added)
-
tags/1.7.1/widget/PropertyListWidget.php (added)
-
tags/1.7.1/widget/QuickSearchWidget.php (added)
-
tags/1.7.1/wolfnet (added)
-
tags/1.7.1/wolfnet.php (added)
-
tags/1.7.1/wolfnet/Wolfnet_Admin.php (added)
-
tags/1.7.1/wolfnet/Wolfnet_Views.php (added)
-
tags/1.7.1/wolfnet/wolfnet-api-wp-client (added)
-
tags/1.7.1/wolfnet/wolfnet-api-wp-client/WolfnetApiClient.php (added)
-
trunk/ReadMe.txt (modified) (2 diffs)
-
trunk/css/wolfnet.min.css (modified) (1 diff)
-
trunk/css/wolfnet.src.css (modified) (2 diffs)
-
trunk/js/wolfnet.min.js (modified) (1 diff)
-
trunk/js/wolfnet.src.js (modified) (1 diff)
-
trunk/template/adminSettings.php (modified) (1 diff)
-
trunk/template/error.php (added)
-
trunk/template/listingGridOptions.php (modified) (1 diff)
-
trunk/template/quickSearch.php (modified) (1 diff)
-
trunk/template/quickSearchOptions.php (modified) (1 diff)
-
trunk/widget/ListingGridWidget.php (modified) (1 diff)
-
trunk/wolfnet.php (modified) (19 diffs)
-
trunk/wolfnet/Wolfnet_Views.php (modified) (4 diffs)
-
trunk/wolfnet/wolfnet-api-wp-client/README.md (deleted)
-
trunk/wolfnet/wolfnet-api-wp-client/WolfnetApiClient.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wolfnet-idx-for-wordpress/trunk/ReadMe.txt
r1051920 r1073639 5 5 Requires at least: 3.5.1 6 6 Tested up to: 4.1 7 Stable tag: 1.7. 07 Stable tag: 1.7.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 81 81 82 82 == 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 83 91 84 92 = 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} 3 3 .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} 4 4 .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 24 24 margin: 1em auto 2em auto; 25 25 } 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 } 26 50 .wolfnet_widget.wolfnet_quickSearch { 27 51 border: 1px solid #DDD; 28 52 padding: 8px; 29 53 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 52 54 } 53 55 .wolfnet_widget.wolfnet_quickSearch .wolfnet_widgetTitle { … … 183 185 width: auto; 184 186 float: none; 187 } 188 .wolfnet_widget.wolfnet_quickSearch_basic { 189 z-index: 0; 185 190 } 186 191 .wolfnet_widget.wolfnet_featuredListings .wolfnet_listing, .wolfnet_widget.wolfnet_listingGrid .wolfnet_listing { -
wolfnet-idx-for-wordpress/trunk/js/wolfnet.min.js
r856450 r1073639 1 1 var 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()}; 2 2 wolfnet.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")}; 4 b.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 131 131 ( function () { 132 132 133 $(".wolfnet_error a").click( function() { 134 $(this).siblings("div").toggle(); 135 }); 136 133 137 if ( !isPlaceholderSupported() ) { 134 138 -
wolfnet-idx-for-wordpress/trunk/template/adminSettings.php
r974301 r1073639 63 63 value="<?php echo $productKey[$i-1]->key; ?>" class="wolfnet_productKey" size="50" /> 64 64 </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> 66 68 <td> 67 69 <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 73 73 74 74 <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 } ?> 81 83 </p> 82 <?php } ?>83 84 </td> 84 85 </tr> -
wolfnet-idx-for-wordpress/trunk/template/quickSearch.php
r1051920 r1073639 23 23 ?> 24 24 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; ?>"> 26 26 27 27 <?php if (trim($title) != '') { ?> -
wolfnet-idx-for-wordpress/trunk/template/quickSearchOptions.php
r972601 r1073639 32 32 <td><label>Title:</label></td> 33 33 <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> 34 43 </tr> 35 44 <?php if(count($markets) > 1): -
wolfnet-idx-for-wordpress/trunk/widget/ListingGridWidget.php
r1051920 r1073639 130 130 if ($data['mode'] == 'advanced') { 131 131 $criteriaArray = $this->convertCriteriaJsonToArray($data['criteria']); 132 // array keys need to be lowercase 133 $criteriaArray = array_change_key_case($criteriaArray); 132 134 $data = array_merge($data, $criteriaArray); 133 135 } -
wolfnet-idx-for-wordpress/trunk/wolfnet.php
r1051920 r1073639 6 6 * Description: The WolfNet IDX for WordPress plugin provides IDX search solution integration with 7 7 * any WordPress website. 8 * Version: 1.7. 08 * Version: 1.7.1 9 9 * Author: WolfNet Technologies, LLC. 10 10 * Author URI: http://www.wolfnet.com … … 46 46 * @var string 47 47 */ 48 public $version = '1.7. 0';48 public $version = '1.7.1'; 49 49 50 50 /** … … 203 203 204 204 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 235 205 /** 236 206 * Decodes all HTML entities, including numeric and hexadecimal ones. … … 265 235 return $this->chr_utf8($matches[1]); 266 236 } 237 267 238 268 239 /* Hooks ************************************************************************************ */ … … 514 485 global $wp_version; 515 486 $baseUrl = $this->getBaseUrl($productKey); 487 488 if (is_wp_error($baseUrl)) return $this->getWpError($baseUrl); 489 516 490 $maptracksEnabled = $this->getMaptracksEnabled($productKey); 517 491 … … 658 632 659 633 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 660 665 /* Custom Post Types ************************************************************************ */ 661 666 /* _ _ ___ */ … … 959 964 960 965 $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); 966 967 967 968 $this->augmentListingsData($data, $_REQUEST['key']); … … 1105 1106 1106 1107 $data = $this->apin->sendRequest($criteria['key'], '/listing', 'GET', $qdata); 1108 1109 if (is_wp_error($data)) return $this->getWpError($data); 1110 1107 1111 $this->augmentListingsData($data, $criteria['key']); 1108 1112 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 1123 1114 1124 1115 $listingsData = array(); … … 1220 1211 $qdata = $this->prepareListingQuery($criteria); 1221 1212 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); 1240 1215 1241 1216 // add some elements to the array returned by the API … … 1433 1408 1434 1409 return array( 1435 'title' => 'QuickSearch', 1436 'keyid' => '', 1437 'keyids' => '', 1410 'title' => 'QuickSearch', 1411 'keyid' => '', 1412 'keyids' => '', 1413 'view' => '', 1438 1414 ); 1439 1415 … … 1581 1557 // we look for a comma in the string and change exact city to false if one exists 1582 1558 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']); 1584 1589 1585 1590 if (isset($criteria['address'])) $qdata['address'] = $criteria['address']; 1586 1591 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 1592 1593 if (isset($criteria['area_name'])) $qdata['area_name'] = $criteria['area_name']; 1594 if (isset($criteria['area_int'])) $qdata['area_int'] = $criteria['area_int']; 1593 1595 if (isset($criteria['building_name'])) $qdata['building_name'] = $criteria['building_name']; 1594 1596 if (isset($criteria['built_after'])) $qdata['built_after'] = $criteria['built_after']; … … 1696 1698 $qdata['newlistings'] = $this->convertBool($criteria['newlistings']); 1697 1699 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 1700 1701 if (isset( $criteria['on_golf_course'] )) 1701 1702 $qdata['on_golf_course'] = $this->convertBool($criteria['on_golf_course']); … … 1754 1755 if (isset($criteria['zipcode'])) $qdata['zip_code'] = $criteria['zipcode']; // legacy 1755 1756 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 missing1758 if (isset($criteria['custom2'])) {1759 $three_plus = array(3,4,5,'Multi-Leve', 'Multi-Level');1760 if ($criteria['custom2'] == 1) { $qdata['one_story'] = 1; } // legacy1761 else if ($criteria['custom2'] == 2) { $qdata['two_story'] =1; } // legacy1762 else if ( in_array($criteria['custom2'], $three_plus)) { $qdata['three_plus_story'] = 1; } // legacy1763 }1764 1757 1765 1758 if (isset( $criteria['one_story'] )) … … 1770 1763 $qdata['three_plus_story'] = $this->convertBool($criteria['three_plus_story']); 1771 1764 1765 for ($i = 1; $i <= 25; $i++) { 1766 $check = 'custom' . $i; 1767 if (isset( $criteria[ $check ] )) $qdata[ $check ] = $criteria[ $check ]; 1768 } 1772 1769 1773 1770 return $qdata; … … 2049 2046 2050 2047 /** 2051 * Prepa irthe 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. 2052 2049 * Format fields & add missing data items needed for displays 2053 2050 * @param array $data the array as returned from the api /listing method … … 2057 2054 public function augmentListingsData(&$data, $key) 2058 2055 { 2056 2059 2057 if (is_array($data['responseData']['data'])) 2060 2058 $listingsData = &$data['responseData']['data']['listing']; … … 2200 2198 } 2201 2199 2200 public function getWpError($error) 2201 { 2202 return $this->views->errorView($error); 2203 } 2204 2202 2205 /** 2203 2206 * get the api display setting for "Max Results". If it is not set use 250 … … 2321 2324 2322 2325 $data = $this->apin->sendRequest( $productKey, '/settings' ); 2326 if (is_wp_error($data)) return $this->getWpError($data); 2323 2327 2324 2328 $args['map_start_lat'] = $data['responseData']['data']['market']['maptracks']['map_start_lat']; … … 2392 2396 } 2393 2397 2394 $http = $this->apin->sendRequest( 2395 $productKey, 2396 '/status'); 2398 $http = $this->apin->sendRequest( $productKey, '/status'); 2399 2397 2400 2398 2401 if (!is_wp_error($http) && $http['responseStatusCode'] == '200') { -
wolfnet-idx-for-wordpress/trunk/wolfnet/Wolfnet_Views.php
r1051920 r1073639 171 171 $markets = json_decode($GLOBALS['wolfnet']->getProductKey()); 172 172 $keyids = array(); 173 $view = ''; 174 173 175 foreach($markets as $market) { 174 176 array_push($keyids, $market->id); … … 178 180 'markets' => $markets, 179 181 'keyids' => $keyids, 182 'view' => $view, 180 183 ); 181 184 … … 294 297 public function quickSearchView(array $args=array()) 295 298 { 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 296 304 foreach ($args as $key => $item) { 297 305 $args[$key] = apply_filters( 'wolfnet_quickSearchView_' . $key, $item ); … … 346 354 347 355 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(); 348 365 349 366 } -
wolfnet-idx-for-wordpress/trunk/wolfnet/wolfnet-api-wp-client/WolfnetApiClient.php
r1051920 r1073639 145 145 'method' => $method, 146 146 'headers' => $headers, 147 // 'timeout' => 10000, // 10sec 147 148 ); 148 149 … … 317 318 318 319 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); 320 322 } else { 321 323 $show = print_r($data, true); … … 332 334 private function getApiToken( $key, $force = false) 333 335 { 336 global $wp_version; 334 337 // Unless forced to do otherwise, attempt to retrieve the token from a cache. 335 338 $transient_key = $this->transientIndexKey . $key; 336 339 $token = get_transient( $transient_key ); 340 $theme = wp_get_theme(); 337 341 //$token = $force ? "" : $this->retrieveApiTokenDataFromCache($key); 338 339 342 340 343 // If a token was not retrieved from the cache perform an API request to retrieve a new one. 341 344 if ($token == "") { … … 344 347 'v' => $this->version, 345 348 ); 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 347 356 $auth_response = $this->rawRequest( 348 357 $key, … … 350 359 "POST", 351 360 $data, 352 array(),361 $headers, 353 362 true // Since we don't have a valid token we don't want to attempt to include it. 354 363 ); … … 360 369 $token = $auth_response['responseData']['data']['api_token']; 361 370 362 // time to live. when should this transient expire?363 // expiration time - time created - 5364 371 $ttl = ( strtotime($auth_response['responseData']['data']['expiration']) - strtotime($auth_response['responseData']['data']['date_created']) - 5 ); 365 372
Note: See TracChangeset
for help on using the changeset viewer.