Changeset 1311161
- Timestamp:
- 12/17/2015 08:25:03 PM (10 years ago)
- Location:
- track-connect/trunk
- Files:
-
- 4 edited
-
includes/api/request.php (modified) (2 diffs)
-
includes/class-listings-search-widget.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
r1311153 r1311161 220 220 $term = $wpdb->get_row("SELECT term_id FROM wp_terms WHERE slug = 'active' LIMIT 1;"); 221 221 $wpdb->query("DELETE FROM wp_term_relationships WHERE object_id = '".$post_id."' AND term_taxonomy_id = '".$term->term_id."';"); 222 $wpdb-> insert( 'wp_term_relationships',223 array( 'object_id' => $post_id, 'term_taxonomy_id' => $term->term_id ),224 array( '%d', '%d' ));222 $wpdb->query("INSERT INTO wp_term_relationships set 223 object_id = '".$post_id."', 224 term_taxonomy_id = '".$term->term_id."';"); 225 225 226 226 // Update the Amenities … … 302 302 } 303 303 } 304 304 305 305 //Create the Status 306 306 $term = $wpdb->get_row("SELECT term_id FROM wp_terms WHERE slug = 'active' LIMIT 1;"); -
track-connect/trunk/includes/class-listings-search-widget.php
r1310556 r1311161 78 78 79 79 // For locations only 80 $nodeTypes = $wpdb->get_results("SELECT id, name, type_id FROM wp_track_node_types WHERE active = 1 ORDER BY name;"); 81 82 echo '<span class="search-locations-header"><b>Locations</b></span>'; 83 $current = ! empty( $wp_query->query_vars['tax_query'][0]['terms'] ) ? $wp_query->query_vars['tax_query'][0]['terms'] : ''; 84 85 echo "<select name='locations' id='locations' class='wp-listings-taxonomy'>\n\t"; 86 echo "\t<option value='0' >All</option>\n"; 87 foreach ( $nodeTypes as $type ) { 88 89 echo "\t<optgroup label='$type->name'>\n"; 90 $nodes = $wpdb->get_results("SELECT name, slug FROM wp_terms WHERE node_type_id = ".$type->type_id." ORDER BY name;"); 91 foreach($nodes as $node){ 92 $selected = ( $node->slug == $locations)?' SELECTED ':''; 93 echo "\t<option value='{$node->slug}' $selected >{$node->name}</option>\n"; 94 } 95 echo "\t</optgroup>\n"; 96 } 97 echo '</select><br>'; 98 99 /* OLD LOCATION SEARCH 80 100 foreach ( $listings_taxonomies as $tax => $data ) { 81 101 if($tax != 'locations'){ … … 98 118 echo '</select><br>'; 99 119 } 120 */ 100 121 101 122 // For amenities/features only -
track-connect/trunk/plugin.php
r1311153 r1311161 7 7 Author URI: http://www.trackhs.com 8 8 9 Version: 1.9. 29 Version: 1.9.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.9. 2' );57 define( 'WP_LISTINGS_VERSION', '1.9.3' ); 58 58 59 59 /** Load textdomain for translation */ -
track-connect/trunk/readme.txt
r1311153 r1311161 4 4 Requires at least: 3.7 5 5 Tested up to: 4.2.3 6 Stable tag: 1.9. 26 Stable tag: 1.9.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.