Version Description
- 2012/11/28
- fixed non UTF-8 address bug
Download this release
Release Info
Developer | WebFactory |
Plugin | Google Maps Widget – Ultimate Google Maps Plugin |
Version | 0.4 |
Comparing to | |
See all releases |
Code changes from version 0.37 to 0.4
- google-maps-widget.php +6 -8
- readme.txt +5 -1
google-maps-widget.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Maps Widget
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/google-maps-widget/
|
5 |
Description: Display a single-image super-fast loading Google map in a widget. A larger, full featured map is available on click in a lightbox.
|
6 |
Author: Web factory Ltd
|
7 |
-
Version: 0.
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
*/
|
10 |
|
@@ -14,7 +14,7 @@ if (!function_exists('add_action')) {
|
|
14 |
}
|
15 |
|
16 |
|
17 |
-
define('GMW_VER', '0.
|
18 |
require 'gmw-widget.php';
|
19 |
|
20 |
|
@@ -99,7 +99,7 @@ class GMW {
|
|
99 |
} else {
|
100 |
$iwloc = 'near';
|
101 |
}
|
102 |
-
$map_url = 'http://maps.google.com/maps?hl=en&ie=utf8&output=embed&iwloc=' . $iwloc . '&iwd=1&mrt=loc&t=' . $widget['type'] . '&q=' . urlencode($widget['address']) . '&z=' . urlencode($widget['zoom']) . '';
|
103 |
|
104 |
$out .= '<div class="gmw-dialog" style="display: none;" data-map-height="' . $widget['height'] . '" data-map-width="' . $widget['width'] . '" data-map-skin="' . $widget['skin'] . '" data-map-iframe-url="' . $map_url . '" id="dialog-' . $widget['id'] . '" title="' . esc_attr($widget['title']) . '">';
|
105 |
if ($widget['header']) {
|
@@ -129,12 +129,10 @@ class GMW {
|
|
129 |
// enqueue CSS and JS scripts on widgets page
|
130 |
function admin_enqueue_scripts() {
|
131 |
if (self::is_plugin_admin_page()) {
|
132 |
-
$plugin_url = plugin_dir_url(__FILE__);
|
133 |
-
|
134 |
wp_enqueue_script('jquery-ui-tabs');
|
135 |
-
wp_enqueue_script('
|
136 |
-
wp_enqueue_script('gmw-admin',
|
137 |
-
wp_enqueue_style('gmw-admin',
|
138 |
} // if
|
139 |
} // admin_enqueue_scripts
|
140 |
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/google-maps-widget/
|
5 |
Description: Display a single-image super-fast loading Google map in a widget. A larger, full featured map is available on click in a lightbox.
|
6 |
Author: Web factory Ltd
|
7 |
+
Version: 0.4
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
*/
|
10 |
|
14 |
}
|
15 |
|
16 |
|
17 |
+
define('GMW_VER', '0.4');
|
18 |
require 'gmw-widget.php';
|
19 |
|
20 |
|
99 |
} else {
|
100 |
$iwloc = 'near';
|
101 |
}
|
102 |
+
$map_url = 'http://maps.google.com/maps?hl=en&ie=utf8&output=embed&iwloc=' . $iwloc . '&iwd=1&mrt=loc&t=' . $widget['type'] . '&q=' . urlencode(remove_accents($widget['address'])) . '&z=' . urlencode($widget['zoom']) . '';
|
103 |
|
104 |
$out .= '<div class="gmw-dialog" style="display: none;" data-map-height="' . $widget['height'] . '" data-map-width="' . $widget['width'] . '" data-map-skin="' . $widget['skin'] . '" data-map-iframe-url="' . $map_url . '" id="dialog-' . $widget['id'] . '" title="' . esc_attr($widget['title']) . '">';
|
105 |
if ($widget['header']) {
|
129 |
// enqueue CSS and JS scripts on widgets page
|
130 |
function admin_enqueue_scripts() {
|
131 |
if (self::is_plugin_admin_page()) {
|
|
|
|
|
132 |
wp_enqueue_script('jquery-ui-tabs');
|
133 |
+
wp_enqueue_script('gmw-cookie', plugins_url('js/jquery.cookie.js', __FILE__), array('jquery'), GMW_VER, true);
|
134 |
+
wp_enqueue_script('gmw-admin', plugins_url('js/gmw-admin.js', __FILE__), array('jquery'), GMW_VER, true);
|
135 |
+
wp_enqueue_style('gmw-admin', plugins_url('css/gmw-admin.css', __FILE__), array(), GMW_VER);
|
136 |
} // if
|
137 |
} // admin_enqueue_scripts
|
138 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: google maps, maps, gmaps, widget, lightbox, map, google map, fancybox, fan
|
|
5 |
License: GPLv2 or later
|
6 |
Requires at least: 3.2
|
7 |
Tested up to: 3.4.2
|
8 |
-
Stable tag: 0.
|
9 |
|
10 |
Displays a single-image super-fast loading Google map in a widget. A larger map with all the usual features is available on click in a lightbox.
|
11 |
|
@@ -79,6 +79,10 @@ If you can figure it out open a thread in the support forums.
|
|
79 |
|
80 |
== Changelog ==
|
81 |
|
|
|
|
|
|
|
|
|
82 |
= 0.37 =
|
83 |
* 2012/11/19
|
84 |
* fixed bug to use google.com instead of google.co.uk
|
5 |
License: GPLv2 or later
|
6 |
Requires at least: 3.2
|
7 |
Tested up to: 3.4.2
|
8 |
+
Stable tag: 0.4
|
9 |
|
10 |
Displays a single-image super-fast loading Google map in a widget. A larger map with all the usual features is available on click in a lightbox.
|
11 |
|
79 |
|
80 |
== Changelog ==
|
81 |
|
82 |
+
= 0.4 =
|
83 |
+
* 2012/11/28
|
84 |
+
* fixed non UTF-8 address bug
|
85 |
+
|
86 |
= 0.37 =
|
87 |
* 2012/11/19
|
88 |
* fixed bug to use google.com instead of google.co.uk
|