Changeset 1299362
- Timestamp:
- 12/02/2015 11:04:18 PM (10 years ago)
- Location:
- track-connect/trunk
- Files:
-
- 4 edited
-
includes/api/request.php (modified) (5 diffs)
-
includes/class-listings-search-widget.php (modified) (1 diff)
-
plugin.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
track-connect/trunk/includes/api/request.php
r1299255 r1299362 11 11 $this->domain = $domain; 12 12 $this->debug = $debug; 13 $this->endpoint = (strtoupper($domain) == 'HSR')?'http://hsr.trackstaging.info':'https://'.strtolower($domain).'.trackhs.com';13 $this->endpoint = 'https://'.strtolower($domain).'.trackhs.com'; 14 14 //$this->endpoint = 'http://utopian.jreed.trackhs.com'; 15 15 } … … 44 44 45 45 // Clean out other domain units 46 $results = $wpdb->get_results("SELECT post_id as id FROM wp_postmeta WHERE _listing_domain != '".$domain."' GROUP BY post_id;");46 /*$results = $wpdb->get_results("SELECT post_id as id FROM wp_postmeta WHERE _listing_domain != '".$domain."' GROUP BY post_id;"); 47 47 if(count($results)){ 48 48 foreach($results as $post){ … … 50 50 //$wpdb->query("DELETE FROM wp_posts WHERE id = '".$post->id."' ;"); 51 51 } 52 } 53 $unitsRemoved = count($results);52 }*/ 53 $unitsRemoved = 0; 54 54 55 55 if($this->debug == 1){ … … 278 278 ) 279 279 ); 280 280 281 281 /* Check for node stuff */ 282 282 $row = $wpdb->get_results("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'wp_terms' AND column_name = 'node_id'" ); … … 333 333 description = '".$node->typename."', 334 334 parent = '0';"); 335 335 336 foreach($node->units as $unitId){ 337 $post = $wpdb->get_row("SELECT ID FROM wp_posts WHERE unit_id = '".$unitId."';"); 338 if($post){ 339 $wpdb->query("DELETE FROM wp_term_relationships WHERE object_id = '".$post->ID."' AND term_taxonomy_id = '".$termId."';"); 340 $wpdb->query("INSERT INTO wp_term_relationships set 341 object_id = '".$post->ID."', 342 term_taxonomy_id = '".$termId."';"); 343 } 344 } 345 336 346 }else{ 337 347 $wpdb->query("UPDATE wp_terms set -
track-connect/trunk/includes/class-listings-search-widget.php
r1299288 r1299362 69 69 */ 70 70 echo '<span class="beds-header"><b>Bedrooms</b></span><input type="hidden" id="lowbed" name="lowbed" /><input type="hidden" id="highbed" name="highbed" /><br>'; 71 echo '<input class="slider-beds" type="text" id="slider-beds" readonly style="border:0; color:#f6931f; font-weight:bold;"><br> <br>';71 echo '<input class="slider-beds" type="text" id="slider-beds" readonly style="border:0; color:#f6931f; font-weight:bold;"><br>'; 72 72 echo '<div id="bed-range"></div><br>'; 73 73 74 74 // Price Range 75 75 echo '<span class="price-header" for="amount"><b>Price range</b></span><input type="hidden" id="lowrate" name="low" /><input type="hidden" id="highrate" name="high" /><br>'; 76 echo '<input class="slider-amount" type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;"><br> <br>';76 echo '<input class="slider-amount" type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;"><br>'; 77 77 echo '<div id="price-range"></div><br>'; 78 78 -
track-connect/trunk/plugin.php
r1299288 r1299362 7 7 Author URI: http://www.trackhs.com 8 8 9 Version: 1.8. 29 Version: 1.8.3 10 10 11 11 License: GNU General Public License v2.0 (or later) … … 55 55 56 56 define( 'WP_LISTINGS_URL', plugin_dir_url( __FILE__ ) ); 57 define( 'WP_LISTINGS_VERSION', '1.8. 2' );57 define( 'WP_LISTINGS_VERSION', '1.8.3' ); 58 58 59 59 /** Load textdomain for translation */ -
track-connect/trunk/readme.txt
r1299288 r1299362 4 4 Requires at least: 3.7 5 5 Tested up to: 4.2.3 6 Stable tag: 1.8. 26 Stable tag: 1.8.3 7 7 8 8 Creates and syncs listing-type posts from TRACK PM, a cloud-based property management system (www.trackhs.com).
Note: See TracChangeset
for help on using the changeset viewer.