Google Maps Easy - Version 1.11.6

Version Description

Download this release

Release Info

Developer supsystic.com
Plugin Icon 128x128 Google Maps Easy
Version 1.11.6
Comparing to
See all releases

Code changes from version 1.11.5 to 1.11.6

Files changed (37) hide show
  1. classes/frame.php +1 -1
  2. classes/view.php +2 -2
  3. config.php +1 -1
  4. css/acPromoStyle.css +420 -0
  5. css/supsystic-ui.css +3 -0
  6. gmp.php +1 -1
  7. js/acPromoScript.js +139 -0
  8. js/admin.options.js +5 -0
  9. modules/adminmenu/mod.php +13 -14
  10. modules/options/views/tpl/optionsAdminPage.php +6 -1
  11. modules/supsystic_promo/controller.php +43 -4
  12. modules/supsystic_promo/img/256.png +0 -0
  13. modules/supsystic_promo/img/Backup_256.png +0 -0
  14. modules/supsystic_promo/img/Coming_Soon_256.png +0 -0
  15. modules/supsystic_promo/img/Contact_Form_256.png +0 -0
  16. modules/supsystic_promo/img/Data_Tables_256.png +0 -0
  17. modules/supsystic_promo/img/Digital_Publication_256.png +0 -0
  18. modules/supsystic_promo/img/Gallery_256.png +0 -0
  19. modules/supsystic_promo/img/Google_Maps_256.png +0 -0
  20. modules/supsystic_promo/img/Live_Chat_256.png +0 -0
  21. modules/supsystic_promo/img/Popup_256.png +0 -0
  22. modules/supsystic_promo/img/Pricing_Table_256.png +0 -0
  23. modules/supsystic_promo/img/Slider_256.png +0 -0
  24. modules/supsystic_promo/img/Social_Buttons_256.png +0 -0
  25. modules/supsystic_promo/img/icon-256x256.png +0 -0
  26. modules/supsystic_promo/img/kinsta_banner.png +0 -0
  27. modules/supsystic_promo/img/overview-01.png +0 -0
  28. modules/supsystic_promo/img/overview-02.png +0 -0
  29. modules/supsystic_promo/img/overview-03.png +0 -0
  30. modules/supsystic_promo/img/plugin-icon.png +0 -0
  31. modules/supsystic_promo/img/supsystic-logo-small.png +0 -0
  32. modules/supsystic_promo/mod.php +32 -38
  33. modules/supsystic_promo/views/supsystic_promo.php +7 -38
  34. modules/supsystic_promo/views/tpl/adminFooter.php +32 -20
  35. modules/supsystic_promo/views/tpl/overviewTabContent.php +133 -106
  36. modules/templates/mod.php +23 -4
  37. readme.txt +5 -2
