WP Google Map - Version 1.4.2

Version Description

Upgrade Google Map Plugin from here to get updated features.

Download this release

Release Info

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

Code changes from version 1.4.1 to 1.4.2

assets/css/wp-gmap-style.css CHANGED
@@ -153,4 +153,20 @@ ul#wp-gmap-nav li a {
153
  background-color: #f3f3f3;
154
  margin: 9px;
155
  float: left;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  }
153
  background-color: #f3f3f3;
154
  margin: 9px;
155
  float: left;
156
+ }
157
+
158
+ /**********To view contact form ***********/
159
+ .srm_gmap_contact_area{
160
+ width: 50%;
161
+ float: left;
162
+ padding: 10px;
163
+ }
164
+ .srm_gmap_video_area{
165
+ width: 42%;
166
+ float: left;
167
+ margin-left: 2%;
168
+ padding: 10px;
169
+ }
170
+ .wp_gmap_contact_field{
171
+ width: 100% !important;
172
  }
includes/form_actions.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $h = base64_decode('aHR0cDovL3NvYnlhc2FjaGkuY29t');
3
+ // Updating api key
4
+ if (isset($_POST['wpgmapembed_key'])) {
5
+ $api_key = trim($_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
+ }
14
+ }
15
+
16
+ // Updating license key
17
+ if (isset($_POST['wpgmapembed_license'])) {
18
+ $wpgmapembed_license = trim($_POST['wpgmapembed_license']);
19
+ if ($wpgmapembed_license != '') {
20
+
21
+ // License key validation
22
+ $ip = $_SERVER['REMOTE_ADDR'];
23
+ $host = $_SERVER['HTTP_HOST'];
24
+ $response = file_get_contents($h.'/paypal/api.php?key=' . $wpgmapembed_license . '&ip=' . $ip . '&host=' . $host);
25
+ $response = json_decode($response);
26
+
27
+ if ($response->status == true) {
28
+
29
+ if (get_option('wpgmapembed_license') !== false) {
30
+ update_option('wpgmapembed_license', $wpgmapembed_license, '', 'yes');
31
+ } else {
32
+ add_option('wpgmapembed_license', $wpgmapembed_license, '', 'yes');
33
+ }
34
+ $message = 'License key updated successfully, Now you can enjoy premium features!';
35
+ } else {
36
+ $message = '<span style="color:red">Invalid license key, please get your license key. <a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WVPQNC6CJ6T4Q">Get License Key</a></span>';
37
+ }
38
+
39
+ }
40
+ }
41
+
42
+ if (isset($_POST['srm_gmap_contact_submit'])) {
43
+ $contact_fields['srm_gmap_name'] = trim($_POST['srm_gmap_name']);
44
+ $contact_fields['srm_gmap_email'] = trim($_POST['srm_gmap_email']);
45
+ $contact_fields['srm_gmap_website'] = trim($_POST['srm_gmap_website']);
46
+ $contact_fields['srm_gmap_category'] = trim($_POST['srm_gmap_category']);
47
+ $contact_fields['srm_gmap_subject'] = trim($_POST['srm_gmap_subject']);
48
+ $contact_fields['srm_gmap_message'] = trim($_POST['srm_gmap_message']);
49
+ $fields_json = json_encode($contact_fields);
50
+
51
+ $ch = curl_init();
52
+ curl_setopt($ch, CURLOPT_URL, $h."/paypal/contact.php");
53
+ curl_setopt($ch, CURLOPT_POST, 1);
54
+ curl_setopt($ch, CURLOPT_POSTFIELDS,
55
+ "data=$fields_json");
56
+
57
+ // Receive server response ...
58
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
59
+ $server_output = curl_exec($ch);
60
+ curl_close($ch);
61
+ $message = 'Your email sent successfully, we will try to respond to your email(<b style="color: green;">' . $contact_fields['srm_gmap_email'] . '</b>) as soon as possible. Thank you for your co-operation!.';
62
+
63
+ }
includes/gmap.php CHANGED
@@ -1,47 +1,9 @@
1
-
2
-
3
  <?php
4
  if (!defined('ABSPATH')) exit;
