Changeset 1244797
- Timestamp:
- 09/14/2015 05:31:40 AM (10 years ago)
- Location:
- track-connect/trunk
- Files:
-
- 4 edited
-
includes/api/request.php (modified) (3 diffs)
-
includes/views/archive-listing.php (modified) (2 diffs)
-
plugin.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
track-connect/trunk/includes/api/request.php
r1244784 r1244797 7 7 protected $url; 8 8 9 public function __construct($domain,$token ){9 public function __construct($domain,$token,$debug = 0){ 10 10 $this->token = $token; 11 $this->domain = $domain; 11 $this->domain = $domain; 12 $this->debug = $debug; 12 13 $this->endpoint = (strtoupper($domain) == 'HSR')?'http://hsr.trackstaging.info':'https://'.strtolower($domain).'.trackhs.com'; 13 //$this->endpoint = 'http://hsr.jreed.trackhs.com';14 $this->endpoint = 'http://hsr.jreed.trackhs.com'; 14 15 } 15 16 … … 44 45 } 45 46 $unitsRemoved = count($results); 46 47 48 if($this->debug == 1){ 49 print_r(json_decode($units['body'])); 50 } 51 47 52 foreach(json_decode($units['body'])->response as $id => $unit){ 48 53 … … 230 235 231 236 $unitArray = []; 232 237 238 if($this->debug == 1){ 239 print_r(json_decode($units['body'])); 240 } 241 233 242 if(json_decode($units['body'])->success == false){ 234 243 return [ -
track-connect/trunk/includes/views/archive-listing.php
r1244784 r1244797 13 13 $checkout = ($_REQUEST['checkout'])? $_REQUEST['checkout']:false; 14 14 $bedrooms = ($_REQUEST['bedrooms'])? $_REQUEST['bedrooms']:false; 15 $debug = ($_REQUEST['track_debug'])? $_REQUEST['track_debug']:0; 15 16 $availableUnits = false; 16 17 $checkAvailability = false; … … 21 22 $checkAvailability = true; 22 23 require_once( __DIR__ . '/../api/request.php' ); 23 $request = new plugins\api\pluginApi($options['wp_listings_domain'],$options['wp_listings_token'] );24 $request = new plugins\api\pluginApi($options['wp_listings_domain'],$options['wp_listings_token'],$debug); 24 25 $availableUnits = $request->getAvailableUnits($checkin,$checkout,false); 25 26 } -
track-connect/trunk/plugin.php
r1244784 r1244797 7 7 Author URI: http://www.trackhs.com 8 8 9 Version: 1.7 9 Version: 1.7.1 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.7 ' );57 define( 'WP_LISTINGS_VERSION', '1.7.1' ); 58 58 59 59 /** Load textdomain for translation */ -
track-connect/trunk/readme.txt
r1244784 r1244797 4 4 Requires at least: 3.7 5 5 Tested up to: 4.2.3 6 Stable tag: 1.7 6 Stable tag: 1.7.1 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.