classes/frame.php CHANGED
@@ -447,7 +447,7 @@ class frameGmp {
447
  */
448
  public function isAdminPlugOptsPage() {
449
  $page = reqGmp::getVar('page');
450
- if(is_admin() && strpos($page, frameGmp::_()->getModule('adminmenu')->getMainSlug()) !== false)
451
  return true;
452
  return false;
453
  }
447
  */
448
  public function isAdminPlugOptsPage() {
449
  $page = reqGmp::getVar('page');
450
+ if(is_admin() && strpos((string)$page, frameGmp::_()->getModule('adminmenu')->getMainSlug()) !== false)
451
  return true;
452
  return false;
453
  }
classes/view.php CHANGED
@@ -61,7 +61,7 @@ abstract class viewGmp extends baseObjectGmp {
61
  $allowedHtml = wp_kses_allowed_html();
62
  $allowedDiv = array(
63
  'style' => array(),
64
- 'div' => array( 'data-slider-type' => 1, 'data-unit' => 1, 'data-unit' => 1, 'data-mapid' => 1, 'data-viewid' => 1, 'onclick' => 1, 'data-is-mobile' => 1, 'data-tab-link' => 1, 'data-tab-item' => 1, 'data-today' => 1, 'data-tabs-for' => 1, 'data-type' => 1, 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'title' => 1, 'id' => 1, 'data-tooltip-content' => 1,),
65
  'section' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'title' => 1, 'id' => 1,),
66
  'nav' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'title' => 1, 'id' => 1,),
67
  'small' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
@@ -79,7 +79,7 @@ abstract class viewGmp extends baseObjectGmp {
79
  'h6' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
80
  'ul' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
81
  'ol' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
82
- 'li' => array( 'data-key' => 1, 'data-id' => 1, 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
83
  'dl' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
84
  'dt' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
85
  'dd' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
61
  $allowedHtml = wp_kses_allowed_html();
62
  $allowedDiv = array(
63
  'style' => array(),
64
+ 'div' => array( 'data-section' => 1, 'data-slider-type' => 1, 'data-unit' => 1, 'data-unit' => 1, 'data-mapid' => 1, 'data-viewid' => 1, 'onclick' => 1, 'data-is-mobile' => 1, 'data-tab-link' => 1, 'data-tab-item' => 1, 'data-today' => 1, 'data-tabs-for' => 1, 'data-type' => 1, 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'title' => 1, 'id' => 1, 'data-tooltip-content' => 1,),
65
  'section' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'title' => 1, 'id' => 1,),
66
  'nav' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'title' => 1, 'id' => 1,),
67
  'small' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
79
  'h6' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
80
  'ul' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
81
  'ol' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
82
+ 'li' => array( 'data-section' => 1, 'data-key' => 1, 'data-id' => 1, 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
83
  'dl' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
84
  'dt' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
85
  'dd' => array( 'style' => 1, 'title' => 1, 'align' => 1, 'class' => 1, 'width' => 1, 'height' => 1, 'id' => 1,),
config.php CHANGED
@@ -49,7 +49,7 @@
49
  define('GMP_EOL', "\n");
50
 
51
  define('GMP_PLUGIN_INSTALLED', true);
52
- define('GMP_VERSION_PLUGIN', '1.11.5'); //GMP_VERSION is pre-defined constant for PHP GMP module http://php.net/manual/en/book.gmp.php
53
  define('GMP_USER', 'user');
54
 
55
  define('GMP_CLASS_PREFIX', 'gmpc');
49
  define('GMP_EOL', "\n");
50
 
51
  define('GMP_PLUGIN_INSTALLED', true);
52
+ define('GMP_VERSION_PLUGIN', '1.11.6'); //GMP_VERSION is pre-defined constant for PHP GMP module http://php.net/manual/en/book.gmp.php
53
  define('GMP_USER', 'user');
54
 
55
  define('GMP_CLASS_PREFIX', 'gmpc');
css/acPromoStyle.css ADDED
@@ -0,0 +1,420 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .supsystic-overview {
2
+ float: left;
3
+ background:white;
4
+ padding:10px;
5
+ }
6
+
7
+ .supsystic-overview .half-page-left {
8
+ float: left;
9
+ margin-left: 20px;
10
+ width: 50%;
11
+ border-right: 1px solid rgba(164, 170, 172, 0.28);
12
+ padding-right: 20px;
13
+ }
14
+
15
+ .supsystic-overview .half-page-right {
16
+ float: left;
17
+ margin:0 20px;
18
+ width: 40%;
19
+ }
20
+
21
+ .supsystic-overview .half-page > div {
22
+ border-bottom: 1px solid rgba(164, 170, 172, 0.28);
23
+ padding-bottom: 20px;
24
+ }
25
+
26
+ .supsystic-overview .half-page > div:last-child {
27
+ border-bottom: none;
28
+ }
29
+
30
+ .supsystic-overview .text-block {
31
+ margin: 10px 0;
32
+ }
33
+
34
+ .supsystic-overview .faq-title {
35
+ cursor: pointer;
36
+ }
37
+
38
+ .supsystic-overview .faq-title .description {
39
+ margin-top: 10px;
40
+ border: none !important;
41
+ }
42
+
43
+ .supsystic-overview .faq-title,
44
+ .supsystic-overview-news h3 {
45
+ padding: 10px 20px;
46
+ margin-bottom: 4px;
47
+ background-color: rgba(164, 170, 172, 0.28);
48
+ }
49
+
50
+ .supsystic-overview .supsystic-overview-news h3 {
51
+ line-height: 2;
52
+ }
53
+
54
+ .supsystic-overview .button {
55
+ float: right;
56
+ margin-top: 24px;
57
+ display: block;
58
+ }
59
+
60
+ .supsystic-overview .faq-list .button.button-primary.button-hero{
61
+ float: left;
62
+ margin-left: 10px;
63
+ }
64
+
65
+ .supsystic-overview .settings-title {
66
+ font-size: 14px;
67
+ font-weight: 600;
68
+ display: inline-block;
69
+ margin-right: 5px;
70
+ }
71
+
72
+ .supsystic-overview .supsystic-overview-news {
73
+ margin-right: 10px;
74
+ }
75
+
76
+ .supsystic-overview .supsystic-overview-news p,
77
+ .supsystic-overview .supsystic-overview-news ul {
78
+ white-space: normal !important;
79
+ margin:0 8px;
80
+ }
81
+
82
+ .supsystic-overview .supsystic-overview-news p {
83
+ font-size: 14px;
84
+ font-weight: 600;
85
+ }
86
+
87
+ .supsystic-overview .supsystic-overview-news ul {
88
+ list-style-type: disc;
89
+ }
90
+
91
+ .supsystic-overview .supsystic-overview-news li {
92
+ margin-left: 20px;
93
+ }
94
+
95
+ .supsystic-overview form {
96
+ border: none !important;
97
+ margin-top: 20px;
98
+ text-align: center;
99
+ }
100
+
101
+ .supsystic-overview form label {
102
+ float: left;
103
+ font-size: 18px;
104
+ font-weight: 800;
105
+ margin-top: 10px;
106
+ white-space: nowrap;
107
+ }
108
+
109
+ .supsystic-overview form input,
110
+ .supsystic-overview form select,
111
+ .supsystic-overview form textarea {
112
+ float: left;
113
+ margin-left: 50px;
114
+ width: calc(100% - 50px);
115
+ }
116
+
117
+ #contact-form-dialog p {
118
+ font-size: 15px;
119
+ }
120
+ #contact-form-dialog a {
121
+ color: #4ae8ea;
122
+ }
123
+ #contact-form-dialog a:focus {
124
+ outline: none;
125
+ }
126
+
127
+ .supsystic-overview .half-page > div {
128
+ border-bottom:0px;
129
+ padding-bottom:inherit;
130
+ }
131
+ .overview-section {
132
+ display:none;
133
+ }
134
+ .overview-section-btn {
135
+ list-style:square;
136
+ cursor:pointer;
137
+ margin-left:20px;
138
+ }
139
+ .overview-section-btn:hover {
140
+ color: #4ae8ea;
141
+ }
142
+ .border-wrapper {
143
+ display:block;
144
+ position:relative;
145
+ border:1px solid rgba(164, 170, 172, 0.28) !important;
146
+ padding:30px;
147
+ padding-top:0px;
148
+ margin-bottom:20px;
149
+ border-left: 3px solid #4ae8ea !important;
150
+ }
151
+ .border-wrapper .button-hero {
152
+ margin-bottom:30px;
153
+ line-height:auto !important;
154
+ padding:0px 10px !important;
155
+ margin:10px 4px !important;
156
+ }
157
+ .overview-section-btn-active {
158
+ color: #4ae8ea;
159
+ font-weight:bold;
160
+ }
161
+ .overview-contact-form form {
162
+ margin:0px !important;
163
+ padding:0px !important;
164
+ }
165
+ .overview-contact-form input,
166
+ .overview-contact-form select,
167
+ .overview-contact-form textarea {
168
+ display:block;
169
+ position:relative;
170
+ width:100%;
171
+ max-width:100% !important;
172
+ background-color: #f6f7f7;
173
+ color: #252728;
174
+ border: 1px solid #dfe4e4;
175
+ outline:0px;
176
+ }
177
+ .overview-contact-form #form-settings {
178
+ height:auto;
179
+ }
180
+ .overview-section-btn a {
181
+ text-decoration:none;
182
+ color: #3c434a !important;
183
+ }
184
+ .overview-section-btn a:hover {
185
+ color: #4ae8ea !important;
186
+ }
187
+ .overview-section h3 {
188
+ border-bottom:1px solid rgba(164, 170, 172, 0.28) !important;
189
+ padding-bottom:.5em;
190
+ margin-bottom:.5em;
191
+ }
192
+ .contact-info-section {
193
+ border: 1px solid rgba(164, 170, 172, 0.28) !important;
194
+ padding: 5px;
195
+ }
196
+ .contact-info-section p {
197
+ font-size:12px;
198
+ white-space: inherit;
199
+ line-height: 18px;
200
+ }
201
+ .contact-info-section ul {
202
+ margin:0px;
203
+ }
204
+ .contact-info-section ul li {
205
+ padding-left:5px;
206
+ line-height: 18px;
207
+ margin:0px;
208
+ padding:0px;
209
+ }
210
+ .contact-info-section {
211
+ margin-bottom:20px;
212
+ }
213
+ .overview-section-btn sup {
214
+ font-size:10px !important;
215
+ line-height:0px;
216
+ }
217
+ .plugin-title {
218
+ display: flex;
219
+ position: relative;
220
+ flex-direction: row;
221
+ align-content: center;
222
+ flex-wrap: nowrap;
223
+ align-items: center;
224
+ font-size:24px;
225
+ color:#313846;
226
+ font-weight:bold;
227
+ margin-bottom:10px;
228
+ }
229
+ .plugin-title img {
230
+ padding-right:15px;
231
+ }
232
+ .plugin-description {
233
+ margin-bottom:20px;
234
+ }
235
+ .supsystic-overview-flex {
236
+ display: flex;
237
+ position: relative;
238
+ flex-direction: row;
239
+ flex-wrap: nowrap;
240
+ align-content: center;
241
+ align-items: stretch;
242
+ justify-content: space-between;
243
+ }
244
+ .half-page {
245
+ display:inline-block;
246
+ position:relative;
247
+ width:49% !important;
248
+ float:inherit !important;
249
+ margin:0px !important;
250
+ padding:0px !important;
251
+ border:0px !important;
252
+ }
253
+ .full-page {
254
+ width:98%;
255
+ }
256
+ .overview-supsystic-img {
257
+ max-width:770px;
258
+ width:100%;
259
+ }
260
+ @media (max-width:1100px) {
261
+ .supsystic-overview-flex {
262
+ flex-direction: column;
263
+ }
264
+ .half-page {
265
+ width: 100% !important;
266
+ }
267
+ .full-page {
268
+ width:100%;
269
+ }
270
+ }
271
+
272
+ .supsysticOverviewACTitle {
273
+ background:#2a3545;
274
+ color:white;
275
+ font-size:14px;
276
+ padding:10px 0px;
277
+ text-align:center;
278
+ margin-bottom:10px;
279
+ width:100%;
280
+ }
281
+ .supsysticOverviewACForm input {
282
+ width:94%;
283
+ text-align:center;
284
+ }
285
+ .supsysticOverviewACForm button, .supsysticOverviewACBtn {
286
+ display:block;
287
+ position:relative;
288
+ width:94%;
289
+ margin:0px;
290
+ padding:0px;
291
+ text-align:center;
292
+ margin-top:10px !important;
293
+ }
294
+ .supsysticOverviewACFormOverlay {
295
+ display:none;
296
+ position:absolute;
297
+ left:0px;
298
+ top:0px;
299
+ width:100%;
300
+ height:100%;
301
+ background: rgb(223 223 223 / 80%);
302
+ z-index:99;
303
+ }
304
+ #overview-ac-form {
305
+ position: relative;
306
+ display: flex;
307
+ flex-direction: column;
308
+ flex-wrap: nowrap;
309
+ align-content: center;
310
+ align-items: center;
311
+ justify-content: flex-start;
312
+ background:white;
313
+ box-shadow: 0px 3px 9px 0px #919191cf;
314
+ margin:30px auto;
315
+ width: 100%;
316
+ max-width: 300px;
317
+ padding-bottom:20px;
318
+ }
319
+ .supsystic-footer-wrapper {
320
+ display: flex;
321
+ position: relative;
322
+ background: #263546;
323
+ color: white;
324
+ padding: 10px;
325
+ flex-direction: row;
326
+ flex-wrap: nowrap;
327
+ align-content: center;
328
+ justify-content: space-between;
329
+ align-items: center;
330
+ margin-left:75px;
331
+ }
332
+ .supsystic-panel {
333
+ margin-bottom:0px;
334
+ }
335
+ .supsystic-breadcrumbs {
336
+ background: #263546;
337
+ color: white;
338
+ margin-left: 75px;
339
+ padding: 10px;
340
+ }
341
+ .supsystic-breadcrumbs * {
342
+ color: white !important;
343
+ }
344
+ .supsysticOverviewACFormNotification {
345
+ display:none;
346
+ }
347
+ .supsysticOverviewACFormNotification,
348
+ .required-notification {
349
+ margin-top:10px;
350
+ }
351
+ .supsysticOverviewACClose {
352
+ display:inline-block;
353
+ position:absolute;
354
+ right:-7.5px;
355
+ top:-7.5px;
356
+ background:#4ae8ea !important;
357
+ border-radius:50%;
358
+ text-align:center;
359
+ font-size:18px;
360
+ width:21px;
361
+ height:21px;
362
+ cursor:pointer;
363
+ z-index:99;
364
+ text-shadow: 0px 1px 2px black;
365
+ }
366
+ #form-settings .contact-form-table {
367
+ width:100%;
368
+ }
369
+ .wp-core-ui .supsysticOverviewACFormOverlay .button.button-hero,
370
+ div.supsysticOverviewACFormOverlay button.button.button-hero,
371
+ .supsysticOverviewACFormOverlay .button {
372
+ font-size: 15px;
373
+ min-height: 35px;
374
+ -webkit-border-radius: 0 !important;
375
+ border-radius: 0 !important;
376
+ color: #28282a;
377
+ background-color: transparent;
378
+ -webkit-box-shadow: none;
379
+ box-shadow: none;
380
+ border: 1px solid #000 !important;
381
+ }
382
+
383
+ .supsysticOverviewACFormOverlay .button:hover {
384
+ background: #4ae8ea !important;
385
+ border-color: #4ae8ea !important;
386
+ }
387
+ .supsysticOverviewACForm input {
388
+ background-color: #f6f7f7;
389
+ color: #252728;
390
+ border-left: none;
391
+ border-right: none;
392
+ border-bottom: none;
393
+ border-top: 1px solid #dfe4e4;
394
+ padding: 7px 5px;
395
+ line-height: 1.3em;
396
+ }
397
+ .supsystic-breadcrumbs .breadcrumbs-separator {
398
+ filter: invert(1);
399
+ }
400
+ .supsystic-plugin .supsystic-content {
401
+ width:100% !important;
402
+ }
403
+ .supsystic-overview .button {
404
+ min-height:inherit !important;
405
+ }
406
+ .supsystic-overview .supsystic-plugin a {
407
+ color:#3c434a !important;
408
+ }
409
+ #supsystic-breadcrumbs {
410
+ background:#263546 !important;
411
+ }
412
+ #supsystic-breadcrumbs .chosen-container-single .chosen-single span {
413
+ color: black !important;
414
+ }
415
+ #supsystic-breadcrumbs .button-primary {
416
+ color:black !important;
417
+ }
418
+ #supsystic-breadcrumbs .button-primary i {
419
+ color:black !important;
420
+ }
css/supsystic-ui.css CHANGED
@@ -342,6 +342,9 @@ input[type="color"] {
342
  display: block;
343
  color: #ccc;
344
  }
 
 
 
345
  .supsystic-panel {
346
  /*margin-right: 10px;*/
347
  }
342
  display: block;
343
  color: #ccc;
344
  }
345
+ .supsystic-item.supsystic-panel {
346
+ min-height: 632px;
347
+ }
348
  .supsystic-panel {
349
  /*margin-right: 10px;*/
350
  }
gmp.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Easy Google Maps
4
  * Plugin URI: https://supsystic.com/plugins/google-maps-plugin/
