Version Description
- Animation bug fixed.
Download this release
Release Info
Developer | alaingg |
Plugin | Google Map Shortcode |
Version | 3.0.1 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.0.1
- google-map-shortcode.php +5 -5
- include/functions.php +2 -2
- js/{gmshc.2.2.js → gmshc.2.2.1.js} +2 -2
- readme.txt +4 -1
google-map-shortcode.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Google Map Shortcode
|
4 |
Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
5 |
Description: Include Google Maps in your blogs with just one click.
|
6 |
-
Version: 3.0
|
7 |
Author: Alain Gonzalez
|
8 |
Author URI: http://web-argument.com/
|
9 |
*/
|
@@ -26,7 +26,7 @@ Author URI: http://web-argument.com/
|
|
26 |
|
27 |
define('GMSC_PLUGIN_DIR', WP_PLUGIN_DIR."/".dirname(plugin_basename(__FILE__)));
|
28 |
define('GMSC_PLUGIN_URL', WP_PLUGIN_URL."/".dirname(plugin_basename(__FILE__)));
|
29 |
-
define('GMSHC_VERSION_CURRENT','3.0');
|
30 |
define('GMSHC_VERSION_CHECK','2.2');
|
31 |
|
32 |
require(GMSC_PLUGIN_DIR."/include/functions.php");
|
@@ -97,7 +97,7 @@ function gmshc_head() {
|
|
97 |
if(isset($language))
|
98 |
$gmshc_header .= "&language=".$language;
|
99 |
$gmshc_header .="\" type=\"text/javascript\"></script>\n";
|
100 |
-
$gmshc_header .= "<script type=\"text/javascript\" src=\"".GMSC_PLUGIN_URL."/js/gmshc.2.2.js\"></script>\n";
|
101 |
$gmshc_header .= "\n<!-- /Google Map Shortcode Version ".$options['version']."-->\n";
|
102 |
|
103 |
print($gmshc_header);
|
@@ -688,7 +688,7 @@ function gmshc_options_page() {
|
|
688 |
$newoptions['type'] = isset($_POST['type'])?$_POST['type']:$options['type'];
|
689 |
$newoptions['interval'] = isset($_POST['interval'])?$_POST['interval']:$options['interval'];
|
690 |
$newoptions['focus'] = isset($_POST['focus'])?$_POST['focus']:"0";
|
691 |
-
$newoptions['animate'] = isset($_POST['animate'])?$_POST['animate']:false;
|
692 |
$newoptions['focus_type'] = isset($_POST['focus_type'])?$_POST['focus_type']:"open";
|
693 |
|
694 |
$newoptions['windowhtml'] = isset($_POST['windowhtml'])? $_POST['windowhtml']:$options['windowhtml'];
|
@@ -886,7 +886,7 @@ function gmshc_options_page() {
|
|
886 |
</tr>
|
887 |
<tr>
|
888 |
<td align="right" valign="top"> <strong><?php _e("Animation","google-map-sc") ?></strong></td>
|
889 |
-
<td><input name="animate" type="checkbox" value="true" <?php if ($animate) echo "checked = \"checked\"" ?> /> <?php _e(" Check if you want to animate the markes.","google-map-sc") ?></td>
|
890 |
</tr>
|
891 |
</table>
|
892 |
|
3 |
Plugin Name: Google Map Shortcode
|
4 |
Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
5 |
Description: Include Google Maps in your blogs with just one click.
|
6 |
+
Version: 3.0.1
|
7 |
Author: Alain Gonzalez
|
8 |
Author URI: http://web-argument.com/
|
9 |
*/
|
26 |
|
27 |
define('GMSC_PLUGIN_DIR', WP_PLUGIN_DIR."/".dirname(plugin_basename(__FILE__)));
|
28 |
define('GMSC_PLUGIN_URL', WP_PLUGIN_URL."/".dirname(plugin_basename(__FILE__)));
|
29 |
+
define('GMSHC_VERSION_CURRENT','3.0.1');
|
30 |
define('GMSHC_VERSION_CHECK','2.2');
|
31 |
|
32 |
require(GMSC_PLUGIN_DIR."/include/functions.php");
|
97 |
if(isset($language))
|
98 |
$gmshc_header .= "&language=".$language;
|
99 |
$gmshc_header .="\" type=\"text/javascript\"></script>\n";
|
100 |
+
$gmshc_header .= "<script type=\"text/javascript\" src=\"".GMSC_PLUGIN_URL."/js/gmshc.2.2.1.js\"></script>\n";
|
101 |
$gmshc_header .= "\n<!-- /Google Map Shortcode Version ".$options['version']."-->\n";
|
102 |
|
103 |
print($gmshc_header);
|
688 |
$newoptions['type'] = isset($_POST['type'])?$_POST['type']:$options['type'];
|
689 |
$newoptions['interval'] = isset($_POST['interval'])?$_POST['interval']:$options['interval'];
|
690 |
$newoptions['focus'] = isset($_POST['focus'])?$_POST['focus']:"0";
|
691 |
+
$newoptions['animate'] = isset($_POST['animate'])?$_POST['animate']:"false";
|
692 |
$newoptions['focus_type'] = isset($_POST['focus_type'])?$_POST['focus_type']:"open";
|
693 |
|
694 |
$newoptions['windowhtml'] = isset($_POST['windowhtml'])? $_POST['windowhtml']:$options['windowhtml'];
|
886 |
</tr>
|
887 |
<tr>
|
888 |
<td align="right" valign="top"> <strong><?php _e("Animation","google-map-sc") ?></strong></td>
|
889 |
+
<td><input name="animate" type="checkbox" value="true" <?php if ($animate == "true") echo "checked = \"checked\"" ?> /> <?php _e(" Check if you want to animate the markes.","google-map-sc") ?></td>
|
890 |
</tr>
|
891 |
</table>
|
892 |
|
include/functions.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Google Map Shortcode
|
4 |
-
* Version: 3.0
|
5 |
* Author: Alain Gonzalez
|
6 |
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
7 |
*/
|
@@ -11,7 +11,7 @@
|
|
11 |
*
|
12 |
*/
|
13 |
function gmshc_generate_map($map_points, $atts) {
|
14 |
-
|
15 |
extract($atts);
|
16 |
if ($canvas == "") $canvas = "canvas_".wp_generate_password(4, false);
|
17 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Google Map Shortcode
|
4 |
+
* Version: 3.0.1
|
5 |
* Author: Alain Gonzalez
|
6 |
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
7 |
*/
|
11 |
*
|
12 |
*/
|
13 |
function gmshc_generate_map($map_points, $atts) {
|
14 |
+
|
15 |
extract($atts);
|
16 |
if ($canvas == "") $canvas = "canvas_".wp_generate_password(4, false);
|
17 |
|
js/{gmshc.2.2.js → gmshc.2.2.1.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* Google Map Shortcode
|
3 |
-
* Version:
|
4 |
* Author: Alain Gonzalez
|
5 |
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
6 |
*/
|
@@ -205,7 +205,7 @@ gmshc.Map.prototype.Center = function(point){
|
|
205 |
if(this.openWindow != null) this.openWindow.close();
|
206 |
var location = this.markers[point];
|
207 |
this.map.setCenter(new google.maps.LatLng(location.lat, location.lng));
|
208 |
-
if (this.animateMarkers
|
209 |
this.StopAllAnimations();
|
210 |
this.ToggleAnimation(this.markersObj[point],"BOUNCE");
|
211 |
}
|
1 |
/**
|
2 |
* Google Map Shortcode
|
3 |
+
* Version: 3.0.1
|
4 |
* Author: Alain Gonzalez
|
5 |
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
6 |
*/
|
205 |
if(this.openWindow != null) this.openWindow.close();
|
206 |
var location = this.markers[point];
|
207 |
this.map.setCenter(new google.maps.LatLng(location.lat, location.lng));
|
208 |
+
if (this.animateMarkers) {
|
209 |
this.StopAllAnimations();
|
210 |
this.ToggleAnimation(this.markersObj[point],"BOUNCE");
|
211 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=suppo
|
|
4 |
Tags: google maps, shortcode, map, maps, categories, widget, post map, point, marker, list, location, address, images, geocoder, google maps, animation
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 3.2.1
|
7 |
-
Stable tag: 3.0
|
8 |
|
9 |
Real Friendly integration of Google Map instances into your blogs. The plugin allows to display multiple maps on your pages.
|
10 |
== Description ==
|
@@ -76,6 +76,9 @@ When the map is deployed or when the Google Map Shortcode Editor panel is open i
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
79 |
= 3.0 =
|
80 |
* Custom field deprecated.
|
81 |
* The point's information is saved in the database.
|
4 |
Tags: google maps, shortcode, map, maps, categories, widget, post map, point, marker, list, location, address, images, geocoder, google maps, animation
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 3.2.1
|
7 |
+
Stable tag: 3.0.1
|
8 |
|
9 |
Real Friendly integration of Google Map instances into your blogs. The plugin allows to display multiple maps on your pages.
|
10 |
== Description ==
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 3.0.1 =
|
80 |
+
* Animation bug fixed.
|
81 |
+
|
82 |
= 3.0 =
|
83 |
* Custom field deprecated.
|
84 |
* The point's information is saved in the database.
|