Version Description
- Auto-Complete/Auto suggestion option added for direction From/To input field
- Added Distance Unit (Miles and KM) configurable
- UI modified for better experience.
Download this release
Release Info
Developer | milonfci |
Plugin | WP Google Map |
Version | 1.9.0 |
Comparing to | |
See all releases |
Code changes from version 1.8.9 to 1.9.0
- includes/Traits/InitActions.php +1 -1
- includes/Traits/Settings.php +1 -1
- public/includes/shortcodes.php +1 -1
- readme.txt +9 -5
- srm_gmap_embed.php +2 -2
includes/Traits/InitActions.php
CHANGED
@@ -31,7 +31,7 @@ trait InitActions {
|
|
31 |
// Review system hooks.
|
32 |
add_action( 'gmap_embed_review_already_did', array( $this, 'review_already_did' ) );
|
33 |
add_action( 'gmap_embed_review_later', array( $this, 'review_later' ) );
|
34 |
-
if ( isset( $_GET['plugin'] ) ) {
|
35 |
$plugin = sanitize_text_field( wp_unslash( $_GET['plugin'] ) );
|
36 |
if ( $plugin === $this->plugin_slug ) {
|
37 |
if ( isset( $_GET['dismiss'] ) && sanitize_text_field( wp_unslash( $_GET['dismiss'] ) ) == 1 ) {
|
31 |
// Review system hooks.
|
32 |
add_action( 'gmap_embed_review_already_did', array( $this, 'review_already_did' ) );
|
33 |
add_action( 'gmap_embed_review_later', array( $this, 'review_later' ) );
|
34 |
+
if ( isset( $_GET['plugin'] ) and (isset( $_GET['dismiss'] ) or isset( $_GET['later'] )) ) {
|
35 |
$plugin = sanitize_text_field( wp_unslash( $_GET['plugin'] ) );
|
36 |
if ( $plugin === $this->plugin_slug ) {
|
37 |
if ( isset( $_GET['dismiss'] ) && sanitize_text_field( wp_unslash( $_GET['dismiss'] ) ) == 1 ) {
|
includes/Traits/Settings.php
CHANGED
@@ -80,7 +80,7 @@ trait Settings
|
|
80 |
/**
|
81 |
* Directions option -> Distance Unit
|
82 |
*
|
83 |
-
* @since 1.
|
84 |
*/
|
85 |
public function wgm_distance_unit()
|
86 |
{
|
80 |
/**
|
81 |
* Directions option -> Distance Unit
|
82 |
*
|
83 |
+
* @since 1.9.0
|
84 |
*/
|
85 |
public function wgm_distance_unit()
|
86 |
{
|
public/includes/shortcodes.php
CHANGED
@@ -82,7 +82,7 @@ if (!function_exists('srm_gmap_embed_shortcode')) {
|
|
82 |
origin: wgm_dirction_start_<?php echo esc_html($count); ?>,
|
83 |
destination: wgm_direction_end_<?php echo esc_html($count); ?>,
|
84 |
travelMode: google.maps.DirectionsTravelMode[wgm_selectedMode_<?php echo esc_html($count); ?>],
|
85 |
-
unitSystem: <?php echo get_option('_wgm_distance_unit','km')=='km'?'google.maps.UnitSystem.METRIC':'google.maps.UnitSystem.IMPERIAL' ?>
|
86 |
};
|
87 |
var wgm_directionsService_<?php echo esc_html($count); ?> = new google.maps.DirectionsService();
|
88 |
wgm_directionsService_<?php echo esc_html($count); ?>.route(wgm_direction_request_<?php echo esc_html($count); ?>, function (response, status) {
|
82 |
origin: wgm_dirction_start_<?php echo esc_html($count); ?>,
|
83 |
destination: wgm_direction_end_<?php echo esc_html($count); ?>,
|
84 |
travelMode: google.maps.DirectionsTravelMode[wgm_selectedMode_<?php echo esc_html($count); ?>],
|
85 |
+
unitSystem: <?php echo esc_html(get_option('_wgm_distance_unit','km'))=='km'?'google.maps.UnitSystem.METRIC':'google.maps.UnitSystem.IMPERIAL' ?>
|
86 |
};
|
87 |
var wgm_directionsService_<?php echo esc_html($count); ?> = new google.maps.DirectionsService();
|
88 |
wgm_directionsService_<?php echo esc_html($count); ?>.route(wgm_direction_request_<?php echo esc_html($count); ?>, function (response, status) {
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: milonfci
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZBERRKARGNEYA
|
4 |
Tags: google map, map, maps, google maps, map markers, google map plugin, google map embed, google maps plugin, wp google map, map plugin, map embed, best google maps, store locator, map direction, map widget, street view
|
5 |
Requires at least: 2.9
|
6 |
-
Tested up to: 6.
|
7 |
-
Version: 1.
|
8 |
-
Stable tag: 1.
|
9 |
Requires PHP: 5.3
|
10 |
Text Domain: gmap-embed
|
11 |
License: GPLv2 or later
|
@@ -193,12 +193,16 @@ Go to **Appearance** =-> **Widget** . Now please [See the documentation](https:/
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
= 1.8.9 =
|
197 |
* Copy to clipboard for map shortcode
|
198 |
* Default markers bundle added
|
199 |
* CADATA introduced for frontend
|
200 |
-
* Auto-Complete/Auto suggestion option added for direction From/To input field
|
201 |
-
* Added Distance Unit (Miles and KM) configurable
|
202 |
|
203 |
|
204 |
= 1.8.8 =
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZBERRKARGNEYA
|
4 |
Tags: google map, map, maps, google maps, map markers, google map plugin, google map embed, google maps plugin, wp google map, map plugin, map embed, best google maps, store locator, map direction, map widget, street view
|
5 |
Requires at least: 2.9
|
6 |
+
Tested up to: 6.1
|
7 |
+
Version: 1.9.0
|
8 |
+
Stable tag: 1.9.0
|
9 |
Requires PHP: 5.3
|
10 |
Text Domain: gmap-embed
|
11 |
License: GPLv2 or later
|
193 |
|
194 |
== Changelog ==
|
195 |
|
196 |
+
= 1.9.0 =
|
197 |
+
* Auto-Complete/Auto suggestion option added for direction From/To input field
|
198 |
+
* Added Distance Unit (Miles and KM) configurable
|
199 |
+
* UI modified for better experience.
|
200 |
+
|
201 |
+
|
202 |
= 1.8.9 =
|
203 |
* Copy to clipboard for map shortcode
|
204 |
* Default markers bundle added
|
205 |
* CADATA introduced for frontend
|
|
|
|
|
206 |
|
207 |
|
208 |
= 1.8.8 =
|
srm_gmap_embed.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
Text Domain: gmap-embed
|
8 |
Domain Path: /languages
|
9 |
Author URI: https://www.wpgooglemap.com?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
|
10 |
-
Version: 1.
|
11 |
*/
|
12 |
|
13 |
use WGMSRM\Classes\Database;
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
-
define( 'WGM_PLUGIN_VERSION', '1.
|
20 |
define( 'WGM_PLUGIN_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
|
21 |
define( 'WGM_PLUGIN_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
|
22 |
define( 'WGM_ICONS_DIR', WGM_PLUGIN_PATH.'admin/assets/images/markers/icons/' );
|
7 |
Text Domain: gmap-embed
|
8 |
Domain Path: /languages
|
9 |
Author URI: https://www.wpgooglemap.com?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
|
10 |
+
Version: 1.9.0
|
11 |
*/
|
12 |
|
13 |
use WGMSRM\Classes\Database;
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
+
define( 'WGM_PLUGIN_VERSION', '1.9.0' );
|
20 |
define( 'WGM_PLUGIN_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
|
21 |
define( 'WGM_PLUGIN_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
|
22 |
define( 'WGM_ICONS_DIR', WGM_PLUGIN_PATH.'admin/assets/images/markers/icons/' );
|