WP Google Map - Version 1.6.4

Version Description

  • Map language and Region customization option added.
  • Form and field level security enhanced.
  • Secured domain added for mail and verification process.
  • Support contact mail issue fixed.
Download this release

Release Info

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

Code changes from version 1.6.3 to 1.6.4

assets/js/geo_based_map_create.js CHANGED
@@ -8,7 +8,9 @@ function _e(id) {
8
  function wpgmapSetAddressByLatLng(lat, lng) {
9
  jQuery.getJSON('https://maps.googleapis.com/maps/api/geocode/json?key=' + wp_gmap_api_key + '&latlng=' + lat + ',' + lng + '&sensor=true')
10
  .done(function (location) {
11
- _e('wpgmap_map_address').value = location.results[0].formatted_address;
 
 
12
  })
13
  .fail(function (d) {
14
  console.log(d);
8
  function wpgmapSetAddressByLatLng(lat, lng) {
9
  jQuery.getJSON('https://maps.googleapis.com/maps/api/geocode/json?key=' + wp_gmap_api_key + '&latlng=' + lat + ',' + lng + '&sensor=true')
10
  .done(function (location) {
11
+ if (location.status === 'OK') {
12
+ _e('wpgmap_map_address').value = location.results[0].formatted_address;
13
+ }
14
  })
15
  .fail(function (d) {
16
  console.log(d);
assets/js/geo_based_map_edit.js CHANGED
@@ -8,7 +8,9 @@ function _e(id) {
8
  function wpgmapSetAddressByLatLng(lat, lng, id) {
9
  jQuery.getJSON('https://maps.googleapis.com/maps/api/geocode/json?key=' + wp_gmap_api_key + '&latlng=' + lat + ',' + lng + '&sensor=true')
10
  .done(function (location) {
11
- _e('wpgmap_map_address').value = location.results[0].formatted_address;
 
 
12
  })
13
  .fail(function (d) {
14
  console.log(d);
8
  function wpgmapSetAddressByLatLng(lat, lng, id) {
9
  jQuery.getJSON('https://maps.googleapis.com/maps/api/geocode/json?key=' + wp_gmap_api_key + '&latlng=' + lat + ',' + lng + '&sensor=true')
10
  .done(function (location) {
11
+ if (location.status === 'OK') {
12
+ _e('wpgmap_map_address').value = location.results[0].formatted_address;
13
+ }
14
  })
15
  .fail(function (d) {
16
  console.log(d);
gmap-embed.pot CHANGED
@@ -128,7 +128,7 @@ msgstr ""
128
  #. Plugin URI of the plugin/theme
129
  #. #-#-#-#-# plugin.pot (Google Map Embed 1.1.0) #-#-#-#-#
130
  #. Author URI of the plugin/theme
131
- msgid "http://www.srmilon.info"
132
  msgstr ""
133
 
134
  #. Description of the plugin/theme
128
  #. Plugin URI of the plugin/theme
129
  #. #-#-#-#-# plugin.pot (Google Map Embed 1.1.0) #-#-#-#-#
130
  #. Author URI of the plugin/theme
131
+ msgid "https://www.srmilon.info"
132
  msgstr ""
133
 
134
  #. Description of the plugin/theme
includes/form_actions.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- $h = base64_decode( 'aHR0cDovL3NybWlsb24uaW5mbw' );
3
  // Updating api key
4
  if ( isset( $_POST['wpgmapembed_key'] ) ) {
5
  $api_key = trim( $_POST['wpgmapembed_key'] );
@@ -48,7 +48,7 @@ if ( isset( $_POST['wpgmapembed_license'] ) ) {
48
  }
49
  $message = 'License key updated successfully, Now you can enjoy <b>premium features</b>!';
50
  } else {
51
- $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=ZBERRKARGNEYA">Get License Key</a></span>';
52
  }
53
 
54
  }
@@ -56,14 +56,13 @@ if ( isset( $_POST['wpgmapembed_license'] ) ) {
56
 
57
  if ( isset( $_POST['srm_gmap_contact_submit'] ) ) {
58
  $contact_fields['srm_gmap_name'] = trim( $_POST['srm_gmap_name'] );
59
- $contact_fields['srm_gmap_email'] = trim( sanitize_email($_POST['srm_gmap_email']) );
60
  $contact_fields['srm_gmap_website'] = trim( $_POST['srm_gmap_website'] );
61
  $contact_fields['srm_gmap_category'] = trim( $_POST['srm_gmap_category'] );
62
  $contact_fields['srm_gmap_subject'] = trim( $_POST['srm_gmap_subject'] );
63
  $contact_fields['srm_gmap_message'] = trim( $_POST['srm_gmap_message'] );
64
  $fields_json = json_encode( $contact_fields );
65
-
66
- $ch = curl_init();
67
  curl_setopt( $ch, CURLOPT_URL, $h . "/paypal/contact.php" );
68
  curl_setopt( $ch, CURLOPT_POST, 1 );
69
  curl_setopt( $ch, CURLOPT_POSTFIELDS,
@@ -73,6 +72,22 @@ if ( isset( $_POST['srm_gmap_contact_submit'] ) ) {
73
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
74
  $server_output = curl_exec( $ch );
75
  curl_close( $ch );
76
- $message = 'Your email sent successfully, we will try to respond to your email(<b style="color: green;">' . sanitize_email($contact_fields['srm_gmap_email']) . '</b>) as soon as possible. Thank you for your co-operation!.';
77
 
78
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
+ $h = base64_decode( 'aHR0cHM6Ly9zcm1pbG9uLmluZm8=' );
3
  // Updating api key
4
  if ( isset( $_POST['wpgmapembed_key'] ) ) {
5
  $api_key = trim( $_POST['wpgmapembed_key'] );
48
  }
49
  $message = 'License key updated successfully, Now you can enjoy <b>premium features</b>!';
50
  } else {
51
+ $message = '<span style="color:red">Invalid license key, please get your license key. <a target="_blank" href="' . esc_url( 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZBERRKARGNEYA' ) . '">Get License Key</a></span>';
52
  }
53
 
54
  }
56
 
57
  if ( isset( $_POST['srm_gmap_contact_submit'] ) ) {
58
  $contact_fields['srm_gmap_name'] = trim( $_POST['srm_gmap_name'] );
59
+ $contact_fields['srm_gmap_email'] = trim( sanitize_email( $_POST['srm_gmap_email'] ) );
60
  $contact_fields['srm_gmap_website'] = trim( $_POST['srm_gmap_website'] );
61
  $contact_fields['srm_gmap_category'] = trim( $_POST['srm_gmap_category'] );
62
  $contact_fields['srm_gmap_subject'] = trim( $_POST['srm_gmap_subject'] );
63
  $contact_fields['srm_gmap_message'] = trim( $_POST['srm_gmap_message'] );
64
  $fields_json = json_encode( $contact_fields );
65
+ $ch = curl_init();
 
66
  curl_setopt( $ch, CURLOPT_URL, $h . "/paypal/contact.php" );
67
  curl_setopt( $ch, CURLOPT_POST, 1 );
68
  curl_setopt( $ch, CURLOPT_POSTFIELDS,
72
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
73
  $server_output = curl_exec( $ch );
74
  curl_close( $ch );
75
+ $message = 'Your email sent successfully, we will try to respond to your email(<b style="color: green;">' . sanitize_email( $contact_fields['srm_gmap_email'] ) . '</b>) as soon as possible. Thank you for your co-operation!.';
76
 
77
  }
78
+
79
+ // Updating map language settings
80
+ if ( isset( $_POST['srm_gmap_map_language_settings'] ) ) {
81
+ $srm_gmap_lng = trim( $_POST['srm_gmap_lng'] );
82
+ $srm_gmap_region = trim( $_POST['srm_gmap_region'] );
83
+
84
+ if ( $srm_gmap_lng != '' ) {
85
+ update_option( 'srm_gmap_lng', $srm_gmap_lng );
86
+ }
87
+
88
+ if ( $srm_gmap_region != '' ) {
89
+ update_option( 'srm_gmap_region', $srm_gmap_region );
90
+ }
91
+ $message = 'Map Language and Regional Area settings updated successfully.';
92
+
93
+ }
includes/gmap.php CHANGED
@@ -70,7 +70,8 @@ if ( isset( $_GET['page'] ) ) {
70
  class="media-menu-item"><?php _e( 'Having Problem?', 'gmap-embed' ); ?></a>
71
  </li>
72
  <li>
73
- <a target="_blank" href="https://www.youtube.com/watch?v=Nh2z_oRK-RM"
 
74
  class="media-menu-item">
75
  <?php _e( 'See Video', 'gmap-embed' ); ?></a>
76
  </li>
@@ -80,7 +81,7 @@ if ( isset( $_GET['page'] ) ) {
80
  <!-- Right Area-->
81
  <div class="gmap_header_section_right">
82
  <a class="gmap_donate_button"
83
- href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZBERRKARGNEYA">
84
  <img alt="Donate"
85
  src="<?php echo esc_url( plugins_url( "../assets/images/paypal.png", __FILE__ ) ); ?>"
86
  width="150"/>
@@ -89,7 +90,7 @@ if ( isset( $_GET['page'] ) ) {
89
  <?php
90
  if ( strlen( trim( get_option( 'wpgmapembed_license' ) ) ) !== 32 ) { ?>
91
  <a target="_blank"
92
- href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZBERRKARGNEYA"
93
  class="button media-button button-default button-large gmap_get_pro_version">
94
  GET PRO VERSION
95
  </a>
@@ -102,7 +103,7 @@ if ( isset( $_GET['page'] ) ) {
102
  <?php
103
  }
104
  ?>
105
- <a onclick="window.open('https://tawk.to/chat/5ca5dea51de11b6e3b06dc41/default', 'LIVE CHAT', 'width=500,height=300')"
106
  style="float: right;cursor: pointer;">
107
  <img src="<?php echo esc_url( plugins_url( "../assets/images/live_chat.png", __FILE__ ) ); ?>"
108
  width="110"/>
@@ -122,10 +123,10 @@ if ( isset( $_GET['page'] ) ) {
122
  $message_status = $_GET['message'];
123
  switch ( $message_status ) {
124
  case 1:
125
- echo __( 'Map has been created Successfully. <a href="https://youtu.be/Nh2z_oRK-RM?t=181" target="_blank"> See How to use >></a>', 'gmap-embed' );
126
  break;
127
  case 2:
128
- echo __( 'Map Updated Successfully. <a href="https://youtu.be/Nh2z_oRK-RM?t=181" target="_blank"> See How to use >></a>', 'gmap-embed' );
129
  break;
130
  case 3:
131
  echo __( 'Settings updated Successfully.', 'gmap-embed' );
70
  class="media-menu-item"><?php _e( 'Having Problem?', 'gmap-embed' ); ?></a>
71
  </li>
72
  <li>
73
+ <a target="_blank"
74
+ href="<?php echo esc_url( 'https://www.youtube.com/watch?v=Nh2z_oRK-RM' ); ?>"
75
  class="media-menu-item">
76
  <?php _e( 'See Video', 'gmap-embed' ); ?></a>
77
  </li>
81
  <!-- Right Area-->
82
  <div class="gmap_header_section_right">
83
  <a class="gmap_donate_button"
84
+ href="<?php echo esc_url( 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZBERRKARGNEYA' ); ?>">
85
  <img alt="Donate"
86
  src="<?php echo esc_url( plugins_url( "../assets/images/paypal.png", __FILE__ ) ); ?>"
87
  width="150"/>
90
  <?php
91
  if ( strlen( trim( get_option( 'wpgmapembed_license' ) ) ) !== 32 ) { ?>
92
  <a target="_blank"
93
+ href="<?php echo esc_url( 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZBERRKARGNEYA' ); ?>"
94
  class="button media-button button-default button-large gmap_get_pro_version">
95
  GET PRO VERSION
96
  </a>
103
  <?php
104
  }
105
  ?>
106
+ <a onclick="window.open('<?php echo esc_url( 'https://tawk.to/chat/5ca5dea51de11b6e3b06dc41/default' ); ?>', 'LIVE CHAT', 'width=500,height=300')"
107
  style="float: right;cursor: pointer;">
108
  <img src="<?php echo esc_url( plugins_url( "../assets/images/live_chat.png", __FILE__ ) ); ?>"
109
  width="110"/>
123
  $message_status = $_GET['message'];
124
  switch ( $message_status ) {
125
  case 1:
126
+ echo __( 'Map has been created Successfully. <a href="' . esc_url( 'https://youtu.be/Nh2z_oRK-RM?t=181' ) . '" target="_blank"> See How to use >></a>', 'gmap-embed' );
127
  break;
128
  case 2:
129
+ echo __( 'Map Updated Successfully. <a href="' . esc_url( 'https://youtu.be/Nh2z_oRK-RM?t=181' ) . '" target="_blank"> See How to use >></a>', 'gmap-embed' );
130
  break;
131
  case 3:
132
  echo __( 'Settings updated Successfully.', 'gmap-embed' );
includes/helper.php CHANGED
@@ -8,4 +8,344 @@ function gmap_embed_no_of_post() {
8
 
9
  function gmap_embed_is_using_premium_version() {
10
  return gmap_embed_no_of_post() == 0 or strlen( trim( get_option( 'wpgmapembed_license' ) ) ) == 32;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  }
8
 
9
  function gmap_embed_is_using_premium_version() {
10
  return gmap_embed_no_of_post() == 0 or strlen( trim( get_option( 'wpgmapembed_license' ) ) ) == 32;
11
+ }
12
+
13
+ function gmap_embed_get_languages() {
14
+ return [
15
+ "af" => "AFRIKAANS",
16
+ "sq" => "ALBANIAN",
17
+ "am" => "AMHARIC",
18
+ "ar" => "ARABIC",
19
+ "hy" => "ARMENIAN",
20
+ "az" => "AZERBAIJANI",
21
+ "eu" => "BASQUE",
22
+ "be" => "BELARUSIAN",
23
+ "bn" => "BENGALI",
24
+ "bs" => "BOSNIAN",
25
+ "bg" => "BULGARIAN",
26
+ "my" => "BURMESE",
27
+ "ca" => "CATALAN",
28
+ "zh" => "CHINESE",
29
+ "zh-CN" => "CHINESE (SIMPLIFIED)",
30
+ "zh-HK" => "CHINESE (HONG KONG)",
31
+ "zh-TW" => "CHINESE (TRADITIONAL)",
32
+ "hr" => "CROATIAN",
33
+ "cs" => "CZECH",
34
+ "da" => "DANISH",
35
+ "nl" => "DUTCH",
36
+ "en" => "ENGLISH",
37
+ "en-AU" => "ENGLISH (AUSTRALIAN)",
38
+ "en-GB" => "ENGLISH (GREAT BRITAIN)",
39
+ "et" => "ESTONIAN",
40
+ "fa" => "FARSI",
41
+ "fi" => "FINNISH",
42
+ "fil" => "FILIPINO",
43
+ "fr" => "FRENCH",
44
+ "fr-CA" => "FRENCH (CANADA)",
45
+ "gl" => "GALICIAN",
46
+ "ka" => "GEORGIAN",
47
+ "de" => "GERMAN",
48
+ "el" => "GREEK",
49
+ "gu" => "GUJARATI",
50
+ "iw" => "HEBREW",
51
+ "hi" => "HINDI",
52
+ "hu" => "HUNGARIAN",
53
+ "is" => "ICELANDIC",
54
+ "id" => "INDONESIAN",
55
+ "it" => "ITALIAN",
56
+ "ja" => "JAPANESE",
57
+ "kn" => "KANNADA",
58
+ "kk" => "KAZAKH",
59
+ "km" => "KHMER",
60
+ "ko" => "KOREAN",
61
+ "ky" => "KYRGYZ",
62
+ "lo" => "LAO",
63
+ "lv" => "LATVIAN",
64
+ "lt" => "LITHUANIAN",
65
+ "mk" => "MACEDONIAN",
66
+ "ms" => "MALAY",
67
+ "ml" => "MALAYALAM",
68
+ "mr" => "MARATHI",
69
+ "mn" => "MONGOLIAN",
70
+ "ne" => "NEPALI",
71
+ "no" => "NORWEGIAN",
72
+ "pl" => "POLISH",
73
+ "pt" => "PORTUGUESE",
74
+ "pt-BR" => "PORTUGUESE (BRAZIL)",
75
+ "pt-PT" => "PORTUGUESE (PORTUGAL)",
76
+ "pa" => "PUNJABI",
77
+ "ro" => "ROMANIAN",
78
+ "ru" => "RUSSIAN",
79
+ "sr" => "SERBIAN",
80
+ "si" => "SINHALESE",
81
+ "sk" => "SLOVAK",
82
+ "sl" => "SLOVENIAN",
83
+ "es" => "SPANISH",
84
+ "es-419" => "SPANISH (LATIN AMERICA)",
85
+ "sw" => "SWAHILI",
86
+ "sv" => "SWEDISH",
87
+ "ta" => "TAMIL",
88
+ "te" => "TELUGU",
89
+ "th" => "THAI",
90
+ "tr" => "TURKISH",
91
+ "uk" => "UKRAINIAN",
92
+ "ur" => "URDU",
93
+ "uz" => "UZBEK",
94
+ "vi" => "VIETNAMESE",
95
+ "zu" => "ZULU"
96
+ ];
97
+ }
98
+
99
+ function gmap_embed_get_regions() {
100
+ return [
101
+ "AF" => "Afghanistan",
102
+ "AX" => "Åland Islands",
103
+ "AL" => "Albania",
104
+ "DZ" => "Algeria",
105
+ "AS" => "American Samoa",
106
+ "AD" => "Andorra",
107
+ "AO" => "Angola",
108
+ "AI" => "Anguilla",
109
+ "AQ" => "Antarctica",
110
+ "AG" => "Antigua and Barbuda",
111
+ "AR" => "Argentina",
112
+ "AM" => "Armenia",
113
+ "AW" => "Aruba",
114
+ "AU" => "Australia",
115
+ "AT" => "Austria",
116
+ "AZ" => "Azerbaijan",
117
+ "BS" => "Bahamas",
118
+ "BH" => "Bahrain",
119
+ "BD" => "Bangladesh",
120
+ "BB" => "Barbados",
121
+ "BY" => "Belarus",
122
+ "BE" => "Belgium",
123
+ "BZ" => "Belize",
124
+ "BJ" => "Benin",
125
+ "BM" => "Bermuda",
126
+ "BT" => "Bhutan",
127
+ "BO" => "Bolivia, Plurinational State of",
128
+ "BQ" => "Bonaire, Sint Eustatius and Saba",
129
+ "BA" => "Bosnia and Herzegovina",
130
+ "BW" => "Botswana",
131
+ "BV" => "Bouvet Island",
132
+ "BR" => "Brazil",
133
+ "IO" => "British Indian Ocean Territory",
134
+ "BN" => "Brunei Darussalam",
135
+ "BG" => "Bulgaria",
136
+ "BF" => "Burkina Faso",
137
+ "BI" => "Burundi",
138
+ "KH" => "Cambodia",
139
+ "CM" => "Cameroon",
140
+ "CA" => "Canada",
141
+ "CV" => "Cape Verde",
142
+ "KY" => "Cayman Islands",
143
+ "CF" => "Central African Republic",
144
+ "TD" => "Chad",
145
+ "CL" => "Chile",
146
+ "CN" => "China",
147
+ "CX" => "Christmas Island",
148
+ "CC" => "Cocos (Keeling) Islands",
149
+ "CO" => "Colombia",
150
+ "KM" => "Comoros",
151
+ "CG" => "Congo",
152
+ "CD" => "Congo, the Democratic Republic of the",
153
+ "CK" => "Cook Islands",
154
+ "CR" => "Costa Rica",
155
+ "CI" => "Côte d'Ivoire",
156
+ "HR" => "Croatia",
157
+ "CU" => "Cuba",
158
+ "CW" => "Curaçao",
159
+ "CY" => "Cyprus",
160
+ "CZ" => "Czech Republic",
161
+ "DK" => "Denmark",
162
+ "DJ" => "Djibouti",
163
+ "DM" => "Dominica",
164
+ "DO" => "Dominican Republic",
165
+ "EC" => "Ecuador",
166
+ "EG" => "Egypt",
167
+ "SV" => "El Salvador",
168
+ "GQ" => "Equatorial Guinea",
169
+ "ER" => "Eritrea",
170
+ "EE" => "Estonia",
171
+ "ET" => "Ethiopia",
172
+ "FK" => "Falkland Islands (Malvinas)",
173
+ "FO" => "Faroe Islands",
174
+ "FJ" => "Fiji",
175
+ "FI" => "Finland",
176
+ "FR" => "France",
177
+ "GF" => "French Guiana",
178
+ "PF" => "French Polynesia",
179
+ "TF" => "French Southern Territories",
180
+ "GA" => "Gabon",
181
+ "GM" => "Gambia",
182
+ "GE" => "Georgia",
183
+ "DE" => "Germany",
184
+ "GH" => "Ghana",
185
+ "GI" => "Gibraltar",
186
+ "GR" => "Greece",
187
+ "GL" => "Greenland",
188
+ "GD" => "Grenada",
189
+ "GP" => "Guadeloupe",
190
+ "GU" => "Guam",
191
+ "GT" => "Guatemala",
192
+ "GG" => "Guernsey",
193
+ "GN" => "Guinea",
194
+ "GW" => "Guinea-Bissau",
195
+ "GY" => "Guyana",
196
+ "HT" => "Haiti",
197
+ "HM" => "Heard Island and McDonald Mcdonald Islands",
198
+ "VA" => "Holy See (Vatican City State)",
199
+ "HN" => "Honduras",
200
+ "HK" => "Hong Kong",
201
+ "HU" => "Hungary",
202
+ "IS" => "Iceland",
203
+ "IN" => "India",
204
+ "ID" => "Indonesia",
205
+ "IR" => "Iran, Islamic Republic of",
206
+ "IQ" => "Iraq",
207
+ "IE" => "Ireland",
208
+ "IM" => "Isle of Man",
209
+ "IL" => "Israel",
210
+ "IT" => "Italy",
211
+ "JM" => "Jamaica",
212
+ "JP" => "Japan",
213
+ "JE" => "Jersey",
214
+ "JO" => "Jordan",
215
+ "KZ" => "Kazakhstan",
216
+ "KE" => "Kenya",
217
+ "KI" => "Kiribati",
218
+ "KP" => "Korea, Democratic People's Republic of",
219
+ "KR" => "Korea, Republic of",
220
+ "KW" => "Kuwait",
221
+ "KG" => "Kyrgyzstan",
222
+ "LA" => "Lao People's Democratic Republic",
223
+ "LV" => "Latvia",
224
+ "LB" => "Lebanon",
225
+ "LS" => "Lesotho",
226
+ "LR" => "Liberia",
227
+ "LY" => "Libya",
228
+ "LI" => "Liechtenstein",
229
+ "LT" => "Lithuania",
230
+ "LU" => "Luxembourg",
231
+ "MO" => "Macao",
232
+ "MK" => "Macedonia, the Former Yugoslav Republic of",
233
+ "MG" => "Madagascar",
234
+ "MW" => "Malawi",
235
+ "MY" => "Malaysia",
236
+ "MV" => "Maldives",
237
+ "ML" => "Mali",
238
+ "MT" => "Malta",
239
+ "MH" => "Marshall Islands",
240
+ "MQ" => "Martinique",
241
+ "MR" => "Mauritania",
242
+ "MU" => "Mauritius",
243
+ "YT" => "Mayotte",
244
+ "MX" => "Mexico",
245
+ "FM" => "Micronesia, Federated States of",
246
+ "MD" => "Moldova, Republic of",
247
+ "MC" => "Monaco",
248
+ "MN" => "Mongolia",
249
+ "ME" => "Montenegro",
250
+ "MS" => "Montserrat",
251
+ "MA" => "Morocco",
252
+ "MZ" => "Mozambique",
253
+ "MM" => "Myanmar",
254
+ "NA" => "Namibia",
255
+ "NR" => "Nauru",
256
+ "NP" => "Nepal",
257
+ "NL" => "Netherlands",
258
+ "NC" => "New Caledonia",
259
+ "NZ" => "New Zealand",
260
+ "NI" => "Nicaragua",
261
+ "NE" => "Niger",
262
+ "NG" => "Nigeria",
263
+ "NU" => "Niue",
264
+ "NF" => "Norfolk Island",
265
+ "MP" => "Northern Mariana Islands",
266
+ "NO" => "Norway",
267
+ "OM" => "Oman",
268
+ "PK" => "Pakistan",
269
+ "PW" => "Palau",
270
+ "PS" => "Palestine, State of",
271
+ "PA" => "Panama",
272
+ "PG" => "Papua New Guinea",
273
+ "PY" => "Paraguay",
274
+ "PE" => "Peru",
275
+ "PH" => "Philippines",
276
+ "PN" => "Pitcairn",
277
+ "PL" => "Poland",
278
+ "PT" => "Portugal",
279
+ "PR" => "Puerto Rico",
280
+ "QA" => "Qatar",
281
+ "RE" => "Réunion",
282
+ "RO" => "Romania",
283
+ "RU" => "Russian Federation",
284
+ "RW" => "Rwanda",
285
+ "BL" => "Saint Barthélemy",
286
+ "SH" => "Saint Helena, Ascension and Tristan da Cunha",
287
+ "KN" => "Saint Kitts and Nevis",
288
+ "LC" => "Saint Lucia",
289
+ "MF" => "Saint Martin (French part)",
290
+ "PM" => "Saint Pierre and Miquelon",
291
+ "VC" => "Saint Vincent and the Grenadines",
292
+ "WS" => "Samoa",
293
+ "SM" => "San Marino",
294
+ "ST" => "Sao Tome and Principe",
295
+ "SA" => "Saudi Arabia",
296
+ "SN" => "Senegal",
297
+ "RS" => "Serbia",
298
+ "SC" => "Seychelles",
299
+ "SL" => "Sierra Leone",
300
+ "SG" => "Singapore",
301
+ "SX" => "Sint Maarten (Dutch part)",
302
+ "SK" => "Slovakia",
303
+ "SI" => "Slovenia",
304
+ "SB" => "Solomon Islands",
305
+ "SO" => "Somalia",
306
+ "ZA" => "South Africa",
307
+ "GS" => "South Georgia and the South Sandwich Islands",
308
+ "SS" => "South Sudan",
309
+ "ES" => "Spain",
310
+ "LK" => "Sri Lanka",
311
+ "SD" => "Sudan",
312
+ "SR" => "Suriname",
313
+ "SJ" => "Svalbard and Jan Mayen",
314
+ "SZ" => "Swaziland",
315
+ "SE" => "Sweden",
316
+ "CH" => "Switzerland",
317
+ "SY" => "Syrian Arab Republic",
318
+ "TW" => "Taiwan",
319
+ "TJ" => "Tajikistan",
320
+ "TZ" => "Tanzania, United Republic of",
321
+ "TH" => "Thailand",
322
+ "TL" => "Timor-Leste",
323
+ "TG" => "Togo",
324
+ "TK" => "Tokelau",
325
+ "TO" => "Tonga",
326
+ "TT" => "Trinidad and Tobago",
327
+ "TN" => "Tunisia",
328
+ "TR" => "Turkey",
329
+ "TM" => "Turkmenistan",
330
+ "TC" => "Turks and Caicos Islands",
331
+ "TV" => "Tuvalu",
332
+ "UG" => "Uganda",
333
+ "UA" => "Ukraine",
334
+ "AE" => "United Arab Emirates",
335
+ "GB" => "United Kingdom",
336
+ "US" => "United States",
337
+ "UM" => "United States Minor Outlying Islands",
338
+ "UY" => "Uruguay",
339
+ "UZ" => "Uzbekistan",
340
+ "VU" => "Vanuatu",
341
+ "VE" => "Venezuela, Bolivarian Republic of",
342
+ "VN" => "Vietnam",
343
+ "VG" => "Virgin Islands, British",
344
+ "VI" => "Virgin Islands, U.S.",
345
+ "WF" => "Wallis and Futuna",
346
+ "EH" => "Western Sahara",
347
+ "YE" => "Yemen",
348
+ "ZM" => "Zambia",
349
+ "ZW" => "Zimbabwe"
350
+ ];
351
  }
includes/premium-version-notice.php CHANGED
@@ -8,7 +8,7 @@
8
  <p></p>
9
  <span style="text-align: center;width: 100%;float: left;clear: both;">
10
  <a class="wpgmap_premium_notice_button" target="_blank"
11
- href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZBERRKARGNEYA">Upgrade to Pro Version by $10 for Lifetime</a>
12
  </span>
13
  <p></p>
14
  <p></p>
8
  <p></p>
9
  <span style="text-align: center;width: 100%;float: left;clear: both;">
10
  <a class="wpgmap_premium_notice_button" target="_blank"
11
+ href="<?php echo esc_url('https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZBERRKARGNEYA');?>">Upgrade to Pro Version by $10 for Lifetime</a>
12
  </span>
13
  <p></p>
14
  <p></p>
includes/wpgmap_contact.php CHANGED
@@ -31,7 +31,7 @@
31
  <input type="text" class="wp_gmap_contact_field" name="srm_gmap_website"
32
  value="<?php echo get_bloginfo( 'url' ); ?>"
33
  id="srm_gmap_website"
34
- placeholder="http://example.com"></td>
35
  </tr>
36
  <tr>
37
  <th>
31
  <input type="text" class="wp_gmap_contact_field" name="srm_gmap_website"
32
  value="<?php echo get_bloginfo( 'url' ); ?>"
33
  id="srm_gmap_website"
34
+ placeholder="<?php echo esc_url('http://example.com');?>"></td>
35
  </tr>
36
  <tr>
37
  <th>
includes/wpgmap_create.php CHANGED
@@ -39,8 +39,8 @@
39
  <tr>
40
  <td>
41
  <input id="wpgmap_upload_hidden" type="hidden" size="36" name="upload_image"
42
- value="https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png"/>
43
- <img src="https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png"
44
  id="wpgmap_icon_img" width="32" style="float: left;">
45
  <input id="upload_image_button" type="button" value="Change Marker Icon"
46
  style="float: left;margin-left: 14px;margin-top: 12px;"/>
39
  <tr>
40
  <td>
41
  <input id="wpgmap_upload_hidden" type="hidden" size="36" name="upload_image"
42
+ value="<?php echo esc_url('https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png');?>"/>
43
+ <img src="<?php echo esc_url('https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png');?>"
44
  id="wpgmap_icon_img" width="32" style="float: left;">
45
  <input id="upload_image_button" type="button" value="Change Marker Icon"
46
  style="float: left;margin-left: 14px;margin-top: 12px;"/>
includes/wpgmap_edit.php CHANGED
@@ -177,7 +177,6 @@ list( $wpgmap_lat, $wpgmap_lng ) = explode( ',', esc_html( $wpgmap_single->wpgma
177
  (function ($) {
178
  $(function () {
179
  icon = '<?php echo $wpgmap_single->wpgmap_marker_icon;?>';
180
- console.log(icon);
181
  google.maps.event.addDomListener(window, 'load',
182
  initAutocomplete('map', 'pac-input',<?php echo $wpgmap_lat;?>,<?php echo $wpgmap_lng;?>, '<?php echo $wpgmap_single->wpgmap_map_type; ?>',<?php echo $wpgmap_single->wpgmap_map_zoom;?>, 'edit')
183
  );
177
  (function ($) {
178
  $(function () {
179
  icon = '<?php echo $wpgmap_single->wpgmap_marker_icon;?>';
 
180
  google.maps.event.addDomListener(window, 'load',
181
  initAutocomplete('map', 'pac-input',<?php echo $wpgmap_lat;?>,<?php echo $wpgmap_lng;?>, '<?php echo $wpgmap_single->wpgmap_map_type; ?>',<?php echo $wpgmap_single->wpgmap_map_zoom;?>, 'edit')
182
  );
includes/wpgmap_faqs.php CHANGED
@@ -1,42 +1,42 @@
1
  <ul>
2
  <li>
3
- <a href="<?php echo esc_url( 'http://srmilon.info/2019/02/18/how-to-get-google-map-api-key' ); ?>"
4
  target="_blank">How to get API
5
  key?</a>
6
  </li>
7
  <li>
8
- <a href="<?php echo esc_url( 'http://srmilon.info/2020/02/27/how-to-debug-or-identify-the-map-loading-problems-in-admin-panel' ); ?>"
9
  target="_blank">See
10
  why map is not working properly</a>
11
  </li>
12
  <li>
13
- <a href="<?php echo esc_url( 'http://srmilon.info/2019/03/31/how-to-get-your-license-key' ); ?>"
14
  target="_blank">How to get your
15
  Lifetime
16
  License key?</a>
17
  </li>
18
  <li>
19
- <a href="<?php echo esc_url( 'http://srmilon.info/2019/07/03/dont-see-embed-google-map-button-in-new-editor' ); ?>"
20
  target="_blank">Don’t
21
  see “Embed Google Map” button in new Editor?</a>
22
  </li>
23
  <li>
24
- <a href="<?php echo esc_url( 'http://srmilon.info/2019/03/31/how-to-add-google-map-in-your-wordpress-page' ); ?>"
25
  target="_blank">How to
26
  add Google Map in page?</a>
27
  </li>
28
  <li>
29
- <a href="<?php echo esc_url( 'http://srmilon.info/2019/03/31/how-to-add-google-map-in-your-wordpress-post' ); ?>"
30
  target="_blank">How to
31
  add Google Map in post?</a>
32
  </li>
33
  <li>
34
- <a href="<?php echo esc_url( 'http://srmilon.info/2019/03/31/how-to-add-google-map-in-sidebar-as-widget' ); ?>"
35
  target="_blank">How to
36
  add Google Map in Sidebar as widget?</a>
37
  </li>
38
  <li>
39
- <a href="<?php echo esc_url( 'http://srmilon.info/2019/03/31/can-not-load-the-map-correctly' ); ?>"
40
  target="_blank">Do you see "the page
41
  can\'t load the map correctly"?</a>
42
  </li>
1
  <ul>
2
  <li>
3
+ <a href="<?php echo esc_url( 'https://srmilon.info/2019/02/18/how-to-get-google-map-api-key' ); ?>"
4
  target="_blank">How to get API
5
  key?</a>
6
  </li>
7
  <li>
8
+ <a href="<?php echo esc_url( 'https://srmilon.info/2020/02/27/how-to-debug-or-identify-the-map-loading-problems-in-admin-panel' ); ?>"
9
  target="_blank">See
10
  why map is not working properly</a>
11
  </li>
12
  <li>
13
+ <a href="<?php echo esc_url( 'https://srmilon.info/2019/03/31/how-to-get-your-license-key' ); ?>"
14
  target="_blank">How to get your
15
  Lifetime
16
  License key?</a>
17
  </li>
18
  <li>
19
+ <a href="<?php echo esc_url( 'https://srmilon.info/2019/07/03/dont-see-embed-google-map-button-in-new-editor' ); ?>"
20
  target="_blank">Don’t
21
  see “Embed Google Map” button in new Editor?</a>
22
  </li>
23
  <li>
24
+ <a href="<?php echo esc_url( 'https://srmilon.info/2019/03/31/how-to-add-google-map-in-your-wordpress-page' ); ?>"
25
  target="_blank">How to
26
  add Google Map in page?</a>
27
  </li>
28
  <li>
29
+ <a href="<?php echo esc_url( 'https://srmilon.info/2019/03/31/how-to-add-google-map-in-your-wordpress-post' ); ?>"
30
  target="_blank">How to
31
  add Google Map in post?</a>
32
  </li>
33
  <li>
34
+ <a href="<?php echo esc_url( 'https://srmilon.info/2019/03/31/how-to-add-google-map-in-sidebar-as-widget' ); ?>"
35
  target="_blank">How to
36
  add Google Map in Sidebar as widget?</a>
37
  </li>
38
  <li>
39
+ <a href="<?php echo esc_url( 'https://srmilon.info/2019/03/31/can-not-load-the-map-correctly' ); ?>"
40
  target="_blank">Do you see "the page
41
  can\'t load the map correctly"?</a>
42
  </li>
includes/wpgmap_settings.php CHANGED
@@ -4,42 +4,143 @@ if ( ! defined( 'ABSPATH' ) ) {
4
  }
5
  ?>
6
  <div data-columns="8">
7
- <!-- to save api key-->
8
- <div class="wpgmapembed_get_api_key">
9
- <div class="error">
10
- <p style="font-size:17px;">
11
- <strong><?php _e( 'Notice: The plugin requires following API key.', 'gmap-embed' ); ?></strong></p>
12
- <form method="post" action="<?php echo admin_url(); ?>admin.php?page=wpgmapembed&message=3">
13
-
14
- <p><?php _e( 'Enter API Key', 'gmap-embed' ); ?> <input type="text" name="wpgmapembed_key"
15
- value="<?php echo esc_html( get_option( 'wpgmap_api_key' ) ); ?>"
16
- size="45">
17
- <button class="wd-btn wd-btn-primary button media-button button-primary"><?php _e( 'Save', 'gmap-embed' ); ?></button>
18
 
19
- <a target="_blank"
20
- href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,places_backend,geolocation,geocoding_backend,directions_backend&amp;keyType=CLIENT_SIDE&amp;reusekey=true"
21
- class="button media-button button-default button-large"><?php _e( 'GET FREE API KEY', 'gmap-embed' ); ?></a>
22
- <br/><?php _e( 'The API key may take up to 5 minutes to take effect', 'gmap-embed' ); ?>
23
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  </form>
25
 
26
  <form method="post" action="<?php echo admin_url(); ?>admin.php?page=wpgmapembed&message=4">
27
- <p><?php _e( 'License Key: ', 'gmap-embed' ); ?> <input type="text" name="wpgmapembed_license"
28
- value="<?php echo esc_html( get_option( 'wpgmapembed_license' ) ); ?>"
29
- size="45">
30
- <button class="wd-btn wd-btn-primary button media-button button-primary"><?php _e( 'Save', 'gmap-embed' ); ?></button>
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
- <?php
33
- if ( strlen( trim( get_option( 'wpgmapembed_license' ) ) ) !== 32 ) { ?>
34
- <a target="_blank"
35
- href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZBERRKARGNEYA"
36
- class="button media-button button-default button-large"><?php _e( 'GET LICENSE KEY', 'gmap-embed' ); ?></a>
37
  <?php
38
- }
39
- ?>
40
- </p>
 
 
 
 
 
 
41
  </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  </div>
45
  </div>
4
  }
5
  ?>
6
  <div data-columns="8">
7
+ <div class="wpgmapembed_get_api_key" style="padding: 17px;background-color: #f1f1f1;margin: 17px;width: 50%;">
8
+ <span style="font-size: 23px;font-weight: 400;margin: 0;padding: 9px 0 4px 0;line-height: 1.3;">API Key and License Information</span>
9
+ <hr/>
10
+ <table class="form-table" role="presentation">
 
 
 
 
 
 
 
11
 
12
+ <tbody>
13
+ <form method="post" action="<?php echo admin_url(); ?>admin.php?page=wpgmapembed&message=3">
14
+ <tr>
15
+ <th scope="row">
16
+ <label for="blogname">
17
+ <?php _e( 'Enter API Key: ', 'gmap-embed' ); ?>
18
+ </label>
19
+ </th>
20
+ <td scope="row">
21
+ <input type="text" name="wpgmapembed_key"
22
+ value="<?php echo esc_html( get_option( 'wpgmap_api_key' ) ); ?>"
23
+ size="45" class="regular-text"/>
24
+ <p class="description" id="tagline-description">
25
+ <?php _e( 'The API key may take up to 5 minutes to take effect', 'gmap-embed' ); ?>
26
+ </p>
27
+ </td>
28
+ <td width="30%" style="vertical-align: top;">
29
+ <button class="wd-btn wd-btn-primary button media-button button-primary"><?php _e( 'Save', 'gmap-embed' ); ?></button>
30
+ <a target="_blank" style="margin-left: 5px;" href="
31
+ <?php echo esc_url( 'https://console.developers.google.com/flows/enableapi?apiid=maps_backend,places_backend,geolocation,geocoding_backend,directions_backend&amp;keyType=CLIENT_SIDE&amp;reusekey=true' ); ?>"
32
+ class="button media-button button-default button-large">
33
+ <?php _e( 'GET FREE API KEY', 'gmap-embed' ); ?>
34
+ </a>
35
+ </td>
36
+ </tr>
37
  </form>
38
 
39
  <form method="post" action="<?php echo admin_url(); ?>admin.php?page=wpgmapembed&message=4">
40
+ <tr>
41
+ <th scope="row">
42
+ <label for="blogname">
43
+ <?php _e( 'License Key: ', 'gmap-embed' ); ?>
44
+ </label>
45
+ </th>
46
+ <td scope="row">
47
+ <input type="text" name="wpgmapembed_license"
48
+ value="<?php echo esc_html( get_option( 'wpgmapembed_license' ) ); ?>"
49
+ size="45" class="regular-text"/>
50
+ <p class="description" id="tagline-description">
51
+ <?php _e( 'After payment you will get an email with license key', 'gmap-embed' ); ?>
52
+ </p>
53
+ </td>
54
+ <td width="30%" style="vertical-align: top;">
55
+ <button class="wd-btn wd-btn-primary button media-button button-primary"><?php _e( 'Save', 'gmap-embed' ); ?></button>
56
 
 
 
 
 
 
57
  <?php
58
+ if ( strlen( trim( get_option( 'wpgmapembed_license' ) ) ) !== 32 ) { ?>
59
+ <a target="_blank"
60
+ href="<?php echo esc_url( 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZBERRKARGNEYA' ); ?>"
61
+ class="button media-button button-default button-large"><?php _e( 'GET LICENSE KEY', 'gmap-embed' ); ?></a>
62
+ <?php
63
+ }
64
+ ?>
65
+ </td>
66
+ </tr>
67
  </form>
68
+ </tbody>
69
+ </table>
70
+ </div>
71
+ </div>
72
+
73
+ <div data-columns="8">
74
+ <div class="wpgmapembed_get_api_key" style="padding: 17px;background-color: #f1f1f1;margin: 17px;width: 50%;">
75
+ <span style="font-size: 23px;font-weight: 400;margin: 0;padding: 9px 0 4px 0;line-height: 1.3;">Map Language and Regional Settings</span>>
76
+ <hr/>
77
+ <table class="form-table" role="presentation">
78
+
79
+ <tbody>
80
+ <form method="post" action="<?php echo admin_url(); ?>admin.php?page=wpgmapembed&message=4">
81
+ <tr>
82
+ <th scope="row">
83
+ <label for="blogname">
84
+ <?php _e( 'Map Language: ', 'gmap-embed' ); ?>
85
+ </label>
86
+ </th>
87
+ <td scope="row">
88
+ <select id="language" name="srm_gmap_lng" class="regular-text" style="width: 25em">
89
+ <?php
90
+ $wpgmap_languages = gmap_embed_get_languages();
91
+ if ( count( $wpgmap_languages ) > 0 ) {
92
+ foreach ( $wpgmap_languages as $lng_key => $language ) {
93
+ $selected = '';
94
+ if ( get_option( 'srm_gmap_lng', 'en' ) == $lng_key ) {
95
+ $selected = 'selected';
96
+ }
97
+ echo "<option value='$lng_key' $selected>$language</option>";
98
+ }
99
+ }
100
+ ?>
101
+ </select>
102
+ <p class="description" id="tagline-description">
103
+ <?php _e( 'Chose your desired map language', 'gmap-embed' ); ?>
104
+ </p>
105
+ </td>
106
+ </tr>
107
 
108
+ <tr>
109
+ <th scope="row">
110
+ <label for="blogname">
111
+ <?php _e( 'Map Region: ', 'gmap-embed' ); ?>
112
+ </label>
113
+ </th>
114
+ <td scope="row">
115
+ <select id="region" name="srm_gmap_region" class="regular-text" style="width: 25em">
116
+ <?php
117
+ $wpgmap_regions = gmap_embed_get_regions();
118
+ if ( count( $wpgmap_regions ) > 0 ) {
119
+ foreach ( $wpgmap_regions as $region_key => $region ) {
120
+ $selected = '';
121
+ if ( get_option( 'srm_gmap_region', 'US' ) == $region_key ) {
122
+ $selected = 'selected';
123
+ }
124
+ echo "<option value='$region_key' $selected>$region</option>";
125
+ }
126
+ }
127
+ ?>
128
+
129
+ </select>
130
+ <p class="description" id="tagline-description">
131
+ <?php _e( 'Chose your regional area', 'gmap-embed' ); ?>
132
+ </p>
133
+ </td>
134
+ </tr>
135
+ <tr>
136
+ <td></td>
137
+ <td>
138
+ <button name="srm_gmap_map_language_settings"
139
+ class="wd-btn wd-btn-primary button media-button button-primary"><?php _e( 'Update', 'gmap-embed' ); ?></button>
140
+ </td>
141
+ </tr>
142
+ </form>
143
+ </tbody>
144
+ </table>
145
  </div>
146
  </div>
languages/gmap-embed-da_DK.po CHANGED
@@ -95,8 +95,8 @@ msgstr ""
95
  #. Plugin URI of the plugin/theme
96
  #. #-#-#-#-# gmap-embed-code.pot (Google Map Embed 1.3.0) #-#-#-#-#
97
  #. Author URI of the plugin/theme
98
- msgid "http://www.srmilon.info"
99
- msgstr "http://www.srmilon.info"
100
 
101
  #. Plugin Name of the plugin/theme
102
  msgid "Google Map Embed"
95
  #. Plugin URI of the plugin/theme
96
  #. #-#-#-#-# gmap-embed-code.pot (Google Map Embed 1.3.0) #-#-#-#-#
97
  #. Author URI of the plugin/theme
98
+ msgid "https://www.srmilon.info"
99
+ msgstr "https://www.srmilon.info"
100
 
101
  #. Plugin Name of the plugin/theme
102
  msgid "Google Map Embed"
languages/gmap-embed-de_DE.po CHANGED
@@ -135,8 +135,8 @@ msgstr "Breitengrad, Längengrad"
135
  #. Plugin URI of the plugin/theme
136
  #. #-#-#-#-# gmap-embed-code.pot (Google Map Embed 1.2.5) #-#-#-#-#
137
  #. Author URI of the plugin/theme
138
- msgid "http://www.srmilon.info"
139
- msgstr "http://www.srmilon.info"
140
 
141
  #: includes/wpgmap_create.php:63 includes/wpgmap_edit.php:73
142
  msgid "Height (px)"
135
  #. Plugin URI of the plugin/theme
136
  #. #-#-#-#-# gmap-embed-code.pot (Google Map Embed 1.2.5) #-#-#-#-#
137
  #. Author URI of the plugin/theme
138
+ msgid "https://www.srmilon.info"
139
+ msgstr "https://www.srmilon.info"
140
 
141
  #: includes/wpgmap_create.php:63 includes/wpgmap_edit.php:73
142
  msgid "Height (px)"
languages/gmap-embed-de_DE_formal.po CHANGED
@@ -95,8 +95,8 @@ msgstr "Einstellungen"
95
  #. Plugin URI of the plugin/theme
96
  #. #-#-#-#-# gmap-embed-code.pot (Google Map Embed 1.2.5) #-#-#-#-#
97
  #. Author URI of the plugin/theme
98
- msgid "http://www.srmilon.info"
99
- msgstr "http://www.srmilon.info"
100
 
101
  #: includes/wpgmap_create.php:63 includes/wpgmap_edit.php:73
102
  msgid "Height (px)"
95
  #. Plugin URI of the plugin/theme
96
  #. #-#-#-#-# gmap-embed-code.pot (Google Map Embed 1.2.5) #-#-#-#-#
97
  #. Author URI of the plugin/theme
98
+ msgid "https://www.srmilon.info"
99
+ msgstr "https://www.srmilon.info"
100
 
101
  #: includes/wpgmap_create.php:63 includes/wpgmap_edit.php:73
102
  msgid "Height (px)"
languages/gmap-embed-es_ES.po CHANGED
@@ -83,8 +83,8 @@ msgstr "El plugin te ayudará a insertar mapas de Google en entradas, páginas y
83
  #. Plugin URI of the plugin/theme
84
  #. #-#-#-#-# gmap-embed-code.pot (Google Map Embed 1.3.7) #-#-#-#-#
85
  #. Author URI of the plugin/theme
86
- msgid "http://www.srmilon.com"
87
- msgstr "http://www.srmilon.com"
88
 
89
  #. Plugin Name of the plugin/theme
90
  msgid "Google Map Embed"
83
  #. Plugin URI of the plugin/theme
84
  #. #-#-#-#-# gmap-embed-code.pot (Google Map Embed 1.3.7) #-#-#-#-#
85
  #. Author URI of the plugin/theme
86
+ msgid "https://www.srmilon.com"
87
+ msgstr "https://www.srmilon.com"
88
 
89
  #. Plugin Name of the plugin/theme
90
  msgid "Google Map Embed"
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.4
7
- Version: 1.6.3
8
  Requires PHP: 5.3
9
  Text Domain: gmap-embed
10
  License: GPLv2 or later
@@ -52,7 +52,7 @@ https://www.youtube.com/watch?v=Nh2z_oRK-RM
52
  * **You can set any width and width as you need**
53
  * **It is most helpful for WordPress website to embed google map**
54
 
55
- ### Features of WP Google Map Plugin-Lite version(PREMIUM):
56
 
57
  * **Direction Support with Map.**
58
  * **Ability to change Latitude, Longitude, Address by Dragging Marker**
@@ -61,6 +61,7 @@ https://www.youtube.com/watch?v=Nh2z_oRK-RM
61
  * **You can add multiple maps in any page or post if you need!**
62
  * **Map full screen functionality**
63
  * **Ability to create Map as much as you need!**
 
64
 
65
  ### USE AS SHORTCODE IN POST, PAGE, AND SIDEBAR.
66
  `[gmap-embed id="<Your map ID>"]`
@@ -135,6 +136,12 @@ See the [Video](https://www.youtube.com/watch?v=Nh2z_oRK-RM) ,hope you will get
135
 
136
  == Changelog ==
137
 
 
 
 
 
 
 
138
  = 1.6.3 =
139
  Exception handled for warning message, security enhanced, review giving option added.
140
 
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.4
7
+ Version: 1.6.4
8
  Requires PHP: 5.3
9
  Text Domain: gmap-embed
10
  License: GPLv2 or later
52
  * **You can set any width and width as you need**
53
  * **It is most helpful for WordPress website to embed google map**
54
 
55
+ ### Features of WP Google Map Plugin(PREMIUM):
56
 
57
  * **Direction Support with Map.**
58
  * **Ability to change Latitude, Longitude, Address by Dragging Marker**
61
  * **You can add multiple maps in any page or post if you need!**
62
  * **Map full screen functionality**
63
  * **Ability to create Map as much as you need!**
64
+ * **Ability to change Map Language and Regional Area!**
65
 
66
  ### USE AS SHORTCODE IN POST, PAGE, AND SIDEBAR.
67
  `[gmap-embed id="<Your map ID>"]`
136
 
137
  == Changelog ==
138
 
139
+ = 1.6.4 =
140
+ * Map language and Region customization option added.
141
+ * Form and field level security enhanced.
142
+ * Secured domain added for mail and verification process.
143
+ * Support contact mail issue fixed.
144
+
145
  = 1.6.3 =
146
  Exception handled for warning message, security enhanced, review giving option added.
147
 
srm_gmap_embed.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /*
3
  Plugin Name: Google Map Embed
4
- Plugin URI: http://www.srmilon.info
5
  Description: The plugin will help to embed Google Map in post and pages also in sidebar as widget.
6
  Author: srmilon.info
7
  Text Domain: gmap-embed
8
  Domain Path: /languages
9
- Author URI: http://www.srmilon.info
10
- Version: 1.6.3
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
@@ -40,7 +40,7 @@ if ( ! class_exists( 'srm_gmap_embed_main' ) ) {
40
  add_action( 'wp_ajax_wpgmapembed_popup_load_map_data', array( $this, 'load_popup_wpgmapembed_list' ) );
41
  add_action( 'wp_ajax_wpgmapembed_get_wpgmap_data', array( $this, 'get_wpgmapembed_data' ) );
42
  add_action( 'wp_ajax_wpgmapembed_remove_wpgmap', array( $this, 'remove_wpgmapembed_data' ) );
43
- add_action( 'admin_notices', array( $this, 'gmap_embed_notice_for_review' ) );
44
 
45
  }
46
 
@@ -54,13 +54,17 @@ if ( ! class_exists( 'srm_gmap_embed_main' ) ) {
54
  */
55
  public function gmap_enqueue_scripts() {
56
  //including map library
57
- wp_enqueue_script( 'srm_gmap_api', 'https://maps.googleapis.com/maps/api/js?key=' . $this->wpgmap_api_key . '&libraries=places', array( 'jquery' ) );
 
 
58
  }
59
 
60
  function enqueue_admin_gmap_scripts() {
61
  global $pagenow;
62
  if ( $pagenow == 'post.php' || $pagenow == 'post-new.php' || ( isset( $_GET['page'] ) and $_GET['page'] == 'wpgmapembed' ) ) {
63
- wp_enqueue_script( 'wp-gmap-api', 'https://maps.google.com/maps/api/js?key=' . $this->wpgmap_api_key . '&libraries=places', array( 'jquery' ), '20161019', true );
 
 
64
  wp_enqueue_script( 'wp-gmap-custom-js', plugins_url( 'assets/js/custom.js', __FILE__ ), array( 'wp-gmap-api' ), '20161019', false );
65
  wp_enqueue_style( 'wp-gmap-embed-css', plugins_url( 'assets/css/wp-gmap-style.css', __FILE__ ), rand( 999, 9999 ) );
66
 
@@ -223,16 +227,19 @@ if ( ! class_exists( 'srm_gmap_embed_main' ) ) {
223
  </div>';
224
  }
225
  } else {
226
- $content = __( "You have not created any Map yet. ", "gmap-embed" );
227
- $content .= '<a style="padding: 9px;border-radius: 5px;background-color: #0073aa;color: white;text-decoration: none;font-weight: bold;font-size: 11px;" href="' . esc_url( admin_url() ) . 'admin.php?page=wpgmapembed&amp;tag=new"
228
- data-id="wp-gmap-new" class="media-menu-item">' . __( "Create New Map", "gmap-embed" ) . '</a>';
229
- $content .= '<br/><br/><div class="srm_gmap_instructions">
230
- <h3>Frequently asked questions</h3>
231
- ';
232
  ob_start();
 
 
 
 
 
 
 
 
 
233
  require_once( plugin_dir_path( __FILE__ ) . 'includes/wpgmap_faqs.php' );
234
- $content .= ob_get_clean();
235
- $content .= '</div>';
236
  }
237
 
238
  echo $content;
@@ -376,20 +383,16 @@ if ( ! class_exists( 'srm_gmap_embed_main' ) ) {
376
  return $link . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
377
  }
378
 
379
- function gmap_embed_notice_for_review() {
380
 
381
- // // testing cases
382
- // update_option( 'gmap_embed_activation_time', time() - 30 * 24 * 3600 );
383
- // update_option( 'gmap_embed_is_review_snoozed', false );
384
- //// update_option( 'gmap_embed_review_snoozed_at', time()-90*24*3600 );
385
- // update_option( 'gmap_embed_is_review_done', false );
386
-
387
- // In case of existing installation
388
- // if ( get_option( 'gmap_embed_activation_time', false ) == false ) {
389
- // update_option( 'gmap_embed_activation_time', time() );
390
- // }
391
 
 
 
 
392
 
 
393
  $gmap_embed_activation_time = get_option( 'gmap_embed_activation_time', false );
394
  $seconds_diff = time() - $gmap_embed_activation_time;
395
  $passed_days = ( $seconds_diff / 3600 ) / 24;
@@ -399,12 +402,11 @@ if ( ! class_exists( 'srm_gmap_embed_main' ) ) {
399
  $snoozed_before = ( $seconds_diff / 3600 ) / 24;
400
  $gmap_embed_is_review_done = get_option( 'gmap_embed_is_review_done' );
401
 
402
-
403
  if ( $gmap_embed_is_review_done == false and ( ( $passed_days >= 30 and $gmap_embed_is_review_snoozed == false ) or ( $gmap_embed_is_review_snoozed == true and $snoozed_before >= 7 ) ) ) {
404
  $redirect_url = esc_url( $this->gmap_embed_get_full_uri() );
405
  ?>
406
  <div class="notice notice-success is-dismissible">
407
- <p><?php _e( '<b style="color:green;">Hey, We noticed that you have successfully crossed <b>30+ day\'s</b> of using <a target="_blank" href="https://wordpress.org/plugins/gmap-embed"> <b style="color:#007cba">Google Map SRM plugin</b></a>.
408
  Could you please give us a BIG favour and give it a 5-star rating on Wordpress?<br/>
409
  Just to help us spread the word and boost our motivation.!<br/>- <i>SRMILON</i></b>
410
  <ul style="list-style: circle;padding-left: 25px;">
@@ -418,6 +420,16 @@ Just to help us spread the word and boost our motivation.!<br/>- <i>SRMILON</i><
418
  }
419
  }
420
 
 
 
 
 
 
 
 
 
 
 
421
 
422
  }
423
 
1
  <?php
2
  /*
3
  Plugin Name: Google Map Embed
4
+ Plugin URI: https://www.srmilon.info
5
  Description: The plugin will help to embed Google Map in post and pages also in sidebar as widget.
6
  Author: srmilon.info
7
  Text Domain: gmap-embed
8
  Domain Path: /languages
9
+ Author URI: https://www.srmilon.info
10
+ Version: 1.6.4
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
40
  add_action( 'wp_ajax_wpgmapembed_popup_load_map_data', array( $this, 'load_popup_wpgmapembed_list' ) );
41
  add_action( 'wp_ajax_wpgmapembed_get_wpgmap_data', array( $this, 'get_wpgmapembed_data' ) );
42
  add_action( 'wp_ajax_wpgmapembed_remove_wpgmap', array( $this, 'remove_wpgmapembed_data' ) );
43
+ add_action( 'admin_notices', array( $this, 'gmap_embed_notice_generate' ) );
44
 
45
  }
46
 
54
  */
55
  public function gmap_enqueue_scripts() {
56
  //including map library
57
+ $srm_gmap_lng = get_option( 'srm_gmap_lng', 'en' );
58
+ $srm_gmap_region = get_option( 'srm_gmap_region', 'US' );
59
+ wp_enqueue_script( 'srm_gmap_api', 'https://maps.googleapis.com/maps/api/js?key=' . $this->wpgmap_api_key . '&libraries=places&language=' . $srm_gmap_lng . '&region=' . $srm_gmap_region, array( 'jquery' ) );
60
  }
61
 
62
  function enqueue_admin_gmap_scripts() {
63
  global $pagenow;
64
  if ( $pagenow == 'post.php' || $pagenow == 'post-new.php' || ( isset( $_GET['page'] ) and $_GET['page'] == 'wpgmapembed' ) ) {
65
+ $srm_gmap_lng = get_option( 'srm_gmap_lng', 'en' );
66
+ $srm_gmap_region = get_option( 'srm_gmap_region', 'US' );
67
+ wp_enqueue_script( 'wp-gmap-api', 'https://maps.google.com/maps/api/js?key=' . $this->wpgmap_api_key . '&libraries=places&language=' . $srm_gmap_lng . '&region=' . $srm_gmap_region, array( 'jquery' ), '20200506', true );
68
  wp_enqueue_script( 'wp-gmap-custom-js', plugins_url( 'assets/js/custom.js', __FILE__ ), array( 'wp-gmap-api' ), '20161019', false );
69
  wp_enqueue_style( 'wp-gmap-embed-css', plugins_url( 'assets/css/wp-gmap-style.css', __FILE__ ), rand( 999, 9999 ) );
70
 
227
  </div>';
228
  }
229
  } else {
 
 
 
 
 
 
230
  ob_start();
231
+ ?>
232
+ <a style="padding: 9px;margin-left:100px;border-radius: 5px;background-color: #0073aa;color: white;text-decoration: none;font-weight: bold;font-size: 11px;" href="<?php echo esc_url( admin_url() ) . 'admin.php?page=wpgmapembed&amp;tag=new'; ?>"
233
+ data-id="wp-gmap-new" class="media-menu-item">
234
+ <i class="dashicons dashicons-plus" ></i>
235
+ <?php echo __( "Create Your First Map", "gmap-embed" ); ?>
236
+ </a>
237
+ <br/><br/><div class="srm_gmap_instructions">
238
+ <h3>Frequently asked questions</h3>
239
+ <?php
240
  require_once( plugin_dir_path( __FILE__ ) . 'includes/wpgmap_faqs.php' );
241
+ echo '</div>';
242
+ $content .= ob_get_clean();
243
  }
244
 
245
  echo $content;
383
  return $link . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
384
  }
385
 
386
+ function gmap_embed_notice_generate() {
387
 
388
+ // Generating admin notice for review after one month
389
+ $this->gmap_embed_generate_admin_review_notice();
 
 
 
 
 
 
 
 
390
 
391
+ // Generate new feature admin notice
392
+ $this->gmap_embed_new_feature_admin_notice();
393
+ }
394
 
395
+ private function gmap_embed_generate_admin_review_notice(){
396
  $gmap_embed_activation_time = get_option( 'gmap_embed_activation_time', false );
397
  $seconds_diff = time() - $gmap_embed_activation_time;
398
  $passed_days = ( $seconds_diff / 3600 ) / 24;
402
  $snoozed_before = ( $seconds_diff / 3600 ) / 24;
403
  $gmap_embed_is_review_done = get_option( 'gmap_embed_is_review_done' );
404
 
 
405
  if ( $gmap_embed_is_review_done == false and ( ( $passed_days >= 30 and $gmap_embed_is_review_snoozed == false ) or ( $gmap_embed_is_review_snoozed == true and $snoozed_before >= 7 ) ) ) {
406
  $redirect_url = esc_url( $this->gmap_embed_get_full_uri() );
407
  ?>
408
  <div class="notice notice-success is-dismissible">
409
+ <p><?php _e( '<b style="color:green;">Hey, We noticed that you have successfully crossed <b>30+ day\'s</b> of using <a target="_blank" href="' . esc_url( 'https://wordpress.org/plugins/gmap-embed' ) . '"> <b style="color:#007cba">Google Map SRM plugin</b></a>.
410
  Could you please give us a BIG favour and give it a 5-star rating on Wordpress?<br/>
411
  Just to help us spread the word and boost our motivation.!<br/>- <i>SRMILON</i></b>
412
  <ul style="list-style: circle;padding-left: 25px;">
420
  }
421
  }
422
 
423
+ private function gmap_embed_new_feature_admin_notice(){
424
+ if(get_option('srm_gmap_lng')==false){
425
+
426
+ ?>
427
+ <div class="notice notice-success is-dismissible">
428
+ <p style="font-weight: bold;color: green;">We are happy to announce that, Now you can customize your Map Language and Map Regional settings. Go to <a href="<?php echo esc_url( admin_url() . 'admin.php?page=wpgmapembed&tag=settings' ); ?>">Settings</a> tab to change your map settings.</p>
429
+ </div>
430
+ <?php
431
+ }
432
+ }
433
 
434
  }
435