5
  * Description: The easiest way to create Google Map with markers or locations. Display any data on the map: text, images, videos. Custom map marker icons
6
- * Version: 1.11.5
7
  * Author: supsystic.com
8
  * Author URI: https://supsystic.com
9
  * Text Domain: google-maps-easy
3
  * Plugin Name: Easy Google Maps
4
  * Plugin URI: https://supsystic.com/plugins/google-maps-plugin/
5
  * Description: The easiest way to create Google Map with markers or locations. Display any data on the map: text, images, videos. Custom map marker icons
6
+ * Version: 1.11.6
7
  * Author: supsystic.com
8
  * Author URI: https://supsystic.com
9
  * Text Domain: google-maps-easy
js/acPromoScript.js ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function() {
2
+
3
+ var $userMail = jQuery('.supsysticOverviewACForm [name="email"]'),
4
+ $userName = jQuery('.supsysticOverviewACForm [name="username"]'),
5
+ $dialog = jQuery('#supsysticOverviewACFormDialog');
6
+
7
+ function sendSubscribeMail() {
8
+ var defaultIconClass = jQuery('#subscribe-btn').find('i').attr('class');
9
+ jQuery('#subscribe-btn').find('i').attr('class', 'fa fa-spinner fa-spin');
10
+ jQuery('#subscribe-btn').attr('disabled', true);
11
+
12
+ data = {};
13
+ jQuery.each(jQuery('#overview-ac-form').serializeArray(), function(index, obj) {
14
+ data[obj.name] = obj.value;
15
+ });
16
+
17
+ jQuery.ajax({
18
+ url: ajaxurl,
19
+ type: 'post',
20
+ data: {
21
+ 'pl': 'gmp',
22
+ 'reqType': 'ajax',
23
+ 'mod': 'supsystic_promo',
24
+ 'action': 'sendSubscribeMail',
25
+ 'data': data
26
+ },
27
+ success: function(response) {
28
+ jQuery('#subscribe-btn').find('i').attr('class', defaultIconClass);
29
+ jQuery('#subscribe-btn').attr('disabled', false);
30
+ jQuery('.supsysticOverviewACFormOverlay').fadeOut();
31
+
32
+ jQuery('#supsysticOverviewACFormDialog').find('.message').text('Thank You For Subscribing!');
33
+ jQuery('#supsysticOverviewACFormDialog').dialog({
34
+ autoOpen: true,
35
+ resizable: false,
36
+ width: 500,
37
+ height: 280,
38
+ modal: true,
39
+ buttons: {
40
+ Close: function() {
41
+ jQuery('#supsysticOverviewACFormDialog').find('.on-error').hide();
42
+ jQuery('.supsysticOverviewACFormOverlay').fadeOut();
43
+ jQuery(this).dialog("close");
44
+ }
45
+ }
46
+ });
47
+
48
+ },
49
+ fail: function(err) {
50
+ jQuery('#supsysticOverviewACFormDialog').find('.on-error').show();
51
+ }
52
+ });
53
+ }
54
+
55
+ jQuery('#subscribe-btn').on('click', function(e) {
56
+ e.preventDefault();
57
+ if (!$userMail.val() || !$userName.val()) {
58
+ jQuery('.supsysticOverviewACFormNotification').show();
59
+ return;
60
+ }
61
+ jQuery('.supsysticOverviewACFormNotification').hide();
62
+ jQuery('#subscribe-btn, .supsysticOverviewACBtnRemind, .supsysticOverviewACBtnDisable').attr('disabled', 'disabled').prop('disabled', 'disabled');
63
+ sendSubscribeMail();
64
+ });
65
+
66
+ function sendSubscribeRemind() {
67
+ var defaultIconClass = jQuery('.supsysticOverviewACBtnRemind').find('i').attr('class');
68
+ jQuery('.supsysticOverviewACBtnRemind').find('i').attr('class', 'fa fa-spinner fa-spin');
69
+ jQuery('.supsysticOverviewACBtnRemind').attr('disabled', true);
70
+ var form_data = jQuery('#overview-ac-form').serializeArray();
71
+ var nonce = jQuery("[name='nonce']").val();
72
+ jQuery.ajax({
73
+ url: ajaxurl,
74
+ type: 'post',
75
+ data: {
76
+ 'pl': 'gmp',
77
+ 'reqType': 'ajax',
78
+ 'mod': 'supsystic_promo',
79
+ 'action': 'sendSubscribeRemind'
80
+ },
81
+ success: function(response) {
82
+ jQuery('.supsysticOverviewACBtnRemind').find('i').attr('class', defaultIconClass);
83
+ jQuery('.supsysticOverviewACBtnRemind').attr('disabled', false);
84
+ jQuery('.supsysticOverviewACFormOverlay').fadeOut();
85
+ },
86
+ fail: function(err) {}
87
+ });
88
+ }
89
+ jQuery('.supsysticOverviewACBtnRemind').on('click', function(e) {
90
+ e.preventDefault();
91
+ sendSubscribeRemind();
92
+ });
93
+
94
+ function sendSubscribeDisable() {
95
+ var defaultIconClass = jQuery('.supsysticOverviewACBtnDisable').find('i').attr('class');
96
+ jQuery('.supsysticOverviewACBtnDisable').find('i').attr('class', 'fa fa-spinner fa-spin');
97
+ jQuery('.supsysticOverviewACBtnDisable').attr('disabled', true);
98
+ var form_data = jQuery('#overview-ac-form').serializeArray();
99
+ var nonce = jQuery("[name='nonce']").val();
100
+ jQuery.ajax({
101
+ url: ajaxurl,
102
+ type: 'post',
103
+ data: {
104
+ 'pl': 'gmp',
105
+ 'reqType': 'ajax',
106
+ 'mod': 'supsystic_promo',
107
+ 'action': 'sendSubscribeDisable'
108
+ },
109
+ success: function(response) {
110
+ jQuery('.supsysticOverviewACBtnDisable').find('i').attr('class', defaultIconClass);
111
+ jQuery('.supsysticOverviewACBtnDisable').attr('disabled', false);
112
+ jQuery('.supsysticOverviewACFormOverlay').fadeOut();
113
+ },
114
+ fail: function(err) {}
115
+ });
116
+ }
117
+ jQuery('.supsysticOverviewACBtnDisable').on('click', function(e) {
118
+ e.preventDefault();
119
+ sendSubscribeDisable();
120
+ });
121
+
122
+ jQuery('.overview-section-btn').on('click', function() {
123
+ jQuery(".overview-section").hide();
124
+ jQuery(".overview-section[data-section='" + jQuery(this).data("section") + "']").show();
125
+ jQuery('.overview-section-btn-active').removeClass('overview-section-btn-active');
126
+ jQuery(this).addClass('overview-section-btn-active');
127
+ });
128
+ jQuery('.supsysticOverviewACBtnDisable, .supsysticOverviewACClose, .supsysticOverviewACBtnRemind').on('click', function() {
129
+ jQuery('.supsysticOverviewACFormOverlay').fadeOut();
130
+ });
131
+ jQuery('.overview-section-btn').eq(0).trigger('click');
132
+
133
+ if (!GMP_DATA['gmpAcShow']) {
134
+ jQuery('.supsysticOverviewACFormOverlay').hide();
135
+ jQuery('.supsysticOverviewACFormOverlay').remove();
136
+ } else {
137
+ jQuery('.supsysticOverviewACFormOverlay').show();
138
+ }
139
+ });
js/admin.options.js CHANGED
@@ -490,3 +490,8 @@ function gmpGetMainPromoPopup() {
490
  , height: 200
491
  });
492
  }
 
 
 
 
 
490
  , height: 200
491
  });
492
  }
493
+ jQuery(document).ready(function(){
494
+ setTimeout(function () {
495
+ jQuery('#gmpOptInProWnd').dialog('close');
496
+ }, 100);
497
+ });
modules/adminmenu/mod.php CHANGED
@@ -6,24 +6,24 @@ class adminmenuGmp extends moduleGmp {
6
  parent::init();
7
  add_action('admin_menu', array($this, 'initMenu'), 9);
8
  $plugName = plugin_basename(GMP_DIR. GMP_MAIN_FILE);
9
- add_filter('plugin_action_links_'. $plugName, array($this, 'addSettingsLinkForPlug') );
10
  }
11
- public function addSettingsLinkForPlug($links) {
12
- $mainLink = 'https://supsystic.com/';
13
- $twitterStatus = sprintf(__('Cool WordPress plugins from supsystic.com developers. I tried %s - and this was what I need! #supsystic.com', GMP_LANG_CODE), GMP_WP_PLUGIN_NAME);
14
- array_unshift($links, '<a href="'. $this->getMainLink(). '">'. __('Settings', GMP_LANG_CODE). '</a>');
15
- array_push($links, '<a title="'. __('More plugins for your WordPress site here!', GMP_LANG_CODE). '" href="'. $mainLink. '" target="_blank">supsystic.com</a>');
16
- array_push($links, '<a title="'. __('Spread the word!', GMP_LANG_CODE). '" href="https://www.facebook.com/sharer/sharer.php?u='. urlencode($mainLink). '" target="_blank" class="dashicons-before dashicons-facebook-alt"></a>');
17
- array_push($links, '<a title="'. __('Spread the word!', GMP_LANG_CODE). '" href="https://twitter.com/home?status='. urlencode($twitterStatus). '" target="_blank" class="dashicons-before dashicons-twitter"></a>');
18
- array_push($links, '<a title="'. __('Spread the word!', GMP_LANG_CODE). '" href="https://plus.google.com/share?url='. urlencode($mainLink). '" target="_blank" class="dashicons-before dashicons-googleplus"></a>');
19
- return $links;
20
- }
21
  public function initMenu() {
22
  $mainCap = $this->getMainCap();
23
  $mainSlug = dispatcherGmp::applyFilters('adminMenuMainSlug', $this->_mainSlug);
24
  $mainMenuPageOptions = array(
25
- 'page_title' => GMP_WP_PLUGIN_NAME,
26
- 'menu_title' => GMP_WP_PLUGIN_NAME,
27
  'capability' => $mainCap,
28
  'menu_slug' => $mainSlug,
29
  'function' => array(frameGmp::_()->getModule('options'), 'getAdminPage'));
@@ -57,4 +57,3 @@ class adminmenuGmp extends moduleGmp {
57
  return dispatcherGmp::applyFilters('adminMenuAccessCap', $this->_mainCap);
58
  }
59
  }