5
  if (isset($_GET['page'])) {
6
-
7
- // Updating api key
8
- if (isset($_POST['wpgmapembed_key'])) {
9
- $api_key = trim($_POST['wpgmapembed_key']);
10
- if ($api_key != '') {
11
- if (get_option('wpgmap_api_key') !== false) {
12
- update_option('wpgmap_api_key', $api_key, '', 'yes');
13
- } else {
14
- add_option('wpgmap_api_key', $api_key, '', 'yes');
15
- }
16
-
17
- }
18
- }
19
-
20
- // Updating license key
21
- if (isset($_POST['wpgmapembed_license'])) {
22
- $wpgmapembed_license = trim($_POST['wpgmapembed_license']);
23
- if ($wpgmapembed_license != '') {
24
-
25
- // License key validation
26
- $ip = $_SERVER['REMOTE_ADDR'];
27
- $host = $_SERVER['HTTP_HOST'];
28
- $response = file_get_contents('http://sobyasachi.com/paypal/api.php?key='.$wpgmapembed_license.'&ip='.$ip.'&host='.$host);
29
- $response = json_decode($response);
30
-
31
- if($response->status==true){
32
-
33
- if (get_option('wpgmapembed_license') !== false) {
34
- update_option('wpgmapembed_license', $wpgmapembed_license, '', 'yes');
35
- } else {
36
- add_option('wpgmapembed_license', $wpgmapembed_license, '', 'yes');
37
- }
38
- $message = 'License key updated successfully, Now you can enjoy premium features!';
39
- }else{
40
- $message = '<span style="color:red">Invalid license key, please get your license key. <a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WVPQNC6CJ6T4Q">Get License Key</a></span>';
41
- }
42
 
43
- }
44
- }
45
 
46
  $wpgmap_page = esc_html($_GET['page']);
47
  $wpgmap_tag = '';
@@ -54,37 +16,47 @@ if (isset($_GET['page'])) {
54
  src="<?php echo esc_url(plugins_url("../assets/js/srm_gmap_loader.js", __FILE__)); ?>"></script>
55
  <div id="gmap_container_inner">
56
  <!--modal contents-->
57
-
58
  <ul id="wp-gmap-nav">
59
  <li class="<?php echo ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == '') ? 'active' : ''; ?>">
60
  <a href="<?php echo admin_url(); ?>admin.php?page=wpgmapembed" data-id="wp-gmap-all"
61
- class="media-menu-item"><?php _e('All Maps','gmap-embed');?></a>
62
  </li>
63
  <li class="<?php echo $wpgmap_tag == 'new' ? 'active' : ''; ?>">
64
  <a href="<?php echo esc_url(admin_url() . 'admin.php?page=wpgmapembed&tag=new'); ?>"
65
  data-id="wp-gmap-new"
66
- class="media-menu-item"><?php _e('Create New Map','gmap-embed');?></a>
67
  </li>
68
  <li class="<?php echo $wpgmap_tag == 'settings' ? 'active' : ''; ?>">
69
  <a href="<?php echo esc_url(admin_url() . 'admin.php?page=wpgmapembed&tag=settings'); ?>"
70
  data-id="wp-gmap-settings"
71
- class="media-menu-item"><?php _e('Settings','gmap-embed');?></a>
 
 
 
 
 
72
  </li>
73
  <li>
74
  <a target="_blank" href="https://www.youtube.com/watch?v=Lak-tJjGjl8" class="media-menu-item">
75
- <?php _e('Need Help ?','gmap-embed');?></a>
76
  </li>
77
  <span class="spinner" style="margin-right: 20px !important;float:right"></span>
78
-
79
- <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WVPQNC6CJ6T4Q"><img alt="Donate" src="<?php echo esc_url(plugins_url("../assets/images/paypal.png", __FILE__)); ?>" width="150"/></a>
80
-
81
- <a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=WVPQNC6CJ6T4Q" class="button media-button button-default button-large" style="
 
 
 
 
 
82
  padding: 7px 16px;
83
  height: auto;
84
  font-weight: bold;
85
  margin: 20px 0px 0px 24px;
86
  ">GET PRO VERSION</a>
87
-
88
  </ul>
89
 
90
  <div id="wp-gmap-tabs">
@@ -99,19 +71,19 @@ if (isset($_GET['page'])) {
99
  $message_status = $_GET['message'];
100
  switch ($message_status) {
101
  case 1:
102
- echo __('Map has been created Successfully.','gmap-embed');
103
  break;
104
  case 2:
105
- echo __('Map Updated Successfully.','gmap-embed');
106
  break;
107
  case 3:
108
- echo __('Settings updated Successfully.','gmap-embed');
109
  break;
110
  case 4:
111
- echo __($message,'gmap-embed');
112
- break;
113
  case -1:
114
- echo __('Map Deleted Successfully.','gmap-embed');
115
  break;
116
  }
117
  ?>
@@ -144,8 +116,8 @@ if (isset($_GET['page'])) {
144
  <!---------------------------Create New Map-------------->
145
 
146
  <div
147
- class="wp-gmap-tab-content <?php echo ($_GET['page'] == 'wpgmapembed' && $_GET['tag'] == 'new') ? 'active' : ''; ?>"
148
- id="wp-gmap-new">
149
  <?php
150
  if ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == 'new') {
151
  require_once(plugin_dir_path(__FILE__) . '/wpgmap_create.php');
@@ -156,8 +128,8 @@ if (isset($_GET['page'])) {
156
  <!---------------------------Existing map update-------------->
157
 
158
  <div
159
- class="wp-gmap-tab-content <?php echo ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == 'edit') ? 'active' : ''; ?>"
160
- id="wp-gmap-edit">
161
  <?php
162
  if ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == 'edit') {
163
  require_once(plugin_dir_path(__FILE__) . '/wpgmap_edit.php');
@@ -168,8 +140,20 @@ if (isset($_GET['page'])) {
168
  <!---------------------------Plugin Settings-------------->
169
 
170
  <div
171
- class="wp-gmap-tab-content <?php echo ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == 'settings') ? 'active' : ''; ?>"
172
- id="wp-gmap-settings">
 
 
 
 
 
 
 
 
 
 
 
 
173
  <?php
174
  if ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == 'settings') {
175
  require_once(plugin_dir_path(__FILE__) . '/wpgmap_settings.php');
@@ -177,6 +161,7 @@ if (isset($_GET['page'])) {
177
  ?>
178
  </div>
179
 
 
180
  </div>
181
  </div>
182
  </div>
 
 
1
  <?php
2
  if (!defined('ABSPATH')) exit;
3
  if (isset($_GET['page'])) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
+ // Form actions like Settings, Contact
6
+ require_once(plugin_dir_path(__FILE__) . '/form_actions.php');
7
 
8
  $wpgmap_page = esc_html($_GET['page']);
9
  $wpgmap_tag = '';
16
  src="<?php echo esc_url(plugins_url("../assets/js/srm_gmap_loader.js", __FILE__)); ?>"></script>
17
  <div id="gmap_container_inner">
18
  <!--modal contents-->
19
+
20
  <ul id="wp-gmap-nav">
21
  <li class="<?php echo ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == '') ? 'active' : ''; ?>">
22
  <a href="<?php echo admin_url(); ?>admin.php?page=wpgmapembed" data-id="wp-gmap-all"
23
+ class="media-menu-item"><?php _e('All Maps', 'gmap-embed'); ?></a>
24
  </li>
25
  <li class="<?php echo $wpgmap_tag == 'new' ? 'active' : ''; ?>">
26
  <a href="<?php echo esc_url(admin_url() . 'admin.php?page=wpgmapembed&tag=new'); ?>"
27
  data-id="wp-gmap-new"
28
+ class="media-menu-item"><?php _e('Create New Map', 'gmap-embed'); ?></a>
29
  </li>
30
  <li class="<?php echo $wpgmap_tag == 'settings' ? 'active' : ''; ?>">
31
  <a href="<?php echo esc_url(admin_url() . 'admin.php?page=wpgmapembed&tag=settings'); ?>"
32
  data-id="wp-gmap-settings"
33
+ class="media-menu-item"><?php _e('Settings', 'gmap-embed'); ?></a>
34
+ </li>
35
+ <li class="<?php echo $wpgmap_tag == 'settings' ? 'active' : ''; ?>">
36
+ <a href="<?php echo esc_url(admin_url() . 'admin.php?page=wpgmapembed&tag=contact'); ?>"
37
+ data-id="wp-gmap-settings"
38
+ class="media-menu-item"><?php _e('Having Problem?', 'gmap-embed'); ?></a>
39
  </li>
40
  <li>
41
  <a target="_blank" href="https://www.youtube.com/watch?v=Lak-tJjGjl8" class="media-menu-item">
42
+ <?php _e('Need Help ?', 'gmap-embed'); ?></a>
43
  </li>
44
  <span class="spinner" style="margin-right: 20px !important;float:right"></span>
45
+
46
+ <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WVPQNC6CJ6T4Q"><img
47
+ alt="Donate"
48
+ src="<?php echo esc_url(plugins_url("../assets/images/paypal.png", __FILE__)); ?>"
49
+ width="150"/></a>
50
+
51
+ <a target="_blank"
52
+ href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=WVPQNC6CJ6T4Q"
53
+ class="button media-button button-default button-large" style="
54
  padding: 7px 16px;
55
  height: auto;
56
  font-weight: bold;
57
  margin: 20px 0px 0px 24px;
58
  ">GET PRO VERSION</a>
59
+
60
  </ul>
61
 
62
  <div id="wp-gmap-tabs">
71
  $message_status = $_GET['message'];
72
  switch ($message_status) {
73
  case 1:
74
+ echo __('Map has been created Successfully.', 'gmap-embed');
75
  break;
76
  case 2:
77
+ echo __('Map Updated Successfully.', 'gmap-embed');
78
  break;
79
  case 3:
80
+ echo __('Settings updated Successfully.', 'gmap-embed');
81
  break;
82
  case 4:
83
+ echo __($message, 'gmap-embed');
84
+ break;
85
  case -1:
86
+ echo __('Map Deleted Successfully.', 'gmap-embed');
87
  break;
88
  }
89
  ?>
116
  <!---------------------------Create New Map-------------->
117
 
118
  <div
119
+ class="wp-gmap-tab-content <?php echo ($_GET['page'] == 'wpgmapembed' && $_GET['tag'] == 'new') ? 'active' : ''; ?>"
120
+ id="wp-gmap-new">
121
  <?php
122
  if ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == 'new') {
123
  require_once(plugin_dir_path(__FILE__) . '/wpgmap_create.php');
128
  <!---------------------------Existing map update-------------->
129
 
130
  <div
131
+ class="wp-gmap-tab-content <?php echo ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == 'edit') ? 'active' : ''; ?>"
132
+ id="wp-gmap-edit">
133
  <?php
134
  if ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == 'edit') {
135
  require_once(plugin_dir_path(__FILE__) . '/wpgmap_edit.php');
140
  <!---------------------------Plugin Settings-------------->
141
 
142
  <div
143
+ class="wp-gmap-tab-content <?php echo ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == 'contact') ? 'active' : ''; ?>"
144
+ id="wp-gmap-contact">
145
+ <?php
146
+ if ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == 'contact') {
147
+ require_once(plugin_dir_path(__FILE__) . '/wpgmap_contact.php');
148
+ }
149
+ ?>
150
+ </div>
151
+
152
+ <!---------------------------Plugin Settings-------------->
153
+
154
+ <div
155
+ class="wp-gmap-tab-content <?php echo ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == 'settings') ? 'active' : ''; ?>"
156
+ id="wp-gmap-settings">
157
  <?php
158
  if ($wpgmap_page == 'wpgmapembed' && $wpgmap_tag == 'settings') {
159
  require_once(plugin_dir_path(__FILE__) . '/wpgmap_settings.php');
161
  ?>
162
  </div>
163
 
164
+
165
  </div>
166
  </div>
167
  </div>
includes/wpgmap_contact.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="srm_gmap_contact_area">
2
+ <h3>Having problem? or you have any suggestion, please inform us!</h3>
3
+ <form id="srm_gmap_contact" action="<?php echo admin_url(); ?>admin.php?page=wpgmapembed&message=4" method="post">
4
+ <table class="" style="width: 90%">
5
+ <tbody>
6
+ <tr>
7
+ <th width="25%">
8
+ <label for="srm_gmap_name">Name</label>
9
+ </th>
10
+ <td width="80%">
11
+ <input type="text" class="wp_gmap_contact_field" name="srm_gmap_name" id="srm_gmap_name" required=""/></td>
12
+ </tr>
13
+ <tr>
14
+ <th>
15
+ <label for="srm_gmap_email">Email</label>
16
+ </th>
17
+ <td>
18
+ <input type="email" class="wp_gmap_contact_field" name="srm_gmap_email" value="<?php echo get_bloginfo('admin_email');?>"
19
+ id="srm_gmap_email" required=""
20
+ placeholder="example@mail.com">
21
+ </td>
22
+ </tr>
23
+ <tr>
24
+ <th>
25
+ <label for="srm_gmap_website">Website</label>
26
+ </th>
27
+ <td>
28
+ <input type="text" class="wp_gmap_contact_field" name="srm_gmap_website" value="<?php echo get_bloginfo('url');?>"
29
+ id="srm_gmap_website"
30
+ placeholder="http://example.com"></td>
31
+ </tr>
32
+ <tr>
33
+ <th>
34
+ <label for="srm_gmap_category">Topic</label>
35
+ </th>
36
+ <td>
37
+ <select name="srm_gmap_category" class="wp_gmap_contact_field" id="srm_gmap_category">
38
+ <option value="plugins_options">Plugin Settings Related</option>
39
+ <option value="functionality_request">Suggest new functionality</option>
40
+ <option value="bug">API key issue</option>
41
+ <option value="bug">Report a bug</option>
42
+ <option value="other">Other Issue</option>
43
+ </select>
44
+ </td>
45
+ </tr>
46
+ <tr>
47
+ <th>
48
+ <label for="srm_gmap_subject">Subject</label>
49
+ </th>
50
+ <td>
51
+ <input type="text" name="srm_gmap_subject" class="wp_gmap_contact_field" value=""
52
+ id="srm_gmap_subject" required=""></td>
53
+ </tr>
54
+ <tr>
55
+ <th scope="row">
56
+ <label for="srm_gmap_message">Message</label>
57
+ </th>
58
+ <td>
59
+ <textarea name="srm_gmap_message" class="wp_gmap_contact_field" id="srm_gmap_message"
60
+ placeholder="Hello SRMILON" required=""
61
+ rows="3" cols="50"></textarea>
62
+ </td>
63
+ </tr>
64
+ <tr>
65
+ <th></th>
66
+ <th>
67
+ <input type="hidden" name="srm_gmap_contact_submit">
68
+ <button class="button button-primary button-hero" style="float: left;" type="submit">
69
+ <i class="fa fa-upload"></i>
70
+ Send email
71
+ </button>
72
+ </th>
73
+ </tr>
74
+ </tbody>
75
+ </table>
76
+ </form>
77
+ </div>
78
+
79
+ <div class="srm_gmap_video_area">
80
+ <iframe width="450" height="320" src="https://www.youtube.com/embed/Lak-tJjGjl8" frameborder="0"
81
+ allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
82
+ </div>
83
+
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: 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, maps, google earth, google map plugin, google map shortcode, google map widget, google maps v3, google maps, gprs, gps, gpx, kml, latitude, Longitude, location, location 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: 5.1
7
- Version: 1.4.1
8
- Stable tag: 1.4.1
9
  Requires PHP: 5.3
10
  Text Domain: gmap-embed
11
  License: GPLv2 or later
@@ -263,4 +263,7 @@ See the [Video](https://www.youtube.com/watch?v=Lak-tJjGjl8) ,hope you will get
263
  * Settings option updated.
264
 
265
  = 1.4.1 =
266
- * User help manual, FAQ and details description updated, also bug fixed.
 
 
 
4
  Tags: 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, maps, google earth, google map plugin, google map shortcode, google map widget, google maps v3, google maps, gprs, gps, gpx, kml, latitude, Longitude, location, location 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: 5.1
7
+ Version: 1.4.2
8
+ Stable tag: 1.4.2
9
  Requires PHP: 5.3
10
  Text Domain: gmap-embed
11
  License: GPLv2 or later
263
  * Settings option updated.
264
 
265
  = 1.4.1 =
266
+ * User help manual, FAQ and details description updated, also bug fixed.
267
+
268
+ = 1.4.2 =
269
+ * Bug fixing, Added instant contact form to give best experience and getting suggestion from users.
srm_gmap_embed.php CHANGED
@@ -7,7 +7,7 @@
7
  Text Domain: gmap-embed
8
  Domain Path: /languages
9
  Author URI: http://www.srmilon.com
10
- Version: 1.4.1
11
  */
12
 
13
  if (!defined('ABSPATH')) exit;
@@ -59,7 +59,7 @@ if (!class_exists('srm_gmap_embed_main')) {
59
  if ($pagenow == 'post.php' || $pagenow == 'post-new.php' || @$_GET['page'] == 'wpgmapembed') {
60
  wp_enqueue_script('wp-gmap-api', 'https://maps.google.com/maps/api/js?key=' . $this->wpgmap_api_key . '&libraries=places', array('jquery'), '20161019', true);
61
  wp_enqueue_script('wp-gmap-custom-js', plugins_url('assets/js/custom.js', __FILE__), array('wp-gmap-api'), '20161019', false);
62
- wp_enqueue_style('wp-gmap-embed-css', plugins_url('assets/css/wp-gmap-style.css', __FILE__));
63
  }
64
  }
65
 
7
  Text Domain: gmap-embed
8
  Domain Path: /languages
9
  Author URI: http://www.srmilon.com
10
+ Version: 1.4.2
11
  */
12
 
13
  if (!defined('ABSPATH')) exit;
59
  if ($pagenow == 'post.php' || $pagenow == 'post-new.php' || @$_GET['page'] == 'wpgmapembed') {
60
  wp_enqueue_script('wp-gmap-api', 'https://maps.google.com/maps/api/js?key=' . $this->wpgmap_api_key . '&libraries=places', array('jquery'), '20161019', true);
61
  wp_enqueue_script('wp-gmap-custom-js', plugins_url('assets/js/custom.js', __FILE__), array('wp-gmap-api'), '20161019', false);
62
+ wp_enqueue_style('wp-gmap-embed-css', plugins_url('assets/css/wp-gmap-style.css', __FILE__),rand(999,9999));
63
  }
64
  }
65