Changeset 2214861
- Timestamp:
- 12/19/2019 06:58:38 AM (6 years ago)
- Location:
- locatoraid/trunk
- Files:
-
- 2 added
- 9 edited
-
config/_common.php (modified) (1 diff)
-
happ2/modules/maps_google.conf/form.php (modified) (1 diff)
-
happ2/modules/maps_google.conf/icon (added)
-
happ2/modules/maps_google.conf/icon/input.php (added)
-
happ2/modules/maps_google/_config_after.php (modified) (2 diffs)
-
happ2/modules/maps_google/_config_settings.php (modified) (1 diff)
-
locatoraid.php (modified) (2 diffs)
-
modules/front/assets/js/front.js (modified) (1 diff)
-
modules/front/view.php (modified) (2 diffs)
-
modules/locations/presenter.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
locatoraid/trunk/config/_common.php
r2209033 r2214861 1 1 <?php if (! defined('ABSPATH')) exit; // Exit if accessed directly 2 $config['app_version'] = '3. 6.9';2 $config['app_version'] = '3.7.0'; 3 3 // $config['dbprefix_version'] = 'v1'; 4 4 -
locatoraid/trunk/happ2/modules/maps_google.conf/form.php
r2027391 r2214861 39 39 // if no api key is set then don't show other inputs 40 40 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 41 46 $return['maps_google:scrollwheel'] = 42 47 $this->app->make('/form/checkbox') -
locatoraid/trunk/happ2/modules/maps_google/_config_after.php
r2027391 r2214861 28 28 $more_options = $app_settings->get('maps_google:more_options'); 29 29 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 30 40 $params = array( 31 41 'api_key' => $api_key, … … 33 43 'scrollwheel' => $scrollwheel, 34 44 'more_options' => $more_options, 45 'icon' => $icon, 35 46 ); 36 47 -
locatoraid/trunk/happ2/modules/maps_google/_config_settings.php
r2027391 r2214861 4 4 $config['settings']['maps_google:map_style'] = ''; 5 5 $config['settings']['maps_google:more_options'] = '{"streetViewControl": false}'; 6 $config['settings']['maps_google:icon'] = NULL; -
locatoraid/trunk/locatoraid.php
r2209033 r2214861 4 4 Plugin URI: https://www.locatoraid.com/ 5 5 Description: Store locator plugin 6 Version: 3. 6.96 Version: 3.7.0 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', 3 69);14 define( 'LC3_VERSION', 370 ); 15 15 } 16 16 -
locatoraid/trunk/modules/front/assets/js/front.js
r2209033 r2214861 701 701 location_marker.setIcon( this_loc['mapicon'] ); 702 702 } 703 else { 704 if( hc2_gmaps_vars.hasOwnProperty('icon') && hc2_gmaps_vars['icon'] ){ 705 location_marker.setIcon( hc2_gmaps_vars['icon'] ); 706 } 707 } 703 708 704 709 location_marker.addListener( 'click', function(){ -
locatoraid/trunk/modules/front/view.php
r2027391 r2214861 40 40 $more_options = $app_settings->get('maps_google:more_options'); 41 41 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 42 52 $params = array( 43 53 'api_key' => $api_key, … … 45 55 'scrollwheel' => $scrollwheel, 46 56 'more_options' => $more_options, 57 'icon' => $icon, 47 58 ); 48 59 -
locatoraid/trunk/modules/locations/presenter.php
r2124830 r2214861 60 60 { 61 61 $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 62 73 $return = $this->app 63 74 ->after( array($this, __FUNCTION__), $return, $data ) 64 75 ; 76 77 65 78 return $return; 66 79 } … … 69 82 { 70 83 $icon_url = $this->present_icon_url( $data ); 84 71 85 if( ! $icon_url ){ 72 86 $icon_url = '//maps.google.com/mapfiles/ms/micons/red-dot.png'; -
locatoraid/trunk/readme.txt
r2209033 r2214861 85 85 == Changelog == 86 86 87 = 3.7.0 = 88 * Added a setting to define a default map pin for locations. 89 87 90 = 3.6.9 = 88 91 * BUG: multiple products checkbox in the search form may have worked incorrectly.
Note: See TracChangeset
for help on using the changeset viewer.