60
-
6
  parent::init();
7
  add_action('admin_menu', array($this, 'initMenu'), 9);
8
  $plugName = plugin_basename(GMP_DIR. GMP_MAIN_FILE);
9
+ // add_filter('plugin_action_links_'. $plugName, array($this, 'addSettingsLinkForPlug') );
10
  }
11
+ // public function addSettingsLinkForPlug($links) {
12
+ // $mainLink = 'https://supsystic.com/';
13
+ // $twitterStatus = sprintf(__('Cool WordPress plugins from supsystic.com developers. I tried %s - and this was what I need! #supsystic.com', GMP_LANG_CODE), GMP_WP_PLUGIN_NAME);
14
+ // array_unshift($links, '<a href="'. $this->getMainLink(). '">'. __('Settings', GMP_LANG_CODE). '</a>');
15
+ // array_push($links, '<a title="'. __('More plugins for your WordPress site here!', GMP_LANG_CODE). '" href="'. $mainLink. '" target="_blank">supsystic.com</a>');
16
+ // array_push($links, '<a title="'. __('Spread the word!', GMP_LANG_CODE). '" href="https://www.facebook.com/sharer/sharer.php?u='. urlencode($mainLink). '" target="_blank" class="dashicons-before dashicons-facebook-alt"></a>');
17
+ // array_push($links, '<a title="'. __('Spread the word!', GMP_LANG_CODE). '" href="https://twitter.com/home?status='. urlencode($twitterStatus). '" target="_blank" class="dashicons-before dashicons-twitter"></a>');
18
+ // array_push($links, '<a title="'. __('Spread the word!', GMP_LANG_CODE). '" href="https://plus.google.com/share?url='. urlencode($mainLink). '" target="_blank" class="dashicons-before dashicons-googleplus"></a>');
19
+ // return $links;
20
+ // }
21
  public function initMenu() {
22
  $mainCap = $this->getMainCap();
23
  $mainSlug = dispatcherGmp::applyFilters('adminMenuMainSlug', $this->_mainSlug);
24
  $mainMenuPageOptions = array(
25
+ 'page_title' => GMP_WP_PLUGIN_NAME,
26
+ 'menu_title' => GMP_WP_PLUGIN_NAME,
27
  'capability' => $mainCap,
28
  'menu_slug' => $mainSlug,
29
  'function' => array(frameGmp::_()->getModule('options'), 'getAdminPage'));
57
  return dispatcherGmp::applyFilters('adminMenuAccessCap', $this->_mainCap);
58
  }
59
  }
 
modules/options/views/tpl/optionsAdminPage.php CHANGED
@@ -21,10 +21,15 @@
21
  </ul>
22
  </nav>
23
  <div class="supsystic-container supsystic-<?php echo esc_attr($this->activeTab)?>">
24
- <?php dispatcherGmp::doAction('discountMsg');?>
25
  <?php echo viewGmp::ksesString($this->content);?>
26
  <div class="clear"></div>
27
  </div>
 
 
 
 
 
28
  </section>
29
  </div>
30
  </div>
21
  </ul>
22
  </nav>
23
  <div class="supsystic-container supsystic-<?php echo esc_attr($this->activeTab)?>">
24
+ <?php //dispatcherGmp::doAction('discountMsg');?>
25
  <?php echo viewGmp::ksesString($this->content);?>
26
  <div class="clear"></div>
27
  </div>
28
+ <div class="supsystic-footer-wrapper">
29
+ <div class="supsystic-footer-add-review">Add your <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/google-maps-easy?filter=5#postform">★★★★★</a> on wordpress.org</div>
30
+ <a href="https://supsystic.com/" target="_blank"><img src="<?php echo GMP_PLUGINS_URL .'/'. GMP_PLUG_NAME;?>/modules/supsystic_promo/img/supsystic-logo-small.png"></a>
31
+ <div class="supsystic-footer-plugin-version">Google Maps by Supsystic Version: <?php echo GMP_VERSION_PLUGIN?></div>
32
+ </div>
33
  </section>
34
  </div>
35
  </div>
modules/supsystic_promo/controller.php CHANGED
@@ -41,7 +41,7 @@ class supsystic_promoControllerGmp extends controllerGmp {
41
  }
42
  break;
43
  case 'email':
44
- if(!is_email($data[ $fName ]))
45
  $error = __('Please enter valid email address', GMP_LANG_CODE);
46
  break;
47
  }
@@ -65,7 +65,7 @@ class supsystic_promoControllerGmp extends controllerGmp {
65
  } else {
66
  $res->pushError( frameGmp::_()->getModule('mail')->getMailErrors() );
67
  }
68
-
69
  }
70
  $res->ajaxExec();
71
  }
@@ -94,14 +94,53 @@ class supsystic_promoControllerGmp extends controllerGmp {
94
  }
95
  $res->ajaxExec();
96
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  /**
98
  * @see controller::getPermissions();
99
  */
100
  public function getPermissions() {
101
  return array(
102
  GMP_USERLEVELS => array(
103
- GMP_ADMIN => array('welcomePageSaveInfo', 'sendContact', 'addNoticeAction'),
104
  ),
105
  );
106
  }
107
- }
41
  }
42
  break;
43
  case 'email':
44
+ if(!is_email($data[ $fName ]))
45
  $error = __('Please enter valid email address', GMP_LANG_CODE);
46
  break;
47
  }
65
  } else {
66
  $res->pushError( frameGmp::_()->getModule('mail')->getMailErrors() );
67
  }
68
+
69
  }
70
  $res->ajaxExec();
71
  }
94
  }
95
  $res->ajaxExec();
96
  }
97
+ public function sendSubscribeMail()
98
+ {
99
+ $res = new responseGmp();
100
+ $data = reqGmp::get('post');
101
+ $apiUrl = 'https://supsystic.com/wp-admin/admin-ajax.php';
102
+ $reqUrl = $apiUrl . '?action=ac_get_plugin_installed';
103
+ $mail = $data['data'];
104
+ $isPro = !empty($this->getModule('suspsystic_promo')->isPro()) ? true : false;
105
+ $data = array(
106
+ 'body' => array(
107
+ 'key' => 'kJ#f3(FjkF9fasd124t5t589u9d4389r3r3R#2asdas3(#R03r#(r#t-4t5t589u9d4389r3r3R#$%lfdj',
108
+ 'user_name' => $mail['username'],
109
+ 'user_email' => $mail['email'],
110
+ 'site_url' => get_bloginfo('wpurl'),
111
+ 'site_name' => get_bloginfo('name'),
112
+ 'plugin_code' => 'gmp',
113
+ 'is_pro' => $isPro,
114
+ ),
115
+ );
116
+ $response = wp_remote_post($reqUrl, $data);
117
+ if (is_wp_error($response)) {
118
+ $res->pushError( 'Some errors' );
119
+ } else {
120
+ update_option('gmp_ac_subscribe', true);
121
+ }
122
+ $res->ajaxExec();
123
+ }
124
+ public function sendSubscribeRemind()
125
+ {
126
+ $res = new responseGmp();
127
+ update_option('gmp_ac_remind', date("Y-m-d h:i:s", time() + 86400));
128
+ $res->ajaxExec();
129
+ }
130
+ public function sendSubscribeDisable()
131
+ {
132
+ $res = new responseGmp();
133
+ update_option('gmp_ac_disabled', true);
134
+ $res->ajaxExec();
135
+ }
136
  /**
137
  * @see controller::getPermissions();
138
  */
139
  public function getPermissions() {
140
  return array(
141
  GMP_USERLEVELS => array(
142
+ GMP_ADMIN => array('welcomePageSaveInfo', 'sendContact', 'addNoticeAction', 'sendSubscribeMail', 'sendSubscribeRemind', 'sendSubscribeDisable'),
143
  ),
144
  );
145
  }
146
+ }
modules/supsystic_promo/img/256.png DELETED
Binary file
modules/supsystic_promo/img/Backup_256.png DELETED
Binary file
modules/supsystic_promo/img/Coming_Soon_256.png DELETED
Binary file
modules/supsystic_promo/img/Contact_Form_256.png DELETED
Binary file
modules/supsystic_promo/img/Data_Tables_256.png DELETED
Binary file
modules/supsystic_promo/img/Digital_Publication_256.png DELETED
Binary file
modules/supsystic_promo/img/Gallery_256.png DELETED
Binary file
modules/supsystic_promo/img/Google_Maps_256.png DELETED
Binary file
modules/supsystic_promo/img/Live_Chat_256.png DELETED
Binary file
modules/supsystic_promo/img/Popup_256.png DELETED
Binary file
modules/supsystic_promo/img/Pricing_Table_256.png DELETED
Binary file
modules/supsystic_promo/img/Slider_256.png DELETED
Binary file
modules/supsystic_promo/img/Social_Buttons_256.png DELETED
Binary file
modules/supsystic_promo/img/icon-256x256.png DELETED
Binary file
modules/supsystic_promo/img/kinsta_banner.png DELETED
Binary file
modules/supsystic_promo/img/overview-01.png ADDED
Binary file
modules/supsystic_promo/img/overview-02.png ADDED
Binary file
modules/supsystic_promo/img/overview-03.png ADDED
Binary file
modules/supsystic_promo/img/plugin-icon.png ADDED
Binary file
modules/supsystic_promo/img/supsystic-logo-small.png ADDED
Binary file
modules/supsystic_promo/mod.php CHANGED
@@ -21,7 +21,7 @@ class supsystic_promoGmp extends moduleGmp {
21
  dispatcherGmp::addFilter('mainAdminTabs', array($this, 'addAdminTab'));
22
  dispatcherGmp::addAction('beforeSaveOpts', array($this, 'checkSaveOpts'));
23
  //dispatcherGmp::addAction('addMapBottomControls', array($this, 'checkWeLoveYou'), 99);
24
- dispatcherGmp::addAction('discountMsg', array($this, 'getDiscountMsg'));
25
  add_action('admin_notices', array($this, 'checkAdminPromoNotices'));
26
  add_action('admin_notices', array($this, 'showUserApiKeyAdminNotice'));
27
  }
