WP Google Map - Version 1.0.6

Version Description

  • Custom map heading class adding option added
  • Map rendering related problem fixing
  • Custom status message showed
Download this release

Release Info

Developer milonfci
Plugin Icon 128x128 WP Google Map
Version 1.0.6
Comparing to
See all releases

Code changes from version 1.0.5 to 1.0.6

assets/js/custom.js CHANGED
@@ -108,6 +108,7 @@
108
  }
109
 
110
  var wpgmap_title = parent.find("#wpgmap_title").val();
 
111
  var wpgmap_latlng = parent.find("#wpgmap_latlng").val();
112
  var wpgmap_map_zoom = parent.find("#wpgmap_map_zoom").val();
113
  var wpgmap_map_width = parent.find("#wpgmap_map_width").val();
@@ -117,6 +118,7 @@
117
 
118
  var map_data = {
119
  wpgmap_title: wpgmap_title,
 
120
  wpgmap_show_heading: wpgmap_show_heading,
121
  wpgmap_latlng: wpgmap_latlng,
122
  wpgmap_map_zoom: wpgmap_map_zoom,
@@ -152,8 +154,8 @@
152
  if (btn_id == 'wp-gmap-embed-save' || btn_id == 'wp-gmap-embed-update') {
153
 
154
  $("#" + btn_id).prop('disabled', false);
155
- // readyGmapPopupWindow();
156
- window.location.href = '?page=wpgmapembed';
157
  $('body #wp-gmap-all .wpgmap_msg_error').html('<div class="success bellow-h2 notice notice-success is-dismissible"><p>' + response.message + '</p></div>');
158
  }
159
  $("#wpgmap_title,#wpgmap_latlng, #wpgmap_map_address").val("");
108
  }
109
 
110
  var wpgmap_title = parent.find("#wpgmap_title").val();
111
+ var wpgmap_heading_class = parent.find("#wpgmap_heading_class").val();
112
  var wpgmap_latlng = parent.find("#wpgmap_latlng").val();
113
  var wpgmap_map_zoom = parent.find("#wpgmap_map_zoom").val();
114
  var wpgmap_map_width = parent.find("#wpgmap_map_width").val();
118
 
