Plugin Directory

Changeset 2214861


Ignore:
Timestamp:
12/19/2019 06:58:38 AM (6 years ago)
Author:
hitcode
Message:

3.7.0

Location:
locatoraid/trunk
Files:
2 added
9 edited

Legend:

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

    r2209033 r2214861  
    11<?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
    2 $config['app_version'] = '3.6.9';
     2$config['app_version'] = '3.7.0';
    33// $config['dbprefix_version'] = 'v1';
    44
  • locatoraid/trunk/happ2/modules/maps_google.conf/form.php

    r2027391 r2214861  
    3939    // if no api key is set then don't show other inputs
    4040        if( strlen($api_key) ){
     41            $return['maps_google:icon'] = array(
     42                'input' => $this->app->make('/maps-google.conf/icon/input'),
     43                'label' => HCM::__('Map Icon')
     44            );
     45
    4146            $return['maps_google:scrollwheel'] =
    4247                $this->app->make('/form/checkbox')
  • locatoraid/trunk/happ2/modules/maps_google/_config_after.php

    r2027391 r2214861  
    2828    $more_options = $app_settings->get('maps_google:more_options');
    2929
     30    $icon = '';
     31    $icon_id = $app_settings->get('maps_google:icon');
     32    if( $icon_id ){
     33        $your_img_src = wp_get_attachment_image_src( $icon_id, 'full' );
     34        $have_img = is_array( $your_img_src );
     35        if( $have_img ){
     36            $icon = $your_img_src[0];
     37        }
     38    }
     39
    3040    $params = array(
    3141        'api_key'       => $api_key,
     
    3343        'scrollwheel'   => $scrollwheel,
    3444        'more_options'  => $more_options,
     45        'icon'          => $icon,
    3546        );
    3647
  • locatoraid/trunk/happ2/modules/maps_google/_config_settings.php

    r2027391 r2214861  
    44$config['settings']['maps_google:map_style'] = '';
    55$config['settings']['maps_google:more_options'] = '{"streetViewControl": false}';
     6$config['settings']['maps_google:icon'] = NULL;
  • locatoraid/trunk/locatoraid.php

    r2209033 r2214861  
    44Plugin URI: https://www.locatoraid.com/
    55Description: Store locator plugin
    6 Version: 3.6.9
     6Version: 3.7.0
    77Author: hitcode.com
    88Author URI: https://www.locatoraid.com/
     
    1212
    1313if( ! defined('LC3_VERSION') ){
    14     define( 'LC3_VERSION', 369 );
     14    define( 'LC3_VERSION', 370 );
    1515}
    1616
  • locatoraid/trunk/modules/front/assets/js/front.js

    r2209033 r2214861  
    701701                location_marker.setIcon( this_loc['mapicon'] );
    702702            }
     703            else {
     704                if( hc2_gmaps_vars.hasOwnProperty('icon') && hc2_gmaps_vars['icon'] ){
     705                    location_marker.setIcon( hc2_gmaps_vars['icon'] );
     706                }
     707            }
    703708
    704709            location_marker.addListener( 'click', function(){
  • locatoraid/trunk/modules/front/view.php

    r2027391 r2214861  
    4040        $more_options = $app_settings->get('maps_google:more_options');
    4141
     42        $icon = '';
     43        $icon_id = $app_settings->get('maps_google:icon');
     44        if( $icon_id ){
     45            $your_img_src = wp_get_attachment_image_src( $icon_id, 'full' );
     46            $have_img = is_array( $your_img_src );
     47            if( $have_img ){
     48                $icon = $your_img_src[0];
     49            }
     50        }
     51
    4252        $params = array(
    4353            'api_key'       => $api_key,
     
    4555            'scrollwheel'   => $scrollwheel,
    4656            'more_options'  => $more_options,
     57            'icon'          => $icon,
    4758            );
    4859
  • locatoraid/trunk/modules/locations/presenter.php

    r2124830 r2214861  
    6060    {
    6161        $return = NULL;
     62
     63        $app_settings = $this->app->make('/app/settings');
     64        $icon_id = $app_settings->get('maps_google:icon');
     65        if( $icon_id ){
     66            $your_img_src = wp_get_attachment_image_src( $icon_id, 'full' );
     67            $have_img = is_array( $your_img_src );
     68            if( $have_img ){
     69                $return = $your_img_src[0];
     70            }
     71        }
     72
    6273        $return = $this->app
    6374            ->after( array($this, __FUNCTION__), $return, $data )
    6475            ;
     76
     77
    6578        return $return;
    6679    }
     
    6982    {
    7083        $icon_url = $this->present_icon_url( $data );
     84
    7185        if( ! $icon_url ){
    7286            $icon_url = '//maps.google.com/mapfiles/ms/micons/red-dot.png';
  • locatoraid/trunk/readme.txt

    r2209033 r2214861  
    8585== Changelog ==
    8686
     87= 3.7.0 =
     88* Added a setting to define a default map pin for locations.
     89
    8790= 3.6.9 =
    8891* BUG: multiple products checkbox in the search form may have worked incorrectly.
Note: See TracChangeset for help on using the changeset viewer.