@@ -67,13 +67,13 @@ class supsystic_promoGmp extends moduleGmp {
67
  $enbPromoLinkMsg .= '<p><a href="#" class="button button-primary" data-statistic-code="done">'. __('Ok, you deserve it', GMP_LANG_CODE). '</a>
68
  <a href="#" class="button" data-statistic-code="later">'. __('Nope, maybe later', GMP_LANG_CODE). '</a>
69
  <a href="#" class="button" data-statistic-code="hide">'. __('Skip', GMP_LANG_CODE). '</a></p>';
70
- $checkOtherPlugins = '<p>'
71
- . sprintf(__("Check out <a href='%s' target='_blank' class='button button-primary' data-statistic-code='hide'>our other Plugins</a>! Years of experience in WordPress plugins developers made that list unbreakable!", GMP_LANG_CODE), frameGmp::_()->getModule('options')->getTabUrl('featured-plugins'))
72
- . '</p>';
73
  $notices = array(
74
  'rate_msg' => array('html' => $rateMsg, 'show_after' => 7 * $day),
75
  'enb_promo_link_msg' => array('html' => $enbPromoLinkMsg, 'show_after' => 11 * $day),
76
- 'check_other_plugs_msg' => array('html' => $checkOtherPlugins, 'show_after' => 1 * $day),
77
  );
78
  // Wait for next week - when icons will be ready
79
  if(!class_exists('frameGmp')) {
@@ -127,9 +127,6 @@ class supsystic_promoGmp extends moduleGmp {
127
  $tabs['overview'] = array(
128
  'label' => __('Overview', GMP_LANG_CODE), 'callback' => array($this, 'getOverviewTabContent'), 'fa_icon' => 'fa-info', 'sort_order' => 5,
129
  );
130
- $tabs['featured-plugins'] = array(
131
- 'label' => __('Featured Plugins', GMP_LANG_CODE), 'callback' => array($this, 'showFeaturedPluginsPage'), 'fa_icon' => 'fa-heart', 'sort_order' => 99,
132
- );
133
  return $tabs;
134
  }
135
  public function getOverviewTabContent() {
@@ -287,36 +284,33 @@ class supsystic_promoGmp extends moduleGmp {
287
  }
288
  return $tabs;
289
  }
290
- public function showFeaturedPluginsPage() {
291
- return $this->getView()->showFeaturedPluginsPage();
292
- }
293
- public function getDiscountMsg() {
294
- if($this->isPro()
295
- && frameGmp::_()->getModule('options')->getActiveTab() == 'license'
296
- && frameGmp::_()->getModule('license')
297
- && frameGmp::_()->getModule('license')->getModel()->isActive()
298
- ) {
299
- $proPluginsList = array(
300
- 'ultimate-maps-by-supsystic-pro', 'newsletters-by-supsystic-pro', 'contact-form-by-supsystic-pro', 'live-chat-pro',
301
- 'digital-publications-supsystic-pro', 'coming-soon-supsystic-pro', 'price-table-supsystic-pro', 'tables-generator-pro',
302
- 'social-share-pro', 'popup-by-supsystic-pro', 'supsystic_slider_pro', 'supsystic-gallery-pro', 'google-maps-easy-pro',
303
- 'backup-supsystic-pro',
304
- );
305
- $activePluginsList = get_option('active_plugins', array());
306
- $activeProPluginsCount = 0;
307
- foreach($activePluginsList as $actPl) {
308
- foreach($proPluginsList as $proPl) {
309
- if(strpos($actPl, $proPl) !== false) {
310
- $activeProPluginsCount++;
311
- }
312
- }
313
- }
314
- if($activeProPluginsCount === 1) {
315
- $buyLink = $this->getDiscountBuyUrl();
316
- $this->getView()->getDiscountMsg($buyLink);
317
- }
318
- }
319
- }
320
  public function getDiscountBuyUrl() {
321
  $license = frameGmp::_()->getModule('license')->getModel()->getCredentials();
322
  $license['key'] = md5($license['key']);
21
  dispatcherGmp::addFilter('mainAdminTabs', array($this, 'addAdminTab'));
22
  dispatcherGmp::addAction('beforeSaveOpts', array($this, 'checkSaveOpts'));
23
  //dispatcherGmp::addAction('addMapBottomControls', array($this, 'checkWeLoveYou'), 99);
24
+ // dispatcherGmp::addAction('discountMsg', array($this, 'getDiscountMsg'));
25
  add_action('admin_notices', array($this, 'checkAdminPromoNotices'));
26
  add_action('admin_notices', array($this, 'showUserApiKeyAdminNotice'));
27
  }
67
  $enbPromoLinkMsg .= '<p><a href="#" class="button button-primary" data-statistic-code="done">'. __('Ok, you deserve it', GMP_LANG_CODE). '</a>
68
  <a href="#" class="button" data-statistic-code="later">'. __('Nope, maybe later', GMP_LANG_CODE). '</a>
69
  <a href="#" class="button" data-statistic-code="hide">'. __('Skip', GMP_LANG_CODE). '</a></p>';
70
+ // $checkOtherPlugins = '<p>'
71
+ // . sprintf(__("Check out <a href='%s' target='_blank' class='button button-primary' data-statistic-code='hide'>our other Plugins</a>! Years of experience in WordPress plugins developers made that list unbreakable!", GMP_LANG_CODE), frameGmp::_()->getModule('options')->getTabUrl('featured-plugins'))
72
+ // . '</p>';
73
  $notices = array(
74
  'rate_msg' => array('html' => $rateMsg, 'show_after' => 7 * $day),
75
  'enb_promo_link_msg' => array('html' => $enbPromoLinkMsg, 'show_after' => 11 * $day),
76
+ // 'check_other_plugs_msg' => array('html' => $checkOtherPlugins, 'show_after' => 1 * $day),
77
  );
78
  // Wait for next week - when icons will be ready
79
  if(!class_exists('frameGmp')) {
127
  $tabs['overview'] = array(
128
  'label' => __('Overview', GMP_LANG_CODE), 'callback' => array($this, 'getOverviewTabContent'), 'fa_icon' => 'fa-info', 'sort_order' => 5,
129
  );
 
 
 
130
  return $tabs;
131
  }
132
  public function getOverviewTabContent() {
284
  }
285
  return $tabs;
286
  }
287
+ // public function getDiscountMsg() {
288
+ // if($this->isPro()
289
+ // && frameGmp::_()->getModule('options')->getActiveTab() == 'license'
290
+ // && frameGmp::_()->getModule('license')
291
+ // && frameGmp::_()->getModule('license')->getModel()->isActive()
292
+ // ) {
293
+ // $proPluginsList = array(
294
+ // 'ultimate-maps-by-supsystic-pro', 'newsletters-by-supsystic-pro', 'contact-form-by-supsystic-pro', 'live-chat-pro',
295
+ // 'digital-publications-supsystic-pro', 'coming-soon-supsystic-pro', 'price-table-supsystic-pro', 'tables-generator-pro',
296
+ // 'social-share-pro', 'popup-by-supsystic-pro', 'supsystic_slider_pro', 'supsystic-gallery-pro', 'google-maps-easy-pro',
297
+ // 'backup-supsystic-pro',
298
+ // );
299
+ // $activePluginsList = get_option('active_plugins', array());
300
+ // $activeProPluginsCount = 0;
301
+ // foreach($activePluginsList as $actPl) {
302
+ // foreach($proPluginsList as $proPl) {
303
+ // if(strpos($actPl, $proPl) !== false) {
304
+ // $activeProPluginsCount++;
305
+ // }
306
+ // }
307
+ // }
308
+ // if($activeProPluginsCount === 1) {
309
+ // $buyLink = $this->getDiscountBuyUrl();
310
+ // $this->getView()->getDiscountMsg($buyLink);
311
+ // }
312
+ // }
313
+ // }
 
 
 
314
  public function getDiscountBuyUrl() {
315
  $license = frameGmp::_()->getModule('license')->getModel()->getCredentials();
316
  $license['key'] = md5($license['key']);
modules/supsystic_promo/views/supsystic_promo.php CHANGED
@@ -66,10 +66,10 @@ class supsystic_promoViewGmp extends viewGmp {
66
  public function getServerSettings() {
67
  global $wpdb;
68
  return array(
69
- 'Operating System' => array('value' => PHP_OS),
70
  'PHP Version' => array('value' => PHP_VERSION),
71
  'Server Software' => array('value' => $_SERVER['SERVER_SOFTWARE']),
72
- 'MySQL' => array('value' => $wpdb->db_version()),
73
  'PHP Allow URL Fopen' => array('value' => ini_get('allow_url_fopen') ? __('Yes', GMP_LANG_CODE) : __('No', GMP_LANG_CODE)),
74
  'PHP Memory Limit' => array('value' => ini_get('memory_limit')),
75
  'PHP Max Post Size' => array('value' => ini_get('post_max_size')),
@@ -90,40 +90,9 @@ class supsystic_promoViewGmp extends viewGmp {
90
  $this->assign('tabDescription', $tabDescription);
91
  return parent::getContent('adminPromoTabContent');
92
  }
93
- public function showFeaturedPluginsPage() {
94
- frameGmp::_()->getModule('templates')->loadSuptables();
95
- frameGmp::_()->addStyle('admin.featured-plugins', $this->getModule()->getModPath(). 'css/admin.featured-plugins.css');
96
- frameGmp::_()->getModule('templates')->loadGoogleFont('Montserrat');
97
- $siteUrl = 'https://supsystic.com/';
98
- $pluginsUrl = $siteUrl. 'plugins/';
99
- $uploadsUrl = $siteUrl. 'wp-content/uploads/';
100
- $downloadsUrl = 'https://downloads.wordpress.org/plugin/';
101
- $imgUrl = frameGmp::_()->getModule('supsystic_promo')->getModPath(). 'img/';
102
- $promoCampaign = 'googlemaps';
103
- $this->assign('pluginsList', array(
104
- array('label' => __('Popup Plugin', GMP_LANG_CODE), 'url' => $pluginsUrl. 'popup-plugin/', 'img' => $imgUrl . 'Popup_256.png', 'desc' => __('The Best WordPress PopUp option plugin to help you gain more subscribers, social followers or advertisement. Responsive pop-ups with friendly options.', GMP_LANG_CODE), 'download' => $downloadsUrl. 'popup-by-supsystic.zip'),
105
- array('label' => __('Photo Gallery Plugin', GMP_LANG_CODE), 'url' => $pluginsUrl. 'photo-gallery/', 'img' => $imgUrl . 'Gallery_256.png', 'desc' => __('Photo Gallery Plugin with a great number of layouts will help you to create quality respectable portfolios and image galleries.', GMP_LANG_CODE), 'download' => $downloadsUrl. 'gallery-by-supsystic.zip'),
106
- array('label' => __('Contact Form Plugin', GMP_LANG_CODE), 'url' => $pluginsUrl. 'contact-form-plugin/', 'img' => $imgUrl . 'Contact_Form_256.png', 'desc' => __('One of the best plugin for creating Contact Forms on your WordPress site. Changeable fonts, backgrounds, an option for adding fields etc.', GMP_LANG_CODE), 'download' => $downloadsUrl. 'contact-form-by-supsystic.zip'),
107
- array('label' => __('Data Tables Generator', GMP_LANG_CODE), 'url' => $pluginsUrl. 'data-tables-generator-plugin/', 'img' => $imgUrl . 'Data_Tables_256.png', 'desc' => __('Create and manage beautiful data tables with custom design. No HTML knowledge is required.', GMP_LANG_CODE), 'download' => $downloadsUrl. 'data-tables-generator-by-supsystic.zip'),
108
- array('label' => __('Slider Plugin', GMP_LANG_CODE), 'url' => $pluginsUrl. 'slider/', 'img' => $imgUrl . 'Slider_256.png', 'desc' => __('Creating slideshows with Slider plugin is fast and easy. Simply select images from your WordPress Media Library, Flickr, Instagram or Facebook, set slide captions, links and SEO fields all from one page.', GMP_LANG_CODE), 'download' => $downloadsUrl. 'slider-by-supsystic.zip'),
109
- array('label' => __('Social Share Buttons', GMP_LANG_CODE), 'url' => $pluginsUrl. 'social-share-plugin/', 'img' => $imgUrl . 'Social_Buttons_256.png', 'desc' => __('Social share buttons to increase social traffic and popularity. Social sharing to Facebook, Twitter and other social networks.', GMP_LANG_CODE), 'download' => $downloadsUrl. 'social-share-buttons-by-supsystic.zip'),
110
- array('label' => __('Live Chat Plugin', GMP_LANG_CODE), 'url' => $pluginsUrl. 'live-chat/', 'img' => $imgUrl . 'Live_Chat_256.png', 'desc' => __('Be closer to your visitors and customers with Live Chat Support by Supsystic. Help you visitors, support them in real-time with exceptional Live Chat WordPress plugin by Supsystic.', GMP_LANG_CODE), 'download' => $downloadsUrl. 'live-chat-by-supsystic.zip'),
111
- array('label' => __('Pricing Table', GMP_LANG_CODE), 'url' => $pluginsUrl. 'pricing-table/', 'img' => $imgUrl . 'Pricing_Table_256.png', 'desc' => __('It\'s never been so easy to create and manage pricing and comparison tables with table builder. Any element of the table can be customise with mouse click.', GMP_LANG_CODE), 'download' => $downloadsUrl. 'pricing-table-by-supsystic.zip'),
112
- array('label' => __('Coming Soon Plugin', GMP_LANG_CODE), 'url' => $pluginsUrl. 'coming-soon-plugin/', 'img' => $imgUrl . 'Coming_Soon_256.png', 'desc' => __('Coming soon page with drag-and-drop builder or under construction | maintenance mode to notify visitors and collects emails.', GMP_LANG_CODE), 'download' => $downloadsUrl. 'coming-soon-by-supsystic.zip'),
113
- array('label' => __('Easy Google Maps', GMP_LANG_CODE), 'url' => $pluginsUrl. 'google-maps-plugin/', 'img' => $imgUrl . 'Google_Maps_256.png', 'desc' => __('Display custom Google Maps. Set markers and locations with text, images, categories and links. Customize google map in a simple and intuitive way.', GMP_LANG_CODE), 'download' => $downloadsUrl. 'google-maps-easy.zip'),
114
- array('label' => __('Digital Publication Plugin', GMP_LANG_CODE), 'url' => $pluginsUrl. 'digital-publication-plugin/', 'img' => $imgUrl . 'Digital_Publication_256.png', 'desc' => __('Digital Publication WordPress Plugin by Supsystic for Magazines, Catalogs, Portfolios. Convert images, posts, PDF to the page flip book.', GMP_LANG_CODE), 'download' => $downloadsUrl. 'digital-publications-by-supsystic.zip'),
115
- ));
116
- foreach($this->pluginsList as $i => $p) {
117
- if(empty($p['external'])) {
118
- $this->pluginsList[ $i ]['url'] = $this->pluginsList[ $i ]['url']. '?utm_source=plugin&utm_medium=featured_plugins&utm_campaign='. $promoCampaign;
119
- }
120
- }
121
- $this->assign('bundleUrl', $siteUrl. 'pricing/'. '?utm_source=plugin&utm_medium=featured_plugins&utm_campaign='. $promoCampaign);
122
- return parent::getContent('featuredPlugins');
123
- }
124
- public function getDiscountMsg($buyLink = '#') {
125
- $this->assign('bundlePageLink', '//supsystic.com/all-plugins/');
126
- $this->assign('buyLink', $buyLink);
127
- parent::display('discountMsg');
128
- }
129
  }
66
  public function getServerSettings() {
67
  global $wpdb;
68
  return array(
69
+ 'Operating System' => array('value' => PHP_OS),
70
  'PHP Version' => array('value' => PHP_VERSION),
71
  'Server Software' => array('value' => $_SERVER['SERVER_SOFTWARE']),
72
+ 'MySQL' => array('value' => $wpdb->db_version()),
73
  'PHP Allow URL Fopen' => array('value' => ini_get('allow_url_fopen') ? __('Yes', GMP_LANG_CODE) : __('No', GMP_LANG_CODE)),
74
  'PHP Memory Limit' => array('value' => ini_get('memory_limit')),
75
  'PHP Max Post Size' => array('value' => ini_get('post_max_size')),
90
  $this->assign('tabDescription', $tabDescription);
91
  return parent::getContent('adminPromoTabContent');
92
  }
93
+ // public function getDiscountMsg($buyLink = '#') {
94
+ // $this->assign('bundlePageLink', '//supsystic.com/all-plugins/');
95
+ // $this->assign('buyLink', $buyLink);
96
+ // parent::display('discountMsg');
97
+ // }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  }
modules/supsystic_promo/views/tpl/adminFooter.php CHANGED
@@ -1,21 +1,33 @@
1
- <div class="gmpAdminFooterShell">
2
- <div class="gmpAdminFooterCell">
3
- <?php echo GMP_WP_PLUGIN_NAME?>
4
- <?php _e('Version', GMP_LANG_CODE)?>:
5
- <a target="_blank" href="http://wordpress.org/plugins/google-maps-easy/changelog/"><?php echo GMP_VERSION_PLUGIN?></a>
6
- </div>
7
- <div class="gmpAdminFooterCell">|</div>
8
- <?php if(!frameGmp::_()->getModule(implode('', array('l','ic','e','ns','e')))) {?>
9
- <div class="gmpAdminFooterCell">
10
- <?php _e('Go', GMP_LANG_CODE)?>&nbsp;<a target="_blank" href="<?php echo esc_attr(frameGmp::_()->getModule('supsystic_promo')->getMainLink());?>"><?php _e('PRO', GMP_LANG_CODE)?></a>
11
- </div>
12
- <div class="gmpAdminFooterCell">|</div>
13
- <?php } ?>
14
- <div class="gmpAdminFooterCell">
15
- <a target="_blank" href="http://wordpress.org/support/plugin/google-maps-easy"><?php _e('Support', GMP_LANG_CODE)?></a>
16
- </div>
17
- <div class="gmpAdminFooterCell">|</div>
18
- <div class="gmpAdminFooterCell">
19
- <?php _e('Add your', GMP_LANG_CODE)?> <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/google-maps-easy?filter=5#postform">&#9733;&#9733;&#9733;&#9733;&#9733;</a> on wordpress.org.
20
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
21
  </div>
1
+ <div class="supsysticOverviewACFormOverlay">
2
+ <form method="post" id="overview-ac-form" class="supsysticOverviewACForm">
3
+ <div class="supsysticOverviewACTitle">
4
+ <div class="supsysticOverviewACClose"><i class="fa fa-times" aria-hidden="true"></i></div>
5
+ <a href="https://supsystic.com/" target="_blank"><img src="<?php echo GMP_PLUGINS_URL .'/'. GMP_PLUG_NAME;?>/modules/supsystic_promo/img/supsystic-logo-small.png"></a><br>
6
+ <b>PRO plugins</b> and <b>amazing gifts</b>!
7
+ </div>
8
+ <?php
9
+ global $current_user;
10
+ $userName = $current_user->user_firstname.' '.$current_user->user_lastname;
11
+ $userEmail = $current_user->user_email;
12
+ ?>
13
+ <label>Name *</label>
14
+ <input type="text" name="username" value="<?php echo $userName;?>">
15
+ <label>Email *</label>
16
+ <input type="text" name="email" value="<?php echo $userEmail;?>">
17
+ <button id="subscribe-btn" type="submit" class="button button-primary button-hero">
18
+ <i class="fa fa-check-square" aria-hidden="true"></i>
19
+ Subscribe
20
+ </button>
21
+ <div class="button button-primary button-hero supsysticOverviewACBtn supsysticOverviewACBtnRemind"><i class="fa fa-hourglass-half" aria-hidden="true"></i> Remind me tomorrow</div>
22
+ <div class="button button-primary button-hero supsysticOverviewACBtn supsysticOverviewACBtnDisable"><i class="fa fa-times" aria-hidden="true"></i> Do not disturb me again</div>
23
+ <div class="supsysticOverviewACFormNotification" style="color: red; float: left;">Fields with * are required to fill</div>
24
+ </form>
25
+ <div class="clear"></div>
26
+ </div>
27
+ <div id="supsysticOverviewACFormDialog" hidden>
28
+ <div class="on-error" style="display:none">
29
+ <p>Some errors occurred while sending mail please send your message trough this contact form:</p>
30
+ <p><a href="https://supsystic.com/plugins/#contact" target="_blank">https://supsystic.com/plugins/#contact</a></p>
31
+ </div>
32
+ <div class="message"></div>
33
  </div>
modules/supsystic_promo/views/tpl/overviewTabContent.php CHANGED
@@ -1,112 +1,139 @@
1
- <section>
2
- <div class="supsystic-item supsystic-panel">
3
- <div id="containerWrapper">
4
- <div class="supsistic-half-side-box" style="border-right: 1px solid rgba(164, 170, 172, 0.28);">
5
- <h3><?php _e('FAQ and Documentation', GMP_LANG_CODE)?></h3>
6
- <div class="faq-list">
7
- <?php foreach($this->faqList as $title => $desc) { ?>
8
- <div class="faq-title">
9
- <i class="fa fa-info-circle"></i>
10
- <?php echo esc_attr($title);?>
11
- <div class="description" style="display: none;"><?php echo esc_attr($desc);?></div>
12
- </div>
13
- <?php }?>
14
- <div style="clear: both;"></div>
15
- <a target="_blank" class="button button-primary button-hero" href="<?php echo esc_attr($this->mainLink)?>#faq" style="float: right;">
16
- <i class="fa fa-info-circle"></i>
17
- <?php _e('Check all FAQs', GMP_LANG_CODE)?>
18
- </a>
19
- <div style="clear: both;"></div>
20
- </div>
21
- <div class="video">
22
- <h3><?php _e('Video tutorial', GMP_LANG_CODE)?></h3>
23
- <iframe type="text/html"
24
- width="80%"
25
- height="240px"
26
- src="https://www.youtube.com/embed/Ej8EtuLcLZk"
27
- frameborder="0">
28
- </iframe>
29
- </div>
30
- <div class="pro-features">
31
- <h3><?php _e('PRO Features', GMP_LANG_CODE)?></h3>
32
- <iframe type="text/html"
33
- width="80%"
34
- height="240px"
35
- src="https://www.youtube.com/embed/0wl0p_m8HEE"
36
- frameborder="0">
37
- </iframe>
38
- </div>
39
- <div class="server-settings">
40
- <h3><?php _e('Server Settings', GMP_LANG_CODE)?></h3>
41
- <ul class="settings-list">
42
- <?php foreach($this->serverSettings as $title => $element) {?>
43
- <li class="settings-line">
44
- <div class="settings-title"><?php echo esc_attr($title)?>:</div>
45
- <span><?php echo esc_attr($element['value'])?></span>
46
- </li>
47
- <?php }?>
48
- </ul>
49
- </div>
50
  </div>
51
- <div class="supsistic-half-side-box" style="padding-left: 20px;">
52
- <div class="supsystic-overview-news">
53
- <h3><?php _e('News', GMP_LANG_CODE)?></h3>
54
- <div class="supsystic-overview-news-content">
55
- <?php echo viewGmp::ksesString($this->news);?>
 
 
 
 
 
 
 
 
56
  </div>
57
- <a href="<?php echo esc_attr($this->mainLink)?>" class="button button-primary button-hero" style="float: right; margin-top: 10px;">
58
- <i class="fa fa-info-circle"></i>
59
- <?php _e('All news and info', GMP_LANG_CODE)?>
60
- </a>
61
- <div style="clear: both;"></div>
62
- </div>
63
- <div class="overview-contact-form">
64
- <h3><?php _e('Contact form', GMP_LANG_CODE)?></h3>
65
- <form id="form-settings">
66
- <table class="contact-form-table">
67
- <?php foreach($this->contactFields as $fName => $fData) { ?>
68
- <?php
69
- $htmlType = $fData['html'];
70
- $id = 'contact_form_'. $fName;
71
- $htmlParams = array('attrs' => 'id="'. $id. '"');
72
- if(isset($fData['placeholder']))
73
- $htmlParams['placeholder'] = $fData['placeholder'];
74
- if(isset($fData['options']))
75
- $htmlParams['options'] = $fData['options'];
76
- if(isset($fData['def']))
77
- $htmlParams['value'] = $fData['def'];
78
- if(isset($fData['valid']) && in_array('notEmpty', $fData['valid']))
79
- $htmlParams['required'] = true;
80
- ?>
81
- <tr>
82
- <th scope="row">
83
- <label for="<?php echo esc_attr($id)?>"><?php echo esc_attr($fData['label'])?></label>
84
- </th>
85
- <td>
86
- <?php echo htmlGmp::wpKsesHtml(htmlGmp::$htmlType($fName, $htmlParams))?>
87
- </td>
88
- </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  <?php }?>
90
- <tr>
91
- <th scope="row" colspan="2">
92
- <?php echo htmlGmp::wpKsesHtml(htmlGmp::hidden('mod', array('value' => 'supsystic_promo')))?>
93
- <?php echo htmlGmp::wpKsesHtml(htmlGmp::hidden('action', array('value' => 'sendContact')))?>
94
- <button class="button button-primary button-hero" style="float: right;">
95
- <i class="fa fa-upload"></i>
96
- <?php _e('Send email', GMP_LANG_CODE)?>
97
- </button>
98
- <div style="clear: both;"></div>
99
- </th>
100
- </tr>
101
- </table>
102
- </form>
103
- <div id="form-settings-send-msg" style="display: none;">
104
- <i class="fa fa-envelope-o"></i>
105
- <?php _e('Your email was send, we will try to respond to you as soon as possible. Thank you for support!', GMP_LANG_CODE)?>
 
 
 
 
 
 
 
 
 
 
106
  </div>
107
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  </div>
109
- <div style="clear: both;"></div>
110
- </div>
111
  </div>
112
- </section>
1
+ <div class="supsystic-overview">
2
+ <div class="full-page">
3
+ <div class="plugin-title"><img src="<?php echo GMP_PLUGINS_URL .'/'. GMP_PLUG_NAME;?>/modules/supsystic_promo/img/plugin-icon.png">Easy Google Maps By Supsystic</div>
4
+ <div class="plugin-description">This easy-to-use plugin is the “Go-To” maps solution for Bloggers and Tourism Operators worldwide. The plugin engages exclusively with Google Maps – the biggest player in the mapping universe. It has been designed to deliver quality results fast and is renowned for being user friendly.</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  </div>
6
+ <div class="supsystic-overview-flex">
7
+ <div class="half-page half-page-left">
8
+ <div class="border-wrapper">
9
+ <ul>
10
+ <li class="overview-section-btn" data-section="faq"><i class="fa fa-info-circle"></i> FAQ and Documentation</li>
11
+ <li class="overview-section-btn" data-section="video"><i class="fa fa-play"></i> Video tutorial</li>
12
+ <li class="overview-section-btn" data-section="settings"><i class="fa fa-cog"></i> Server Settings</li>
13
+ <li class="overview-section-btn" data-section="support"><i class="fa fa-life-ring"></i> Support</li>
14
+ <li class="overview-section-btn" data-section="promo_video"><i class="fa fa-star"></i> Our promo video</li>
15
+ <li class="overview-section-btn"><a target="_blank" title="Go to supsystic.com" href="https://supsystic.com/plugins/google-maps-plugin/?utm_source=plugin&utm_campaign=google-maps"> Plugin page on supsystic.com <sup><i class="fa fa-external-link"></i></sup></a></li>
16
+ <li class="overview-section-btn"><a target="_blank" title="Go to supsystic.com" href="https://supsystic.com/plugins/google-maps-plugin/?utm_source=plugin&utm_campaign=google-maps"> Compare FREE and PRO features <sup><i class="fa fa-external-link"></i></sup></a></li>
17
+ <li class="overview-section-btn"><a target="_blank" title="Go to supsystic.com" href="https://supsystic.com/all-plugins/?utm_source=plugin&utm_campaign=google-maps"> Check other supsystic FREE plugins <sup><i class="fa fa-external-link"></i></sup></a></li>
18
+ </ul>
19
  </div>
20
+ <div class="border-wrapper">
21
+ <div class="overview-contact-form overview-section" data-section="support">
22
+ <h3><i class="fa fa-life-ring"></i> Support</h3>
23
+ <div class="contact-info-section">
24
+ <p><i class="fa fa-clock-o" aria-hidden="true"></i> Our official support hours are 09:00 - 18:00 GMT+02:00, Monday to Friday – excluding bank holidays and other official holidays.</p>
25
+ <p>The timescales listed below refer to these working hours.</p><br>
26
+ <p><em>Support requests are prioritized based on the type of license:</em></p>
27
+ <ul>
28
+ <li><p><em>Pro Support</em> is reserved for customers with an active Pro license. We respond to new priority support requests within 12 hours.</p></li>
29
+ <li><p><em>Standard Support</em> is provided to customers with an active Free license. We respond to standard support requests within 24h-48h.</p></li>
30
+ </ul><br>
31
+ <p><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> While we don’t guarantee that we will resolve the request in this time period, we will acknowledge it and communicate with the customer as appropriate to help resolve the issue.</p>
32
+ </div>
33
+
34
+ <form id="form-settings">
35
+ <table class="contact-form-table">
36
+ <?php foreach($this->contactFields as $fName => $fData) { ?>
37
+ <?php
38
+ $htmlType = $fData['html'];
39
+ $id = 'contact_form_'. $fName;
40
+ $htmlParams = array('attrs' => 'id="'. $id. '"');
41
+ if(isset($fData['placeholder']))
42
+ $htmlParams['placeholder'] = $fData['placeholder'];
43
+ if(isset($fData['options']))
44
+ $htmlParams['options'] = $fData['options'];
45
+ if(isset($fData['def']))
46
+ $htmlParams['value'] = $fData['def'];
47
+ if(isset($fData['valid']) && in_array('notEmpty', $fData['valid']))
48
+ $htmlParams['required'] = true;
49
+ ?>
50
+ <tr>
51
+ <th scope="row">
52
+ <label for="<?php echo $id?>"><?php echo $fData['label']?></label>
53
+ </th>
54
+ <td>
55
+ <?php echo htmlGmp::$htmlType($fName, $htmlParams)?>
56
+ </td>
57
+ </tr>
58
+ <?php }?>
59
+ <tr>
60
+ <th scope="row" colspan="2">
61
+ <?php echo htmlGmp::hidden('mod', array('value' => 'supsystic_promo'))?>
62
+ <?php echo htmlGmp::hidden('action', array('value' => 'sendContact'))?>
63
+ <button class="button button-primary button-hero" style="float: right;">
64
+ <i class="fa fa-upload"></i>
65
+ <?php _e('Send email', GMP_LANG_CODE)?>
66
+ </button>
67
+ <div style="clear: both;"></div>
68
+ </th>
69
+ </tr>
70
+ </table>
71
+ </form>
72
+ <div class="clear"></div>
73
+ </div>
74
+
75
+ <div id="contact-form-dialog" hidden>
76
+ <div class="on-error" style="display:none">
77
+ <p>Some errors occurred while sending mail please send your message trough this contact form:</p>
78
+ <p><a href="https://supsystic.com/plugins/#contact" target="_blank">https://supsystic.com/plugins/#contact</a></p>
79
+ </div>
80
+ <div class="message"></div>
81
+ </div>
82
+ <div data-section="faq" class="faq-list overview-section">
83
+ <h3><?php _e('FAQ and Documentation', GMP_LANG_CODE)?></h3>
84
+ <?php foreach($this->faqList as $title => $desc) { ?>
85
+ <div class="faq-title">
86
+ <i class="fa fa-info-circle"></i>
87
+ <?php echo $title;?>
88
+ <div class="description" style="display: none;"><?php echo $desc;?></div>
89
+ </div>
90
  <?php }?>
91
+ <div style="clear: both;"></div>
92
+ <a target="_blank" href="https://supsystic.com/docs/google-maps-easy/?utm_source=plugin&utm_medium=faq&utm_campaign=google-maps" class="button button-primary button-hero">
93
+ <i class="fa fa-info-circle"></i>
94
+ Check all FAQs
95
+ </a>
96
+ <div class="clear"></div>
97
+ </div>
98
+ <div data-section="video" class="video overview-section">
99
+ <h3><i class="fa fa-play"></i> Video tutorial</h3>
100
+ <iframe type="text/html"
101
+ width="100%"
102
+ height="350px"
103
+ src="https://www.youtube.com/embed/Ej8EtuLcLZk"
104
+ frameborder="0">
105
+ </iframe>
106
+ <div class="clear"></div>
107
+ </div>
108
+ <div data-section="promo_video" class="video overview-section">
109
+ <h3><i class="fa fa-star"></i> Our promo video</h3>
110
+ <iframe type="text/html"
111
+ width="100%"
112
+ height="350px"
113
+ src="http://www.youtube.com/embed/dKd_9g6JzfU"
114
+ frameborder="0">
115
+ </iframe>
116
+ <div class="clear"></div>
117
  </div>
118
+ <div data-section="settings" class="server-settings overview-section">
119
+ <h3><i class="fa fa-cog"></i> Server settings</h3>
120
+ <ul class="settings-list">
121
+ <?php foreach($this->serverSettings as $title => $element) {?>
122
+ <li class="settings-line">
123
+ <div class="settings-title"><?php echo $title?>:</div>
124
+ <span><?php echo $element['value']?></span>
125
+ </li>
126
+ <?php }?>
127
+ </ul>
128
+ <div class="clear"></div>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ <div class="half-page half-page-right">
133
+ <a href="https://supsystic.com/pricing/?utm_source=plugin&utm_campaign=google-maps" target="_blank"><img class="overview-supsystic-img" src="<?php echo GMP_PLUGINS_URL .'/'. GMP_PLUG_NAME;?>/modules/supsystic_promo/img/overview-01.png"></a>
134
+ <a href="https://supsystic.com/bundle-mix/?utm_source=plugin&utm_campaign=google-maps" target="_blank"><img class="overview-supsystic-img" src="<?php echo GMP_PLUGINS_URL .'/'. GMP_PLUG_NAME;?>/modules/supsystic_promo/img/overview-02.png"></a>
135
+ <a href="https://supsystic.com/all-plugins/?utm_source=plugin&utm_campaign=google-maps" target="_blank"><img style="margin-top:20px;" class="overview-supsystic-img" src="<?php echo GMP_PLUGINS_URL .'/'. GMP_PLUG_NAME;?>/modules/supsystic_promo/img/overview-03.png"></a>
136
+ <div class="clear"></div>
137
+ </div>
138
  </div>
 
 
139
  </div>
 
modules/templates/mod.php CHANGED
@@ -14,6 +14,8 @@ class templatesGmp extends moduleGmp {
14
  $this->loadCoreCss();
15
  $this->loadJqueryUi();
16
  //$this->loadChosenSelects();
 
 
17
  frameGmp::_()->addScript('adminOptionsGmp', GMP_JS_PATH. 'admin.options.js', array(), false, true);
18
  add_action('admin_enqueue_scripts', array($this, 'loadMediaScripts'));
19
  }
@@ -67,17 +69,34 @@ class templatesGmp extends moduleGmp {
67
  'loader' => GMP_LOADER_IMG,
68
  'close' => GMP_IMG_PATH. 'cross.gif',
69
  'ajaxurl' => $ajaxurl,
70
- 'GMP_CODE' => GMP_CODE,
71
  'isAdmin' => is_admin(),
72
- 'gmapApiUrl' => frameGmp::_()->getModule('gmap')->getView()->getApiUrl(),
73
  );
74
  if(is_admin()) {
75
  $jsData['isPro'] = frameGmp::_()->getModule('supsystic_promo')->isPro();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
77
  $jsData = dispatcherGmp::applyFilters('jsInitVariables', $jsData);
78
-
79
  frameGmp::_()->addJSVar('coreGmp', 'GMP_DATA', $jsData);
80
-
81
  $loaded = true;
82
  }
83
  }
14
  $this->loadCoreCss();
15
  $this->loadJqueryUi();
16
  //$this->loadChosenSelects();
17
+ frameGmp::_()->addScript('gmpAcPromoScript', GMP_JS_PATH. 'acPromoScript.js');
18
+ frameGmp::_()->addStyle('gmpAcPromoStyle', GMP_CSS_PATH. 'acPromoStyle.css');
19
  frameGmp::_()->addScript('adminOptionsGmp', GMP_JS_PATH. 'admin.options.js', array(), false, true);
20
  add_action('admin_enqueue_scripts', array($this, 'loadMediaScripts'));
21
  }
69
  'loader' => GMP_LOADER_IMG,
70
  'close' => GMP_IMG_PATH. 'cross.gif',
71
  'ajaxurl' => $ajaxurl,
72
+ 'GMP_CODE' => GMP_CODE,
73
  'isAdmin' => is_admin(),
74
+ 'gmapApiUrl' => frameGmp::_()->getModule('gmap')->getView()->getApiUrl(),
75
  );
76
  if(is_admin()) {
77
  $jsData['isPro'] = frameGmp::_()->getModule('supsystic_promo')->isPro();
78
+ $show = true;
79
+ $acRemind = get_option('gmp_ac_remind', false);
80
+ if (!empty($acRemind)) {
81
+ $currentDate = date('Y-m-d h:i:s');
82
+ if ($currentDate > $acRemind) {
83
+ $show = true;
84
+ } else {
85
+ $show = false;
86
+ }
87
+ }
88
+ $acSubscribe = get_option('gmp_ac_subscribe', false);
89
+ if (!empty($acSubscribe)) {
90
+ $show = false;
91
+ }
92
+ $acDisabled = get_option('gmp_ac_disabled', false);
93
+ if (!empty($acDisabled)) {
94
+ $show = false;
95
+ }
96
+ $jsData['gmpAcShow'] = $show;
97
  }
98
  $jsData = dispatcherGmp::applyFilters('jsInitVariables', $jsData);
 
99
  frameGmp::_()->addJSVar('coreGmp', 'GMP_DATA', $jsData);
 
100
  $loaded = true;
101
  }
102
  }