119
  var map_data = {
120
  wpgmap_title: wpgmap_title,
121
+ wpgmap_heading_class: wpgmap_heading_class,
122
  wpgmap_show_heading: wpgmap_show_heading,
123
  wpgmap_latlng: wpgmap_latlng,
124
  wpgmap_map_zoom: wpgmap_map_zoom,
154
  if (btn_id == 'wp-gmap-embed-save' || btn_id == 'wp-gmap-embed-update') {
155
 
156
  $("#" + btn_id).prop('disabled', false);
157
+ var redirectTo = (btn_id == 'wp-gmap-embed-save')?1:2;
158
+ window.location.href = '?page=wpgmapembed&message='+redirectTo;
159
  $('body #wp-gmap-all .wpgmap_msg_error').html('<div class="success bellow-h2 notice notice-success is-dismissible"><p>' + response.message + '</p></div>');
160
  }
161
  $("#wpgmap_title,#wpgmap_latlng, #wpgmap_map_address").val("");
assets/js/geo_based_map.js CHANGED
@@ -1,9 +1,6 @@
1
  function initWpGmap(lat, lng) {
2
- google.maps.event.addDomListener(window, 'load',
3
- initAutocomplete('map', 'pac-input', lat, lng, 'roadmap', 13)
4
- );
5
  }
6
- initWpGmap(40.73359922990751, -74.02791395625002);
7
  var tryAPIGeolocation = function () {
8
  jQuery.post("https://www.googleapis.com/geolocation/v1/geolocate?key=AIzaSyBcVcz5OZ6eNBi5d7CFYHIdtsEI5BQlm68", function (success) {
9
  initWpGmap(success.location.lat, success.location.lng);
@@ -34,6 +31,7 @@ var browserGeolocationFail = function (error) {
34
  };
35
 
36
  var tryGeolocation = function () {
 
37
  if (navigator.geolocation) {
38
  navigator.geolocation.getCurrentPosition(
39
  browserGeolocationSuccess,
1
  function initWpGmap(lat, lng) {
2
+ initAutocomplete('map', 'pac-input', lat, lng, 'roadmap', 13);
 
 
3
  }
 
4
  var tryAPIGeolocation = function () {
5
  jQuery.post("https://www.googleapis.com/geolocation/v1/geolocate?key=AIzaSyBcVcz5OZ6eNBi5d7CFYHIdtsEI5BQlm68", function (success) {
6
  initWpGmap(success.location.lat, success.location.lng);
31
  };
32
 
33
  var tryGeolocation = function () {
34
+ initWpGmap(40.73359922990751, -74.02791395625002);
35
  if (navigator.geolocation) {
36
  navigator.geolocation.getCurrentPosition(
37
  browserGeolocationSuccess,
assets/js/srm_gmap_loader.js CHANGED
@@ -7,19 +7,31 @@ function wpgmapSetAddressByLatLng(lat, lng, id) {
7
  });
8
 
9
  }
10
-
 
11
  // to render Google Map
12
  function initAutocomplete(id, input, center_lat, center_lng, map_type, zoom) {
 
 
 
 
 
 
 
 
 
 
 
13
  document.getElementById("wpgmap_latlng").value = center_lat + "," + center_lng;
14
 
15
  wpgmapSetAddressByLatLng(center_lat, center_lng);
16
 
17
- var map = new google.maps.Map(document.getElementById(id), {
18
  center: {lat: center_lat, lng: center_lng},
19
  zoom: zoom,
20
  mapTypeId: map_type
21
  });
22
- var marker1 = new google.maps.Marker({
23
  position: new google.maps.LatLng(center_lat, center_lng),
24
  title: "",
25
  draggable: true,
@@ -40,7 +52,8 @@ function initAutocomplete(id, input, center_lat, center_lng, map_type, zoom) {
40
  // Listen for the event fired when the user selects a prediction and retrieve
41
  // more details for that place.
42
  searchBox.addListener('places_changed', function () {
43
-
 
44
  var places = searchBox.getPlaces();
45
 
46
  if (places.length == 0) {
@@ -89,5 +102,4 @@ function initAutocomplete(id, input, center_lat, center_lng, map_type, zoom) {
89
  document.getElementById("wpgmap_latlng").value = markerLocation.latLng.lat() + "," + markerLocation.latLng.lng();
90
  wpgmapSetAddressByLatLng(markerLocation.latLng.lat(), markerLocation.latLng.lng());
91
  });
92
-
93
  }
7
  });
8
 
9
  }
10
+ var map;
11
+ var marker1;
12
  // to render Google Map
13
  function initAutocomplete(id, input, center_lat, center_lng, map_type, zoom) {
14
+ if (typeof map == 'object') {
15
+ map.setCenter({lat: center_lat, lng: center_lng});
16
+ marker1 = new google.maps.Marker({
17
+ position: new google.maps.LatLng(center_lat, center_lng),
18
+ title: "",
19
+ draggable: true,
20
+ animation: google.maps.Animation.DROP
21
+ });
22
+ marker1.setMap(map);
23
+ return;
24
+ }
25
  document.getElementById("wpgmap_latlng").value = center_lat + "," + center_lng;
26
 
27
  wpgmapSetAddressByLatLng(center_lat, center_lng);
28
 
29
+ map = new google.maps.Map(document.getElementById(id), {
30
  center: {lat: center_lat, lng: center_lng},
31
  zoom: zoom,
32
  mapTypeId: map_type
33
  });
34
+ marker1 = new google.maps.Marker({
35
  position: new google.maps.LatLng(center_lat, center_lng),
36
  title: "",
37
  draggable: true,
52
  // Listen for the event fired when the user selects a prediction and retrieve
53
  // more details for that place.
54
  searchBox.addListener('places_changed', function () {
55
+ marker1.setMap(null);
56
+ console.log(marker1);
57
  var places = searchBox.getPlaces();
58
 
59
  if (places.length == 0) {
102
  document.getElementById("wpgmap_latlng").value = markerLocation.latLng.lat() + "," + markerLocation.latLng.lng();
103
  wpgmapSetAddressByLatLng(markerLocation.latLng.lat(), markerLocation.latLng.lng());
104
  });
 
105
  }
includes/gmap.php CHANGED
@@ -1,14 +1,13 @@
1
  <?php
2
  if (!defined('ABSPATH')) exit;
3
  if (isset($_GET['page'])) {
4
-
5
- if(isset($_POST['wpgmapembed_key'])){
6
  $api_key = $_POST['wpgmapembed_key'];
7
- if($api_key!=''){
8
- if(get_option( 'wpgmap_api_key' ) !== false){
9
- update_option( 'wpgmap_api_key', $api_key, '', 'yes' );
10
- }else{
11
- add_option( 'wpgmap_api_key', $api_key, '', 'yes' );
12
  }
13
 
14
  }
@@ -37,18 +36,53 @@ if (isset($_GET['page'])) {
37
  class="media-menu-item">Create New Map</a>
38
  </li>
39
  <li class="<?php echo $wpgmap_tag == 'settings' ? 'active' : ''; ?>">
40
- <a href="<?php echo esc_url(admin_url() . 'admin.php?page=wpgmapembed&tag=settings'); ?>" data-id="wp-gmap-settings"
 
41
  class="media-menu-item">Settings</a>
42
  </li>
43
  <li>
44
- <a target="_blank" href="https://www.youtube.com/watch?v=zTU7AoguDns" class="media-menu-item">Need Help ?</a>
 
45
  </li>
46
  <span class="spinner" style="margin-right: 20px !important;float:right"></span>
47
  </ul>
48
 
49
  <div id="wp-gmap-tabs">
50
  <?php
51
- if(get_option( 'wpgmap_api_key' ) == false){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  require_once(plugin_dir_path(__FILE__) . '/wpgmap_settings.php');
53
  }
54
  ?>
1
  <?php
2
  if (!defined('ABSPATH')) exit;
3
  if (isset($_GET['page'])) {
4
+ if (isset($_POST['wpgmapembed_key'])) {
 
5
  $api_key = $_POST['wpgmapembed_key'];
6
+ if ($api_key != '') {
7
+ if (get_option('wpgmap_api_key') !== false) {
8
+ update_option('wpgmap_api_key', $api_key, '', 'yes');
9
+ } else {
10
+ add_option('wpgmap_api_key', $api_key, '', 'yes');
11
  }
12
 
13
  }
36
  class="media-menu-item">Create New Map</a>
37
  </li>
38
  <li class="<?php echo $wpgmap_tag == 'settings' ? 'active' : ''; ?>">
39
+ <a href="<?php echo esc_url(admin_url() . 'admin.php?page=wpgmapembed&tag=settings'); ?>"
40
+ data-id="wp-gmap-settings"
41
  class="media-menu-item">Settings</a>
42
  </li>
43
  <li>
44
+ <a target="_blank" href="https://www.youtube.com/watch?v=zTU7AoguDns" class="media-menu-item">Need
45
+ Help ?</a>
46
  </li>
47
  <span class="spinner" style="margin-right: 20px !important;float:right"></span>
48
  </ul>
49
 
50
  <div id="wp-gmap-tabs">
51
  <?php
52
+ if (isset($_GET['message'])) {
53
+ ?>
54
+ <div class="message">
55
+ <div id="setting-error-settings_updated" class="updated settings-error notice is-dismissible">
56
+ <p>
57
+ <strong>
58
+ <?php
59
+ $message_status = $_GET['message'];
60
+ switch ($message_status) {
61
+ case 1:
62
+ echo 'Map created Successfully.';
63
+ break;
64
+ case 2:
65
+ echo 'Updated Map Successfully.';
66
+ break;
67
+ case 3:
68
+ echo 'Settings updated Successfully.';
69
+ break;
70
+ case -1:
71
+ echo 'Deleted Map Successfully.';
72
+ break;
73
+ }
74
+ ?>
75
+ </strong>
76
+ </p>
77
+ <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span>
78
+ </button>
79
+ </div>
80
+ </div>
81
+ <?php
82
+ }
83
+ ?>
84
+ <?php
85
+ if (get_option('wpgmap_api_key') == false) {
86
  require_once(plugin_dir_path(__FILE__) . '/wpgmap_settings.php');
87
  }
88
  ?>
includes/shortcodes.php CHANGED
@@ -13,6 +13,7 @@ if (!function_exists('srm_gmap_embed_shortcode')) {
13
 
14
  $wpgmap_title = esc_html(get_post_meta($atts['id'], 'wpgmap_title', true));
15
  $wpgmap_show_heading = esc_html(get_post_meta($atts['id'], 'wpgmap_show_heading', true));
 
16
  $wpgmap_latlng = esc_html(get_post_meta($atts['id'], 'wpgmap_latlng', true));
17
  $wpgmap_map_zoom = esc_html(get_post_meta($atts['id'], 'wpgmap_map_zoom', true));
18
  $wpgmap_map_width = esc_html(get_post_meta($atts['id'], 'wpgmap_map_width', true));
@@ -24,7 +25,7 @@ if (!function_exists('srm_gmap_embed_shortcode')) {
24
  ob_start();
25
 
26
  if (isset($wpgmap_show_heading) && $wpgmap_show_heading == 1) {
27
- echo "<h1>" . $wpgmap_title . "</h1>";
28
  }
29
  ?>
30
  <script type="text/javascript">
13
 
14
  $wpgmap_title = esc_html(get_post_meta($atts['id'], 'wpgmap_title', true));
15
  $wpgmap_show_heading = esc_html(get_post_meta($atts['id'], 'wpgmap_show_heading', true));
16
+ $wpgmap_heading_class = esc_html(get_post_meta($atts['id'], 'wpgmap_heading_class', true));
17
  $wpgmap_latlng = esc_html(get_post_meta($atts['id'], 'wpgmap_latlng', true));
18
  $wpgmap_map_zoom = esc_html(get_post_meta($atts['id'], 'wpgmap_map_zoom', true));
19
  $wpgmap_map_width = esc_html(get_post_meta($atts['id'], 'wpgmap_map_width', true));
25
  ob_start();
26
 
27
  if (isset($wpgmap_show_heading) && $wpgmap_show_heading == 1) {
28
+ echo "<h1 class='$wpgmap_heading_class'>" . $wpgmap_title . "</h1>";
29
  }
30
  ?>
31
  <script type="text/javascript">
includes/wpgmap_create.php CHANGED
@@ -27,6 +27,13 @@
27
  class="regular-text">
28
  </td>
29
  </tr>
 
 
 
 
 
 
 
30
 
31
  <tr>
32
  <td>
27
  class="regular-text">
28
  </td>
29
  </tr>
30
+ <tr>
31
+ <td>
32
+ <label for="wpgmap_heading_class"><b>Heading Custom Class <span style="color:gray;">(if any)</span></b></label><br/>
33
+ <input id="wpgmap_heading_class" name="wpgmap_heading_class" value="" type="text"
34
+ class="regular-text">
35
+ </td>
36
+ </tr>
37
 
38
  <tr>
39
  <td>
includes/wpgmap_edit.php CHANGED
@@ -27,6 +27,13 @@ list($wpgmap_lat, $wpgmap_lng) = explode(',', esc_html($wpgmap_single->wpgmap_la
27
  <label for="wpgmap_show_heading">Show as map title</label>
28
  </td>
29
  </tr>
 
 
 
 
 
 
 
30
  <tr>
31
  <td>
32
  <label for="wpgmap_latlng"><b>Latitude, Longitude</b></label><br/>
27
  <label for="wpgmap_show_heading">Show as map title</label>
28
  </td>
29
  </tr>
30
+ <tr>
31
+ <td>
32
+ <label for="wpgmap_heading_class"><b>Heading Custom Class</b></label><br/>
33
+ <input id="wpgmap_heading_class" name="wpgmap_heading_class" value="<?php echo $wpgmap_single->wpgmap_heading_class;?>" type="text"
34
+ class="regular-text">
35
+ </td>
36
+ </tr>
37
  <tr>
38
  <td>
39
  <label for="wpgmap_latlng"><b>Latitude, Longitude</b></label><br/>
includes/wpgmap_settings.php CHANGED
@@ -6,7 +6,7 @@ if (!defined('ABSPATH')) exit;
6
  <div class="wpgmapembed_get_api_key">
7
  <div class="error">
8
  <p style="font-size:17px;"><strong>Notice: The plugin requires following API key.</strong></p>
9
- <form method="post" action="<?php echo admin_url(); ?>admin.php?page=wpgmapembed">
10
  <p>Enter API Key <input type="text" name="wpgmapembed_key"
11
  value="<?php echo esc_html(get_option('wpgmap_api_key')); ?>" size="45">
12
  <button class="wd-btn wd-btn-primary button media-button button-primary">Save</button>
@@ -19,5 +19,4 @@ if (!defined('ABSPATH')) exit;
19
 
20
  </div>
21
  </div>
22
-
23
  </div>
6
  <div class="wpgmapembed_get_api_key">
7
  <div class="error">
8
  <p style="font-size:17px;"><strong>Notice: The plugin requires following API key.</strong></p>
9
+ <form method="post" action="<?php echo admin_url(); ?>admin.php?page=wpgmapembed&message=3">
10
  <p>Enter API Key <input type="text" name="wpgmapembed_key"
11
  value="<?php echo esc_html(get_option('wpgmap_api_key')); ?>" size="45">
12
  <button class="wd-btn wd-btn-primary button media-button button-primary">Save</button>
19
 
20
  </div>
21
  </div>
 
22
  </div>
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Google Map ===
2
  Contributors: milonfci
3
  Donate link: http://www.srmilon.com/
4
- Tags: Google Map Embed, Google Map, 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.6.1
7
- Version: 1.0.5
8
- Stable tag: 1.0.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -40,23 +40,23 @@ If you have problem or suggestation please post in [Support Forum](https://wordp
40
 
41
  ### It's simple:
42
 
43
- 1. [Download](https://plugins.svn.wordpress.org/gmap-embed/) Google Map Embed Plugin.
44
  2. Upload that zip folder plugins directory "wp-content/plugins"
45
- 3. Activate the Google Map Embed plugin from Admin panel.
46
- 4. Add Google Map Embed widget to your sidebar with Shortcode.
47
- 5. Add Google Map Embed in posts/pages using shortcode.
48
 
49
- Upgrade Google Map Embed Plugin from [here](https://plugins.svn.wordpress.org/gmap-embed/) to get updated features.
50
 
51
  == Frequently Asked Questions ==
52
 
53
- Our Google Map Embed Plugin is user friendly plugin, but here you can see some frequently asked questions that will help you.
54
 
55
  = How can i create new map? =
56
- After install the plugin, Click on Google Map SRM in the left side bar. Then click on = Create New map =
57
 
58
  = How can i see created Maps list? =
59
- Click on Google Map SRM in the left side bar, here Created Maps list will apper.
60
 
61
  = How to add Google Map in Post =
62
  Go to =Posts=->=Add New= then you will see a button named "Embed Google Map" beside media button. Click on it and insert your desired map by click ing on Insert Button, then save post and the map will appear in your desired post. Enjoy!
@@ -67,14 +67,14 @@ Go to =Pages=->=Add New= then you will see a button named "Embed Google Map" bes
67
 
68
 
69
  = How to add Google Map as widget =
70
- Go to =Appearence=->=Widget= then you will see a widget named "Google Map SRM". 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!
71
 
72
  = How to get Google Map API key? =
73
  See the [Video](https://www.youtube.com/watch?v=zTU7AoguDns) ,hope you will get idea.
74
 
75
  == Screenshots ==
76
 
77
- 1. Google Map SRM menu in left sidebar
78
  2. To create New Map
79
  3. To Allow Locatoin Sharing
80
  4. Creating New Map and Saving
@@ -107,4 +107,11 @@ See the [Video](https://www.youtube.com/watch?v=zTU7AoguDns) ,hope you will get
107
 
108
  = 1.0.5 =
109
 
110
- * Added new helpfull video with how to get Free API key
 
 
 
 
 
 
 
1
  === Google Map ===
2
  Contributors: milonfci
3
  Donate link: http://www.srmilon.com/
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.6.1
7
+ Version: 1.0.6
8
+ Stable tag: 1.0.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
40
 
41
  ### It's simple:
42
 
43
+ 1. [Download](https://plugins.svn.wordpress.org/gmap-embed/) Google Map Plugin.
44
  2. Upload that zip folder plugins directory "wp-content/plugins"
45
+ 3. Activate the Google Map plugin from Admin panel.
46
+ 4. Add Google Map widget to your sidebar with Shortcode.
47
+ 5. Add Google Map in posts/pages using shortcode.
48
 
49
+ Upgrade Google Map Plugin from [here](https://plugins.svn.wordpress.org/gmap-embed/) to get updated features.
50
 
51
  == Frequently Asked Questions ==
52
 
53
+ Our Google Map Plugin is user friendly plugin, but here you can see some frequently asked questions that will help you.
54
 
55
  = How can i create new map? =
56
+ After install the plugin, Click on Google Map in the left side bar. Then click on = Create New map =
57
 
58
  = How can i see created Maps list? =
59
+ Click on Google Map in the left side bar, here Created Maps list will apper.
60
 
61
  = How to add Google Map in Post =
62
  Go to =Posts=->=Add New= then you will see a button named "Embed Google Map" beside media button. Click on it and insert your desired map by click ing on Insert Button, then save post and the map will appear in your desired post. Enjoy!
67
 
68
 
69
  = How to add Google Map as widget =
70
+ 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!
71
 
72
  = How to get Google Map API key? =
73
  See the [Video](https://www.youtube.com/watch?v=zTU7AoguDns) ,hope you will get idea.
74
 
75
  == Screenshots ==
76
 
77
+ 1. Google Map menu in left sidebar
78
  2. To create New Map
79
  3. To Allow Locatoin Sharing
80
  4. Creating New Map and Saving
107
 
108
  = 1.0.5 =
109
 
110
+ * Added new helpfull video with how to get Free API key
111
+
112
+
113
+ = 1.0.6 =
114
+
115
+ * Custom map heading class adding option added
116
+ * Map rendering related problem fixing
117
+ * Custom status message showed
srm_gmap_embed.php CHANGED
@@ -5,7 +5,7 @@
5
  Description: The plugin will help to google map Embed in post and pages also in sidebar with widget.
6
  Author: SRMILON
7
  Author URI: http://www.srmilon.com
8
- Version: 1.0.5
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit;
@@ -79,6 +79,7 @@ if (!class_exists('srm_gmap_embed_main')){
79
  {
80
  //register fields
81
  register_setting('gmap_settings_group', 'gmap_title');
 
82
  register_setting('gmap_settings_group', 'gmap_lat');
83
  register_setting('gmap_settings_group', 'gmap_long');
84
  register_setting('gmap_settings_group', 'gmap_width');
@@ -118,6 +119,7 @@ if (!class_exists('srm_gmap_embed_main')){
118
  // Getting ajax fileds value
119
  $meta_data = array(
120
  'wpgmap_title' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_title'])),
 
121
  'wpgmap_show_heading' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_show_heading'])),
122
  'wpgmap_latlng' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_latlng'])),
123
  'wpgmap_map_zoom' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_map_zoom'])),
@@ -256,6 +258,7 @@ if (!class_exists('srm_gmap_embed_main')){
256
 
257
  $gmap_data = array(
258
  'wpgmap_title' => get_post_meta($gmap_id, 'wpgmap_title', true),
 
259
  'wpgmap_show_heading' => get_post_meta($gmap_id, 'wpgmap_show_heading', true),
260
  'wpgmap_latlng' => get_post_meta($gmap_id, 'wpgmap_latlng', true),
261
  'wpgmap_map_zoom' => get_post_meta($gmap_id, 'wpgmap_map_zoom', true),
@@ -274,6 +277,7 @@ if (!class_exists('srm_gmap_embed_main')){
274
 
275
  $meta_data = array(
276
  'wpgmap_title',
 
277
  'wpgmap_show_heading',
278
  'wpgmap_latlng',
279
  'wpgmap_map_zoom',
5
  Description: The plugin will help to google map Embed in post and pages also in sidebar with widget.
6
  Author: SRMILON
7
  Author URI: http://www.srmilon.com
8
+ Version: 1.0.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit;
79
  {
80
  //register fields
81
  register_setting('gmap_settings_group', 'gmap_title');
82
+ register_setting('gmap_settings_group', 'wpgmap_heading_class');
83
  register_setting('gmap_settings_group', 'gmap_lat');
84
  register_setting('gmap_settings_group', 'gmap_long');
85
  register_setting('gmap_settings_group', 'gmap_width');
119
  // Getting ajax fileds value
120
  $meta_data = array(
121
  'wpgmap_title' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_title'])),
122
+ 'wpgmap_heading_class' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_heading_class'])),
123
  'wpgmap_show_heading' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_show_heading'])),
124
  'wpgmap_latlng' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_latlng'])),
125
  'wpgmap_map_zoom' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_map_zoom'])),
258
 
259
  $gmap_data = array(
260
  'wpgmap_title' => get_post_meta($gmap_id, 'wpgmap_title', true),
261
+ 'wpgmap_heading_class' => get_post_meta($gmap_id, 'wpgmap_heading_class', true),
262
  'wpgmap_show_heading' => get_post_meta($gmap_id, 'wpgmap_show_heading', true),
263
  'wpgmap_latlng' => get_post_meta($gmap_id, 'wpgmap_latlng', true),
264
  'wpgmap_map_zoom' => get_post_meta($gmap_id, 'wpgmap_map_zoom', true),
277
 
278
  $meta_data = array(
279
  'wpgmap_title',
280
+ 'wpgmap_heading_class',
281
  'wpgmap_show_heading',
282
  'wpgmap_latlng',
283
  'wpgmap_map_zoom',