Changeset 2127805
- Timestamp:
- 07/24/2019 11:23:14 AM (7 years ago)
- Location:
- locatoraid/trunk
- Files:
-
- 6 edited
-
config/_common.php (modified) (1 diff)
-
locatoraid.php (modified) (2 diffs)
-
modules/front/assets/js/front.js (modified) (2 diffs)
-
modules/locations/commands/read.php (modified) (1 diff)
-
modules/search/controller.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
locatoraid/trunk/config/_common.php
r2124830 r2127805 1 1 <?php if (! defined('ABSPATH')) exit; // Exit if accessed directly 2 $config['app_version'] = '3.6. 5';2 $config['app_version'] = '3.6.6'; 3 3 // $config['dbprefix_version'] = 'v1'; 4 4 -
locatoraid/trunk/locatoraid.php
r2124830 r2127805 4 4 Plugin URI: https://www.locatoraid.com/ 5 5 Description: Store locator plugin 6 Version: 3.6. 56 Version: 3.6.6 7 7 Author: hitcode.com 8 8 Author URI: https://www.locatoraid.com/ … … 12 12 13 13 if( ! defined('LC3_VERSION') ){ 14 define( 'LC3_VERSION', 36 5);14 define( 'LC3_VERSION', 366 ); 15 15 } 16 16 -
locatoraid/trunk/modules/front/assets/js/front.js
r2124830 r2127805 396 396 var this_loc = entries[ii]; 397 397 var this_group_label = this_loc[group_by]; 398 399 398 if( ! groups.hasOwnProperty(this_group_label) ){ 400 399 groups[this_group_label] = []; … … 412 411 413 412 var group_labels = Object.keys( groups ); 413 414 // if have empty label then it should come last 415 var fullCount = group_labels.length; 416 group_labels = group_labels.filter( function(a){ 417 return (a.length > 0); 418 }); 419 var realCount = group_labels.length; 420 414 421 group_labels.sort(function(a, b){ 415 422 return a.localeCompare(b); 416 423 }) 424 425 if( fullCount > realCount ){ 426 group_labels.push( '' ); 427 } 417 428 418 429 for( var kk = 0; kk < group_labels.length; kk++ ){ -
locatoraid/trunk/modules/locations/commands/read.php
r2124830 r2127805 63 63 $app_settings = $this->app->make('/app/settings'); 64 64 $measure = $app_settings->get('core:measure'); 65 66 $args['WHERE'][] = array( 'latitude', '<>', NULL ); 67 $args['WHERE'][] = array( 'latitude', '<>', 0 ); 65 68 66 69 /* miles */ -
locatoraid/trunk/modules/search/controller.php
r2124830 r2127805 70 70 } 71 71 72 $command_args[ ] = array('osearch', $search);72 $command_args['osearch'] = array('osearch', $search); 73 73 $command_args[] = array('with', '-all-'); 74 74 if( $id ){ … … 148 148 149 149 // also find by geo if coordinates 150 151 150 if( $lat && $lng && ($lat != '_LAT_') && ($lng != '_LNG_') ){ 152 151 $search_coordinates = array($lat, $lng); 153 154 152 $command_args[] = array('lat', $lat); 155 153 $command_args[] = array('lng', $lng); … … 157 155 if( $radius ){ 158 156 $radius = (int) $radius; 157 unset( $command_args['osearch'] ); 159 158 $command_args[] = array( 'having', 'computed_distance', '<=', $radius ); 160 159 $command_args[] = array( 'or_having', 'computed_distance', '=', NULL ); -
locatoraid/trunk/readme.txt
r2124830 r2127805 85 85 == Changelog == 86 86 87 = 3.6.6 = 88 * BUG: not yet geocoded entries may have appeared in search results. 89 * If search results are grouped by state, entries with no state defined now go at the bottom rather on top. 90 87 91 = 3.6.5 = 88 92 * Phone numbers now appear as links (tel:).
Note: See TracChangeset
for help on using the changeset viewer.