readme.txt CHANGED
@@ -4,8 +4,8 @@ Author URI: https://supsystic.com/
4
  Plugin URI: https://supsystic.com/plugins/google-maps-plugin
5
  Donate link: https://supsystic.com/plugins/google-maps-plugin
6
  Tags: google map, map, Google Maps, map markers, location
7
- Tested up to: 5.9
8
- Stable tag: 1.11.5
9
 
10
  Google Maps with markers, locations and clusterization, KML layers and filters. Custom Google map markers with text, images, videos, links.
11
 
@@ -289,6 +289,9 @@ Easy Google Maps Plugin admin area. Add a marker to the google map.
289
 
290
 
291
  == Changelog ==
 
 
 
292
 
293
  = Easy Google Map Plugin v1.11.4 / 28.01.2021 =
294
  * Add fix for google maps
4
  Plugin URI: https://supsystic.com/plugins/google-maps-plugin
5
  Donate link: https://supsystic.com/plugins/google-maps-plugin
6
  Tags: google map, map, Google Maps, map markers, location
7
+ Tested up to: 6.0
8
+ Stable tag: 1.11.6
9
 
10
  Google Maps with markers, locations and clusterization, KML layers and filters. Custom Google map markers with text, images, videos, links.
11
 
289
 
290
 
291
  == Changelog ==
292
+ = Easy Google Map Plugin v1.11.6 / 30.08.2022 =
293
+ * Add support WP 6.0
294
+ * Add support PHP 8.1
295
 
296
  = Easy Google Map Plugin v1.11.4 / 28.01.2021 =
297
  * Add fix for google maps