Version Description
Upgrade Google Map Plugin from here to get updated features.
Download this release
Release Info
Developer | milonfci |
Plugin | WP Google Map |
Version | 1.1.5 |
Comparing to | |
See all releases |
Code changes from version 1.1.4 to 1.1.5
- includes/gmap.php +1 -1
- includes/widget.php +39 -13
- readme.txt +9 -5
- srm_gmap_embed.php +1 -1
includes/gmap.php
CHANGED
@@ -41,7 +41,7 @@ if (isset($_GET['page'])) {
|
|
41 |
class="media-menu-item"><?php _e('Settings','gmap-embed');?></a>
|
42 |
</li>
|
43 |
<li>
|
44 |
-
<a target="_blank" href="https://www.youtube.com/watch?v=
|
45 |
<?php _e('Need Help ?','gmap-embed');?></a>
|
46 |
</li>
|
47 |
<span class="spinner" style="margin-right: 20px !important;float:right"></span>
|
41 |
class="media-menu-item"><?php _e('Settings','gmap-embed');?></a>
|
42 |
</li>
|
43 |
<li>
|
44 |
+
<a target="_blank" href="https://www.youtube.com/watch?v=Lak-tJjGjl8" class="media-menu-item">
|
45 |
<?php _e('Need Help ?','gmap-embed');?></a>
|
46 |
</li>
|
47 |
<span class="spinner" style="margin-right: 20px !important;float:right"></span>
|
includes/widget.php
CHANGED
@@ -14,16 +14,27 @@ class srmgmap_widget extends WP_Widget
|
|
14 |
|
15 |
public function __construct()
|
16 |
{
|
17 |
-
parent::__construct(
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
}
|
19 |
|
20 |
// Map display in front
|
21 |
-
public function widget($args, $instance)
|
22 |
{
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
27 |
echo $after_widget;
|
28 |
}
|
29 |
|
@@ -31,21 +42,36 @@ class srmgmap_widget extends WP_Widget
|
|
31 |
* Google Map Widget
|
32 |
* @return String $instance
|
33 |
*/
|
34 |
-
public function form($instance)
|
35 |
{
|
|
|
|
|
36 |
?>
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
</p>
|
40 |
<p>
|
41 |
-
<input id="<?php echo $this->get_field_id('srmgmap_shortcode'); ?>"
|
42 |
-
name="<?php echo $this->get_field_name('srmgmap_shortcode'); ?>"
|
43 |
-
value='<?php echo esc_attr(esc_html(isset($instance['srmgmap_shortcode'])
|
44 |
</p>
|
45 |
|
46 |
<?php
|
47 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
}
|
50 |
|
51 |
-
|
14 |
|
15 |
public function __construct()
|
16 |
{
|
17 |
+
parent::__construct(
|
18 |
+
$this->base_id,
|
19 |
+
$this->widget_name,
|
20 |
+
$this->widget_options
|
21 |
+
);
|
22 |
+
|
23 |
+
add_action( 'widgets_init', function() { register_widget( 'srmgmap_widget' ); });
|
24 |
}
|
25 |
|
26 |
// Map display in front
|
27 |
+
public function widget( $args, $instance )
|
28 |
{
|
29 |
+
$title = apply_filters( 'widget_title', $instance['title'] );
|
30 |
+
|
31 |
+
extract( $args );
|
32 |
+
extract( $instance );
|
33 |
+
echo $before_widget;
|
34 |
+
if ( ! empty( $title ) ) {
|
35 |
+
echo $before_title . $title . $after_title;
|
36 |
+
}
|
37 |
+
echo do_shortcode( $instance['srmgmap_shortcode'] );
|
38 |
echo $after_widget;
|
39 |
}
|
40 |
|
42 |
* Google Map Widget
|
43 |
* @return String $instance
|
44 |
*/
|
45 |
+
public function form( $instance )
|
46 |
{
|
47 |
+
$title = ! empty( $instance['title'] ) ? $instance['title'] : esc_html__( '', 'text_domain' );
|
48 |
+
$text = ! empty( $instance['srmgmap_shortcode'] ) ? $instance['srmgmap_shortcode'] : esc_html__( '', 'text_domain' );
|
49 |
?>
|
50 |
+
<p>
|
51 |
+
<label for="<?php echo $this->get_field_id( 'title' ); ?>">Title: </label>
|
52 |
+
</p>
|
53 |
+
<p>
|
54 |
+
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name('title');?>" type="text" value="<?php echo esc_attr($title); ?>" />
|
55 |
+
</p>
|
56 |
+
<p>
|
57 |
+
<label for="<?php echo $this->get_field_id( 'srmgmap_shortcode' ); ?>"> Enter Google Map Shortcode:</label>
|
58 |
</p>
|
59 |
<p>
|
60 |
+
<input id="<?php echo $this->get_field_id( 'srmgmap_shortcode' ); ?>"
|
61 |
+
name="<?php echo $this->get_field_name( 'srmgmap_shortcode' ); ?>"
|
62 |
+
value='<?php echo esc_attr( esc_html( isset( $instance['srmgmap_shortcode'] ) ? $instance['srmgmap_shortcode']:'') ); ?>' type="text" class="widefat">
|
63 |
</p>
|
64 |
|
65 |
<?php
|
66 |
}
|
67 |
+
|
68 |
+
public function update( $new_instance, $old_instance ) {
|
69 |
+
$instance = array();
|
70 |
+
$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
|
71 |
+
$instance['srmgmap_shortcode'] = ( ! empty( $new_instance['srmgmap_shortcode'] ) ) ? $new_instance['srmgmap_shortcode'] : '';
|
72 |
+
return $instance;
|
73 |
+
}
|
74 |
|
75 |
}
|
76 |
|
77 |
+
$srmgmap = new srmgmap_widget();
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: http://www.srmilon.com/google-map-demo
|
|
4 |
Tags: Google Map, Google Map Embed, gmap, google map embed, wp map, wp map embed, map embed, best google maps, best maps, bing maps, cross browser, custom google map, custom google maps, map direction, easy map, geo, geocoder, gmaps, google earth, google map plugin, google map shortcode, google map widget, google maps v3, googlemaps, gprs, gps, gpx, kml, latitude, Longitude, location, loaction by address, map, map directions, map markers, map plugin, map shortcode, map styles, maps google, post map, map point, polygons, roads, routes, store locator, street view, wp google map, contact page map, google map wordpress, google maps wordpress, google maps for wordpress, simple google map, simple google map plugin, wp google maps,maps
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 4.7
|
7 |
-
Version: 1.1.
|
8 |
-
Stable tag: 1.1.
|
9 |
Text Domain: gmap-embed
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -22,7 +22,7 @@ Google Map is awesome plugin to add Google Custom map in website.It is fully cus
|
|
22 |
To have continue the update, please donate for the plugin.
|
23 |
[Click here to donate](http://www.srmilon.com/google-map-demo)
|
24 |
|
25 |
-
https://www.youtube.com/watch?v=
|
26 |
|
27 |
### Features of Google Map Plugin:
|
28 |
|
@@ -88,7 +88,7 @@ Go to =Pages=->=Add New= then you will see a button named "Embed Google Map" bes
|
|
88 |
Go to =Appearence=->=Widget= then you will see a widget named "Google Map ". Drag it to any widget area and enter Google Map Shortcode then save it and the map will appear in your sidebar or footer whatever you selected. Enjoy!
|
89 |
|
90 |
= How to get Google Map API key? =
|
91 |
-
See the [Video](https://www.youtube.com/watch?v=
|
92 |
|
93 |
== Screenshots ==
|
94 |
|
@@ -156,4 +156,8 @@ See the [Video](https://www.youtube.com/watch?v=Q_p-iNmYAUE) ,hope you will get
|
|
156 |
* Small bug fixes
|
157 |
|
158 |
= 1.1.4 =
|
159 |
-
* Added option to disable/enable zoom on mouse scrolling
|
|
|
|
|
|
|
|
4 |
Tags: Google Map, Google Map Embed, gmap, google map embed, wp map, wp map embed, map embed, best google maps, best maps, bing maps, cross browser, custom google map, custom google maps, map direction, easy map, geo, geocoder, gmaps, google earth, google map plugin, google map shortcode, google map widget, google maps v3, googlemaps, gprs, gps, gpx, kml, latitude, Longitude, location, loaction by address, map, map directions, map markers, map plugin, map shortcode, map styles, maps google, post map, map point, polygons, roads, routes, store locator, street view, wp google map, contact page map, google map wordpress, google maps wordpress, google maps for wordpress, simple google map, simple google map plugin, wp google maps,maps
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 4.7
|
7 |
+
Version: 1.1.5
|
8 |
+
Stable tag: 1.1.5
|
9 |
Text Domain: gmap-embed
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
22 |
To have continue the update, please donate for the plugin.
|
23 |
[Click here to donate](http://www.srmilon.com/google-map-demo)
|
24 |
|
25 |
+
https://www.youtube.com/watch?v=Lak-tJjGjl8
|
26 |
|
27 |
### Features of Google Map Plugin:
|
28 |
|
88 |
Go to =Appearence=->=Widget= then you will see a widget named "Google Map ". Drag it to any widget area and enter Google Map Shortcode then save it and the map will appear in your sidebar or footer whatever you selected. Enjoy!
|
89 |
|
90 |
= How to get Google Map API key? =
|
91 |
+
See the [Video](https://www.youtube.com/watch?v=Lak-tJjGjl8) ,hope you will get idea.
|
92 |
|
93 |
== Screenshots ==
|
94 |
|
156 |
* Small bug fixes
|
157 |
|
158 |
= 1.1.4 =
|
159 |
+
* Added option to disable/enable zoom on mouse scrolling
|
160 |
+
|
161 |
+
|
162 |
+
= 1.1.5 =
|
163 |
+
* Widget title giving option added
|
srm_gmap_embed.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
Author: SRMILON
|
7 |
Text Domain: gmap-embed
|
8 |
Author URI: http://www.srmilon.com
|
9 |
-
Version: 1.1.
|
10 |
*/
|
11 |
|
12 |
if (!defined('ABSPATH')) exit;
|
6 |
Author: SRMILON
|
7 |
Text Domain: gmap-embed
|
8 |
Author URI: http://www.srmilon.com
|
9 |
+
Version: 1.1.5
|
10 |
*/
|
11 |
|
12 |
if (!defined('ABSPATH')) exit;
|