Plugin Directory

Changeset 2127805


Ignore:
Timestamp:
07/24/2019 11:23:14 AM (7 years ago)
Author:
hitcode
Message:

3.6.6

Location:
locatoraid/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • locatoraid/trunk/config/_common.php

    r2124830 r2127805  
    11<?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
    2 $config['app_version'] = '3.6.5';
     2$config['app_version'] = '3.6.6';
    33// $config['dbprefix_version'] = 'v1';
    44
  • locatoraid/trunk/locatoraid.php

    r2124830 r2127805  
    44Plugin URI: https://www.locatoraid.com/
    55Description: Store locator plugin
    6 Version: 3.6.5
     6Version: 3.6.6
    77Author: hitcode.com
    88Author URI: https://www.locatoraid.com/
     
    1212
    1313if( ! defined('LC3_VERSION') ){
    14     define( 'LC3_VERSION', 365 );
     14    define( 'LC3_VERSION', 366 );
    1515}
    1616
  • locatoraid/trunk/modules/front/assets/js/front.js

    r2124830 r2127805  
    396396                var this_loc = entries[ii];
    397397                var this_group_label = this_loc[group_by];
    398 
    399398                if( ! groups.hasOwnProperty(this_group_label) ){
    400399                    groups[this_group_label] = [];
     
    412411
    413412        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
    414421        group_labels.sort(function(a, b){
    415422            return a.localeCompare(b);
    416423        })
     424
     425        if( fullCount > realCount ){
     426            group_labels.push( '' );
     427        }
    417428
    418429        for( var kk = 0; kk < group_labels.length; kk++ ){
  • locatoraid/trunk/modules/locations/commands/read.php

    r2124830 r2127805  
    6363            $app_settings = $this->app->make('/app/settings');
    6464            $measure = $app_settings->get('core:measure');
     65
     66            $args['WHERE'][] = array( 'latitude', '<>', NULL );
     67            $args['WHERE'][] = array( 'latitude', '<>', 0 );
    6568
    6669        /* miles */
  • locatoraid/trunk/modules/search/controller.php

    r2124830 r2127805  
    7070        }
    7171
    72         $command_args[] = array('osearch', $search);
     72        $command_args['osearch'] = array('osearch', $search);
    7373        $command_args[] = array('with', '-all-');
    7474        if( $id ){
     
    148148
    149149    // also find by geo if coordinates
    150 
    151150        if( $lat && $lng && ($lat != '_LAT_') && ($lng != '_LNG_') ){
    152151            $search_coordinates = array($lat, $lng);
    153 
    154152            $command_args[] = array('lat', $lat);
    155153            $command_args[] = array('lng', $lng);
     
    157155            if( $radius ){
    158156                $radius = (int) $radius;
     157                unset( $command_args['osearch'] );
    159158                $command_args[] = array( 'having', 'computed_distance', '<=', $radius );
    160159                $command_args[] = array( 'or_having', 'computed_distance', '=', NULL );
  • locatoraid/trunk/readme.txt

    r2124830 r2127805  
    8585== Changelog ==
    8686
     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
    8791= 3.6.5 =
    8892* Phone numbers now appear as links (tel:).
Note: See TracChangeset for help on using the changeset viewer.