FormGet Contact Form - Version 5.3.4

Version Description

Download this release

Release Info

Developer PankajAgarwal
Plugin Icon 128x128 FormGet Contact Form
Version 5.3.4
Comparing to
See all releases

Code changes from version 5.3.3 to 5.3.4

css/mg_popup.css ADDED
@@ -0,0 +1,683 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url(//fonts.googleapis.com/css?family=Raleway:500,600,400);
2
+ #mg_box * {
3
+ -webkit-box-sizing: content-box;
4
+ -moz-box-sizing: content-box;
5
+ box-sizing: content-box;
6
+ font-family: 'Raleway', sans-serif !important;
7
+ }
8
+
9
+ span.mg-header-title-right img {
10
+ max-width: none;
11
+ }
12
+
13
+ #mg_box {
14
+ width: 355px;
15
+ height: 367px;
16
+ right: 0px;
17
+ top: 124.5px;
18
+ visibility: hidden;
19
+ position: fixed;
20
+ bottom: 0;
21
+ z-index: 999999999;
22
+ }
23
+
24
+ .mg-wrapper-right {
25
+ width: 85%;
26
+ overflow-y: hidden;
27
+ overflow-x: hidden;
28
+ padding: 0 0 0 23px;
29
+ border-color: #ebebeb;
30
+ max-height: 600px;
31
+ /*height: 100%;*/
32
+ color: #222222;
33
+ background-color: #ffffff;
34
+ -webkit-border-radius: 4px 0 0 4px;
35
+ -moz-border-radius: 4px 0 0 4px;
36
+ border-radius: 4px 0 0 4px;
37
+ border-bottom: 1px solid #dadada;
38
+ border-top: 1px solid #dadada;
39
+ border-left: 1px solid #dadada;
40
+ }
41
+
42
+ #mg_box div.mg-header-right {
43
+ float: left;
44
+ margin-top: 50%;
45
+ width: 20px;
46
+ text-align: left;
47
+ font-weight: 400;
48
+ cursor: pointer;
49
+ padding: 10px;
50
+ color: #ffffff;
51
+ background-color: #7d9f2b;
52
+ -webkit-border-radius: 4px 0 0 4px;
53
+ -moz-border-radius: 4px 0 0 4px;
54
+ border-radius: 4px 0 0 4px;
55
+ }
56
+
57
+ .mg-header-title-right {
58
+ display: inline-block;
59
+ font-size: 17px;
60
+ }
61
+
62
+ .mg-css-anim-right {
63
+ -webkit-transition: right .8s;
64
+ -moz-transition: right .8s;
65
+ -o-transition: right .8s;
66
+ transition: right .8s;
67
+ }
68
+
69
+ @-webkit-keyframes bounceInRight {
70
+ 0% {
71
+ opacity: 0;
72
+ -webkit-transform: translateX(2000px);
73
+ transform: translateX(2000px);
74
+ }
75
+
76
+ 60% {
77
+ opacity: 1;
78
+ -webkit-transform: translateX(-30px);
79
+ transform: translateX(-30px);
80
+ }
81
+
82
+ 80% {
83
+ -webkit-transform: translateX(10px);
84
+ transform: translateX(10px);
85
+ }
86
+
87
+ 100% {
88
+ -webkit-transform: translateX(0);
89
+ transform: translateX(0);
90
+ }
91
+ }
92
+
93
+ @keyframes bounceInRight {
94
+ 0% {
95
+ opacity: 0;
96
+ -webkit-transform: translateX(2000px);
97
+ -ms-transform: translateX(2000px);
98
+ transform: translateX(2000px);
99
+ }
100
+
101
+ 60% {
102
+ opacity: 1;
103
+ -webkit-transform: translateX(-30px);
104
+ -ms-transform: translateX(-30px);
105
+ transform: translateX(-30px);
106
+ }
107
+
108
+ 80% {
109
+ -webkit-transform: translateX(10px);
110
+ -ms-transform: translateX(10px);
111
+ transform: translateX(10px);
112
+ }
113
+
114
+ 100% {
115
+ -webkit-transform: translateX(0);
116
+ -ms-transform: translateX(0);
117
+ transform: translateX(0);
118
+ }
119
+ }
120
+
121
+ .bounceInRight {
122
+ -webkit-animation-name: bounceInRight;
123
+ animation-name: bounceInRight;
124
+ }
125
+
126
+ .mg-animated {
127
+ -webkit-animation-duration: 2s;
128
+ -moz-animation-duration: 2s;
129
+ -ms-animation-duration: 2s;
130
+ -o-animation-duration: 2s;
131
+ animation-duration: 2s;
132
+ }
133
+
134
+ .mg-animated.mg-hinge {
135
+ -webkit-animation-duration: 3s;
136
+ -moz-animation-duration: 3s;
137
+ -ms-animation-duration: 3s;
138
+ -o-animation-duration: 3s;
139
+ animation-duration: 3s;
140
+ }
141
+
142
+ .mg-form-slide-close {
143
+ display: none;
144
+ }
145
+
146
+ .mg-form-wrapper {
147
+ padding: 10px;
148
+ }
149
+ .mg-form-wrapper center {
150
+ margin-bottom: 5px;
151
+ margin-top: -10px;
152
+ }
153
+
154
+ /* scrollbar */
155
+ /* Let's get this party started */
156
+ /*::-webkit-scrollbar {
157
+ width: 8px;
158
+ }*/
159
+
160
+ /* Track */
161
+ ::-webkit-scrollbar-track {
162
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.1);
163
+ -webkit-border-radius: 8px;
164
+ border-radius: 8px;
165
+ }
166
+
167
+ /* Handle */
168
+ ::-webkit-scrollbar-thumb {
169
+ -webkit-border-radius: 8px;
170
+ border-radius: 8px;
171
+ background: rgba(218,218,218,0.3);
172
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
173
+ }
174
+
175
+ ::-webkit-scrollbar-thumb:window-inactive {
176
+ background: rgba(218,218,218,0);
177
+ }
178
+
179
+ @media only screen and (max-width : 600px) {
180
+ #mg_box[style][data-class='mg_slide_left'], #mg_box[style][data-class='mg_slide_right'] {
181
+ width: 343px !important;
182
+ }
183
+
184
+ #mg_box[data-class='mg_slide_right'] #mg_wrapper_right[style] {
185
+ width: 291px !important;
186
+ }
187
+
188
+ #mg_box div.mg-header-right, #mg_box div.mg-header-left {
189
+ padding: 4px;
190
+ }
191
+
192
+ p.chat-left, p.chat-right {
193
+ margin-top: 0;
194
+ }
195
+ }
196
+
197
+ .mg-form-slide-close {
198
+ background: url('../image/close_form.png') center center no-repeat;
199
+ width: 20px;
200
+ height: 20px;
201
+ display: inline-block;
202
+ position: absolute;
203
+ cursor: pointer;
204
+ }
205
+
206
+ .mg-wrapper-right .mg-form-slide-close {
207
+ right: 10px;
208
+ top: 10px;
209
+ }
210
+
211
+ a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,dialog,div,dl,dt,em,embed,fieldset,figcaption,figure,font,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,meter,nav,object,ol,output,p,pre,progress,q,rp,rt,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video,xmp {
212
+ border: 0;
213
+ margin: 0;
214
+ padding: 0;
215
+ font-size: 100%;
216
+ }
217
+
218
+ article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
219
+ display: block;
220
+ }
221
+
222
+ b,strong {
223
+ font-weight: bold;
224
+ }
225
+
226
+ img {
227
+ color: transparent;
228
+ font-size: 0;
229
+ vertical-align: middle;
230
+ -ms-interpolation-mode: bicubic;
231
+ }
232
+
233
+ li {
234
+ display: list-item;
235
+ }
236
+
237
+ table {
238
+ border-collapse: collapse;
239
+ border-spacing: 0;
240
+ }
241
+
242
+ th,td,caption {
243
+ font-weight: normal;
244
+ vertical-align: top;
245
+ text-align: left;
246
+ }
247
+
248
+ svg {
249
+ overflow: hidden;
250
+ }
251
+
252
+ :focus {
253
+ outline: 0;
254
+ }
255
+
256
+ * {
257
+ font-family: 'Source Sans Pro';
258
+ }
259
+
260
+ .mg-form-column-two {
261
+ max-width: 328px;
262
+ }
263
+
264
+ #mg_form_wraper_div .view-header {
265
+ border-bottom: 1px dotted #dadada;
266
+ margin-bottom: 20px;
267
+ padding-bottom: 10px;
268
+ }
269
+
270
+ #mg_form_wraper_div .view-header h2 {
271
+ margin-bottom: 8px;
272
+ line-height: 30px;
273
+ font-size: 22px;
274
+ }
275
+
276
+ #mg_form_wraper_div .view-header p {
277
+ margin-bottom: 0;
278
+ margin-top: 0;
279
+ font-size: 14px;
280
+ }
281
+
282
+ #mg_form_wraper_div ul#unorder_list_container {
283
+ list-style-type: none;
284
+ width: 100%;
285
+ margin: 0;
286
+ padding: 0;
287
+ }
288
+
289
+ #mg_form_wraper_div li {
290
+ margin-bottom: 17px;
291
+ position: relative;
292
+ }
293
+
294
+ #mg_form_wraper_div li.inkdesk-mg-form .view-wrapper {
295
+ position: relative;
296
+ }
297
+
298
+ #mg_form_wraper_div p,#mg_form_wraper_div span,#mg_form_wraper_div li {
299
+ color: #4f4f4f;
300
+ }
301
+
302
+ #mg_form_wraper_div span {
303
+ font-size: 14px;
304
+ }
305
+
306
+ #mg_form_wraper_div ::-webkit-input-placeholder {
307
+ color: #4f4f4f;
308
+ }
309
+
310
+ #mg_form_wraper_div :-moz-placeholder {
311
+ color: #4f4f4f;
312
+ }
313
+
314
+ #mg_form_wraper_div ::-moz-placeholder {
315
+ color: #4f4f4f;
316
+ }
317
+
318
+ #mg_form_wraper_div :-ms-input-placeholder {
319
+ color: #4f4f4f;
320
+ }
321
+
322
+ #mg_form_wraper_div input:focus::-webkit-input-placeholder,#mg_form_wraper_div textArea:focus::-webkit-input-placeholder {
323
+ color: #4f4f4f !important;
324
+ }
325
+
326
+ #mg_form_wraper_div input:focus:-moz-placeholder,#mg_form_wraper_div textArea:focus:-moz-placeholder {
327
+ color: #4f4f4f !important;
328
+ }
329
+
330
+ #mg_form_wraper_div input:focus::-moz-placeholder,#mg_form_wraper_div textArea:focus::-moz-placeholder {
331
+ color: #4f4f4f !important;
332
+ }
333
+
334
+ #mg_form_wraper_div input:focus:-ms-input-placeholder,#mg_form_wraper_div textArea:focus:-ms-input-placeholder {
335
+ color: #4f4f4f !important;
336
+ }
337
+
338
+ #mg_form_wraper_div input[type="text"],#mg_form_wraper_div input[type="email"] {
339
+ width: 98%;
340
+ border: 0;
341
+ color: #4f4f4f;
342
+ font-size: 14px;
343
+ background-color: transparent !important;
344
+ }
345
+
346
+
347
+
348
+ #mg_form_wraper_div input[type="text"],#mg_form_wraper_div input[type="email"] {
349
+ height: 32px;
350
+ padding: 0;
351
+ padding-left: 5px;
352
+ }
353
+
354
+
355
+ #mg_form_wraper_div input#save {
356
+ background-color: #dd4b39;
357
+ text-align: center;
358
+ border: 0;
359
+ color: #fff;
360
+ display: block;
361
+ width: 101%;
362
+ font-size: 16px;
363
+ font-weight: bolder;
364
+ padding: 10px 0;
365
+ -webkit-border-radius: 3px;
366
+ -moz-border-radius: 3px;
367
+ border-radius: 3px;
368
+ cursor: pointer;
369
+ }
370
+
371
+ #mg_form_wraper_div .required {
372
+ position: absolute;
373
+ top: 1px;
374
+ right: -8px;
375
+ }
376
+
377
+ #mg_form_wraper_div input#save:hover {
378
+ background-color: #fe6a48;
379
+ }
380
+
381
+ #mg_form_wraper_div input#save:active {
382
+ background-color: #f14c26;
383
+ }
384
+
385
+
386
+
387
+ #mg_form_wraper_div .mg-outlined {
388
+ border: 3px solid #e1e1e1;
389
+ background-color: #fff;
390
+ display: block;
391
+ -webkit-border-radius: 3px;
392
+ -moz-border-radius: 3px;
393
+ border-radius: 3px;
394
+ overflow: hidden;
395
+ position: relative;
396
+ z-index: 10;
397
+ }
398
+
399
+ #mg_form_wraper_div .mg-outlined:before {
400
+ content: "";
401
+ display: block;
402
+ position: absolute;
403
+ z-index: -1;
404
+ top: 0;
405
+ left: 0;
406
+ right: 0;
407
+ bottom: 0;
408
+ border: 1px solid #b7b7b7;
409
+ }
410
+
411
+ #mg_form_wraper_div .view-click.mg-outlined,#mg_form_wraper_div .view-click .mg-outlined {
412
+ border-color: #c0d8fd;
413
+ position: relative;
414
+ z-index: 10;
415
+ }
416
+
417
+ #mg_form_wraper_div .view-click.mg-outlined:before,#mg_form_wraper_div .view-click .mg-outlined:before {
418
+ position: absolute;
419
+ z-index: -1;
420
+ top: 0;
421
+ left: 0;
422
+ right: 0;
423
+ bottom: 0;
424
+ border: 1px solid #83aff7;
425
+ }
426
+
427
+ #mg_form_wraper_div .mg-label-parent {
428
+ position: relative;
429
+ }
430
+
431
+ #mg_form_wraper_div .view-error {
432
+ border-color: #fdccc6 !important;
433
+ position: relative;
434
+ z-index: 10;
435
+ }
436
+
437
+ #mg_form_wraper_div .view-error:before {
438
+ position: absolute;
439
+ z-index: -1;
440
+ top: 0;
441
+ left: 0;
442
+ right: 0;
443
+ bottom: 0;
444
+ border: 1px solid #fa9184 !important;
445
+ }
446
+
447
+ #mg_form_wraper_div .view-error .required,#mg_form_wraper_div .view-error {
448
+ color: #ff1717 !important;
449
+ font-weight: bold;
450
+ }
451
+
452
+
453
+ #mg_form_wraper_div .mg-outlined.mg-file {
454
+ background: url('../images/file.png') left no-repeat;
455
+ }
456
+
457
+ #mg_form_wraper_div label {
458
+ display: inline-block;
459
+ color: #1d1d1d;
460
+ margin-bottom: 12px;
461
+ font-weight: bold;
462
+ }
463
+
464
+ #mg_form_wraper_div .mg-selection .mg-label-parent,#mg_form_wraper_div #mg-selection .mg-label-parent {
465
+ display: inline-block;
466
+ position: relative;
467
+ }
468
+
469
+ #mg_form_wraper_div ul ul {
470
+ padding: 0;
471
+ list-style-type: none;
472
+ }
473
+
474
+ #mg_form_wraper_div ul ul li {
475
+ margin-left: 0;
476
+ margin-bottom: 5px;
477
+ }
478
+
479
+
480
+ #mg_form_wraper_div .field-desc {
481
+ background: url('../images/help.png') no-repeat;
482
+ width: 14px;
483
+ height: 14px;
484
+ position: absolute;
485
+ top: 12px;
486
+ right: -20px;
487
+ cursor: pointer;
488
+ margin: 0;
489
+ padding: 0;
490
+ z-index: 12;
491
+ }
492
+
493
+
494
+ .mg-form-column-two input[type="button"] {
495
+ -webkit-appearance: none;
496
+ -moz-appearance: none;
497
+ }
498
+
499
+
500
+
501
+ @media only screen and (max-width:480px) {
502
+ .mg-form-column-two {
503
+ max-width: 100%;
504
+ }
505
+
506
+ .mg-form-wrapper {
507
+ width: 94%;
508
+ padding: 3%;
509
+ margin: auto;
510
+ }
511
+
512
+
513
+
514
+ #mg_form_wraper_div li.inkdesk-mg-form .view-wrapper img,#mg_form_wraper_div li.inkdesk-mg-form .view-wrapper iframe {
515
+ max-width: 100% !important;
516
+ }
517
+ }
518
+
519
+ @media only screen and (max-width:500px) {
520
+ .mg-form-column-two {
521
+ max-width: 100%;
522
+ }
523
+
524
+ .mg-form-wrapper {
525
+ width: 94%;
526
+ padding: 3%;
527
+ margin: auto;
528
+ }
529
+
530
+ #mg_form_wraper_div #mg-selection .field-desc {
531
+ right: -15px;
532
+ }
533
+ }
534
+
535
+ @media only screen and (max-width:640px) {
536
+ .mg-form-column-two {
537
+ max-width: 100%;
538
+ }
539
+
540
+ .mg-form-wrapper {
541
+ width: 94%;
542
+ padding: 3%;
543
+ margin: auto;
544
+ }
545
+
546
+ #mg_form_wraper_div #mg-selection .field-desc {
547
+ right: -15px;
548
+ }
549
+ }
550
+
551
+
552
+ #mg_form_wraper_div li.inkdesk-mg-form .view-wrapper img,#mg_form_wraper_div li.inkdesk-mg-form .view-wrapper iframe {
553
+ max-width: 328px;
554
+ }
555
+
556
+
557
+
558
+ #mg_form_wraper_div input[type="text"], #mg_form_wraper_div input[type="email"] {
559
+ width: 99%;
560
+ }
561
+
562
+
563
+
564
+ #mg_form_wraper_div li.inkdesk-mg-form .view-error input[type="text"], #mg_form_wraper_div li.inkdesk-mg-form .view-error input[type="email"] {
565
+ background: url('../images/error_icon.png') no-repeat 98% 50%;
566
+ }
567
+
568
+ #mg_form_wraper_div .view-error .required {
569
+ background: url('../images/error_icon.png') no-repeat;
570
+ width: 20px;
571
+ color: rgba(255,23,23,0) !important;
572
+ right: -23px;
573
+ }
574
+
575
+
576
+
577
+ #mg_form_wraper_div .field-desc {
578
+ border: 0;
579
+ }
580
+
581
+ option {
582
+ background: #ffffff;
583
+ }
584
+
585
+ #mg_form_wraper_div .view-header h2 {
586
+ color: #000000 !important;
587
+ font-weight: 600;
588
+ }
589
+
590
+ #mg_form_wraper_div .view-header p {
591
+ color: #000000;
592
+ }
593
+
594
+ #mg_form_wraper_div .mg-outlined:before {
595
+ border: 1px solid #6bbbea;
596
+ }
597
+
598
+ #mg_form_wraper_div .mg-outlined {
599
+ border: 3px solid #98d0f1;
600
+ background-color: #ffffff;
601
+ }
602
+
603
+ #mg_form_wraper_div .view-click.mg-outlined,
604
+ #mg_form_wraper_div .view-click .mg-outlined {
605
+ border-color: #93dff8;
606
+ }
607
+
608
+ #mg_form_wraper_div .view-click.mg-outlined:before,
609
+ #mg_form_wraper_div .view-click .mg-outlined:before {
610
+ border: 1px solid #63d0f4;
611
+ }
612
+
613
+ #mg_form_wraper_div ::-webkit-input-placeholder {
614
+ color: #000000;
615
+ }
616
+
617
+ #mg_form_wraper_div :-moz-placeholder {
618
+ /* Firefox 18- */
619
+ color: #000000;
620
+ }
621
+
622
+ #mg_form_wraper_div ::-moz-placeholder {
623
+ /* Firefox 19+ */
624
+ color: #000000;
625
+ }
626
+
627
+ #mg_form_wraper_div :-ms-input-placeholder {
628
+ color: #000000;
629
+ }
630
+
631
+ #mg_form_wraper_div label {
632
+ color: #000000;
633
+ }
634
+
635
+ #mg_form_wraper_div span, #mg_form_wraper_div li {
636
+ color: #000000;
637
+ }
638
+
639
+ #mg_form_wraper_div input[type="text"],#mg_form_wraper_div input[type="email"] {
640
+ color: #000000;
641
+ }
642
+
643
+ #mg_form_wraper_div input#save:hover {
644
+ background-color: #42d0ff !important;
645
+ }
646
+
647
+ #mg_form_wraper_div input#save {
648
+ background-color: #2bc1f2 !important;
649
+ }
650
+
651
+ .mg-form-column-two {
652
+ max-width: 242px;
653
+ }
654
+
655
+ #mg_form_wraper_div .view-header {
656
+ margin-top: 15px !important;
657
+ }
658
+
659
+ #mg_form_wraper_div .field-desc {
660
+ right: -24px !important;
661
+ }
662
+
663
+ .mg-powered-by {
664
+ font-size: 12px;
665
+ text-decoration: none;
666
+ color: black;
667
+ text-shadow: 0 1px 0 #fff;
668
+ }
669
+
670
+ .mg-powered-by:hover {
671
+ text-decoration: underline;
672
+ }
673
+ #mg_box.popup{
674
+ right:-315px;
675
+ }
676
+ .view-wrapper #mg_show_msg{
677
+ color: red;
678
+ display: block;
679
+ }
680
+ .view-wrapper #mg_show_name_msg{
681
+ color: red;
682
+ display: block;
683
+ }
css/mgstyle.css ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .mg-nav{
2
+ display: block;
3
+ }
4
+
5
+ h2 .nav-tab{
6
+ padding: 6px 10px;
7
+ font-weight: 700;
8
+ font-size: 15px;
9
+ line-height: 24px;
10
+ }
11
+ .mg-logo h2{
12
+ padding-top: 20px;
13
+ }
14
+ .mg-content{
15
+ margin-top: 25px;
16
+ border-width: 1px 0;
17
+ border-style: solid;
18
+ background: #fff;
19
+ border-top-color: #fff;
20
+ border-bottom-color: #dfdfdf;
21
+ border-color: #dfdfdf;
22
+ -webkit-box-shadow: inset 0 1px 0 #fff;
23
+ box-shadow: inset 0 1px 0 #fff;
24
+ -webkit-border-radius: 3px;
25
+ border-radius: 3px;
26
+ -webkit-border-radius: 3px;
27
+ border-radius: 3px;
28
+ border-width: 1px;
29
+ border-style: solid;
30
+ position: relative;
31
+ width: 1250px;
32
+ height: auto !important;
33
+ }
34
+ .mg-section{
35
+ background: #f5f5f5;
36
+ background-image: -webkit-gradient(linear,left bottom,left top,from(#f5f5f5),to(#f9f9f9));
37
+ background-image: -webkit-linear-gradient(bottom,#f5f5f5,#f9f9f9);
38
+ background-image: -moz-linear-gradient(bottom,#f5f5f5,#f9f9f9);
39
+ background-image: -o-linear-gradient(bottom,#f5f5f5,#f9f9f9);
40
+ background-image: linear-gradient(to top,#f5f5f5,#f9f9f9);
41
+ border-color: #dfdfdf;
42
+ -webkit-box-shadow: inset 0 1px 0 #fff;
43
+ box-shadow: inset 0 1px 0 #fff;
44
+ -webkit-border-radius: 3px;
45
+ border-radius: 3px;
46
+ min-width: 255px;
47
+ margin-bottom: 20px;
48
+ padding: 0;
49
+ border-width: 1px;
50
+ border-style: solid;
51
+ line-height: 1;
52
+ -webkit-border-radius: 3px;
53
+ border-radius: 3px;
54
+ border-width: 1px;
55
+ border-style: solid;
56
+ }
57
+ .mg-heading{
58
+ font-size: 15px;
59
+ font-weight: 400;
60
+ padding: 15px 10px;
61
+ margin: 0;
62
+ line-height: 1;
63
+ font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;
64
+ cursor: move;
65
+ border-top-left-radius: 3px;
66
+ border-top-right-radius: 3px;
67
+ color: #464646;
68
+ border-bottom-color: #dfdfdf;
69
+ text-shadow: #fff 0 1px 0;
70
+ -webkit-box-shadow: 0 1px 0 #fff;
71
+ box-shadow: 0 1px 0 #fff;
72
+ background: #f1f1f1;
73
+ background-image: -webkit-gradient(linear,left bottom,left top,from(#ececec),to(#f9f9f9));
74
+ background-image: -webkit-linear-gradient(bottom,#ececec,#f9f9f9);
75
+ background-image: -moz-linear-gradient(bottom,#ececec,#f9f9f9);
76
+ background-image: -o-linear-gradient(bottom,#ececec,#f9f9f9);
77
+ background-image: linear-gradient(to top,#ececec,#f9f9f9);
78
+ }
79
+ #mg-setting-content .mg-section.section-text,#mg-subscribe-content .mg-section.section-text {
80
+ margin-bottom: -12px;
81
+ }
82
+ div#mg_content_box{
83
+ margin: 16px;
84
+ }
85
+ p.mg-box-text{
86
+ padding: 5px 0 5px 0;
87
+ font-size: 14px;
88
+ font-weight: 600;
89
+ border-bottom: 2px solid rgb(228, 228, 228);
90
+ }
91
+ .mg-help, .mg-help p{
92
+ font-size: 14px;
93
+ }
94
+ .mg-help-guide{
95
+ font-weight: bold;
96
+ color: #000;
97
+ }
98
+ .mg-form-text {
99
+ margin: 14px 0px;
100
+ position: relative;
101
+ }
102
+ .mg-form-help-box{
103
+ padding: 9px 30px;
104
+ background: rgb(239, 239, 239);
105
+ border-radius: 2px;
106
+ }
107
+ #mg_form_heading_help, #mg_form_description_help, #mg_form_slide_help, #mg_form_sbmt_help{
108
+ position: absolute;
109
+ top: 0;
110
+ left: 490px;
111
+ font-weight: 500;
112
+ }
113
+ .mg-box-input {
114
+ width: 350px;
115
+ margin-right: 20px;
116
+ height: 33px;
117
+ }
118
+ #mg_content_box select.mg-box-input{
119
+ height: 33px;
120
+ }
121
+ textarea#mg_form_description_text {
122
+ width: 100%;
123
+ max-width: 350px;
124
+ }
125
+ #mg_content_box .button-primary.mg-submit-btn{
126
+ width: 120px;
127
+ height: 33px;
128
+ }
129
+ #mg_error_box{
130
+ font-size: 14px;
131
+ font-weight: 600;
132
+ color: red;
133
+ margin-left: 20px;
134
+ }
135
+ #mg_loading_img_span{
136
+ display: inline-block;
137
+ margin-left: 10px;
138
+ vertical-align: middle;
139
+ }
140
+ #mg_popup_save_box{
141
+ margin-left: -200px;
142
+ margin-top: -100px;
143
+ height: 50px;
144
+ width: 200px;
145
+ background-color: gray;
146
+ position:absolute;
147
+ -moz-border-radius:12px;
148
+ background:rgba(0, 0, 0, 0.4);
149
+ color:#fff;
150
+ font-size:24px;
151
+ text-align:center;
152
+ z-index: 9999;
153
+
154
+ }
155
+ .mg-msg-popup-box{
156
+ box-shadow: 0 0 1px rgba(34, 25, 25, 0.4);
157
+ display: inline-block;
158
+ font-size: 14px;
159
+ text-align: center;
160
+ vertical-align: middle;
161
+ background-color: rgba(228, 228, 228, 0.62);
162
+ font-weight: 600;
163
+ width: 150px;
164
+ padding: 20px;
165
+ }
166
+ #mg_msg_popup_lst.mg-msg-popup-box{
167
+ margin-bottom: -7px;
168
+ }
169
+ span#mg_selected_box{
170
+ display: inline-block;
171
+ max-width: 240px;
172
+ width: 100%;
173
+ height: 26px;
174
+ }
175
+ .mg-section input#submit_mg_options{
176
+ float: right;
177
+ margin-top: 8px;
178
+ margin-right: 14px;
179
+ }
180
+
181
+ .mg-onoffswitch {
182
+ position: relative; width: 90px;
183
+ -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
184
+ }
185
+ .mg-onoffswitch-checkbox {
186
+ display: none !important;
187
+ }
188
+ .mg-onoffswitch-label {
189
+ display: block; overflow: hidden; cursor: pointer;
190
+ border: 2px solid #999999; border-radius: 20px;
191
+ }
192
+ .mg-onoffswitch-inner {
193
+ display: block; width: 200%; margin-left: -100%;
194
+ -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
195
+ -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
196
+ }
197
+ .mg-onoffswitch-inner:before, .mg-onoffswitch-inner:after {
198
+ display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
199
+ font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
200
+ -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
201
+ }
202
+ .mg-onoffswitch-inner:before {
203
+ content: "ON";
204
+ padding-left: 10px;
205
+ background-color: #34A7C1; color: #FFFFFF;
206
+ }
207
+ .mg-onoffswitch-inner:after {
208
+ content: "OFF";
209
+ padding-right: 10px;
210
+ background-color: #EEEEEE; color: #999999;
211
+ text-align: right;
212
+ }
213
+ .mg-onoffswitch-switch {
214
+ display: block; width: 18px; margin: 6px;
215
+ background: #FFFFFF;
216
+ border: 2px solid #999999; border-radius: 20px;
217
+ position: absolute; top: 0; bottom: 0; right: 56px;
218
+ -moz-transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s;
219
+ -o-transition: all 0.3s ease-in 0s; transition: all 0.3s ease-in 0s;
220
+ }
221
+ .mg-onoffswitch-checkbox:checked + .mg-onoffswitch-label .mg-onoffswitch-inner {
222
+ margin-left: 0;
223
+ }
224
+ .mg-onoffswitch-checkbox:checked + .mg-onoffswitch-label .mg-onoffswitch-switch {
225
+ right: 0px;
226
+ }
image/Thumbs.db DELETED
Binary file
image/close_form.png ADDED
Binary file
image/mailget.png ADDED
Binary file
image/mailgeticon.png ADDED
Binary file
image/mg-ajax-loader.gif ADDED
Binary file
image/notice.png ADDED
Binary file
inc/mailget_curl.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ global $mailget_user;
4
+ $mailget_select = '';
5
+
6
+ class mailget_curl {
7
+
8
+ function mailget_curl($mailget_api) {
9
+ global $mailget_user;
10
+ $url = "http://www.formget.com/mailget/mailget_api/user_validation";
11
+ $data = array(
12
+ 'api_key' => $mailget_api
13
+ );
14
+ $result = $this->curl_call($url, $data);
15
+ $result = json_decode($result);
16
+ if (empty($result)) {
17
+ $mailget_user = 'Invalid API Key';
18
+ } elseif ($result->status == 'success') {
19
+ $mailget_user = $result->api_key;
20
+ } else {
21
+ $mailget_user = 'Invalid API Key';
22
+ }
23
+ }
24
+
25
+ function mailget_select_list($mailget_api) {
26
+ global $mailget_user;
27
+ $url = "http://www.formget.com/mailget/mailget_api/get_select_list";
28
+ $data = array(
29
+ 'api_key' => $mailget_api
30
+ );
31
+
32
+ $result = $this->curl_call($url, $data);
33
+ $result = json_decode($result);
34
+ if ($result->status == 'success') {
35
+ $mailget_select = $result->select;
36
+ } else {
37
+ $mailget_select = 'Invalid API Key.';
38
+ }
39
+ return $mailget_select;
40
+ }
41
+
42
+ function get_list_in_json($mailget_api) {
43
+ global $mailget_user;
44
+ $url = "http://www.formget.com/mailget/mailget_api/get_list_in_json";
45
+ $data = array(
46
+ 'api_key' => $mailget_api
47
+ );
48
+
49
+ $result = $this->curl_call($url, $data);
50
+ $result = json_decode($result);
51
+ if (empty($result)) {
52
+ $mailget_select = 'Invalid API Key';
53
+ } elseif ($result->status == 'success') {
54
+ $mailget_select = $result->contact_list;
55
+ } else {
56
+ $mailget_select = 'Invalid API Key';
57
+ }
58
+ return $mailget_select;
59
+ }
60
+
61
+ /* fUNCTION CURL Data */
62
+
63
+ public function curl_data($arr, $list_id, $send_val = 'multiple') {
64
+ global $mailget_user;
65
+ $main_contact_arr = array();
66
+ if ($mailget_user != 'Invalid API Key') {
67
+ if (!empty($arr)) {
68
+ $url = "http://www.formget.com/mailget/mailget_api/save_data";
69
+ foreach ($arr as $arr_row) {
70
+ if (isset($arr_row['name']) && isset($arr_row['email']) && isset($arr_row['get_date']) && isset($arr_row['ip']) && filter_var(trim($arr_row['email']), FILTER_VALIDATE_EMAIL)) {
71
+ $contact_arr['name'] = $arr_row['name'];
72
+ $contact_arr['email'] = $arr_row['email'];
73
+ $contact_arr['date'] = $arr_row['get_date'];
74
+ $contact_arr['ip'] = $arr_row['ip'];
75
+ $main_contact_arr[$arr_row['email']] = $contact_arr;
76
+ }
77
+ }
78
+ if (!empty($main_contact_arr)) {
79
+ $main_data = json_encode($main_contact_arr);
80
+ $data = array(
81
+ 'json_arr' => $main_data,
82
+ 'list_id_enc' => $list_id,
83
+ 'send_val' => $send_val
84
+ );
85
+
86
+ $result = $this->curl_call($url, $data);
87
+ return $result;
88
+ }
89
+ }
90
+ } else {
91
+ return 'Invalid API Key';
92
+ }
93
+ }
94
+
95
+ /* fUNCTION TO CALL cURL */
96
+
97
+ public function curl_call($url, $data) {
98
+ $ch = curl_init();
99
+ curl_setopt($ch, CURLOPT_POST, true);
100
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
101
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
102
+ curl_setopt($ch, CURLOPT_URL, $url);
103
+ $data = curl_exec($ch);
104
+ return $data;
105
+ }
106
+
107
+ }
108
+
109
+ ?>
index.php CHANGED
@@ -3,10 +3,27 @@
3
  Plugin Name: FormGet Contact Form
4
  Plugin URI: http://www.formget.com
5
  Description: FormGet Contact Form is an eassy and effective form builder tool which enable you to bulid and embed form on your website in few steps. With FormGet Contact Form manage all your contact forms and your entire client communication at one single place.
6
- Version: 5.3.3
7
  Author: FormGet
8
  Author URI: http://www.formget.com
9
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  function my_admin_notice() {
11
  $fg_iframe_form = get_option('fg_embed_code');
12
  $string = "sideBar";
@@ -55,6 +72,7 @@ if (is_admin()) {
55
 
56
  function cf_add_style() {
57
  wp_enqueue_style('form1_style1_sheet1', plugins_url('css/fgstyle.css', __FILE__));
 
58
  }
59
 
60
  add_action("admin_head", "cf_add_style");
@@ -67,76 +85,79 @@ if (is_admin()) {
67
  add_action('admin_head', 'wordpress_style');
68
  }
69
 
 
70
  //setting page
71
  add_action('admin_menu', 'cf_menu_page');
72
 
73
  function cf_menu_page() {
74
  add_menu_page('cf', 'Contact Form', 'manage_options', 'cf_page', 'cf_setting_page', plugins_url('image/favicon.ico', __FILE__), 109);
75
- add_submenu_page('cf_page', 'Extension', 'Extension', 'manage_options', 'cf_submenu_page', 'cf_submenu_dashboard');
 
76
  }
77
 
78
  function cf_submenu_dashboard() {
79
  echo "<h2 class='heading'>FormGet Powerful Extension</h2><h4 class='heading'>Extensions that simplify your work.</h4><hr/>";
80
  echo extension_list();
81
-
 
 
 
 
82
  }
83
 
84
  function extension_list() {
85
- $extensions=array(
86
- array('img_path'=>plugins_url("image/bundle.png", __FILE__),
87
- 'ext_title'=>'FormGet Extensions Bundle',
88
- 'ext_desc'=>'Extensions bundle gives you access to all FormGet extensions at one single price. This extension bundle includes more than 30 different extensions and several integration.',
89
- 'ext_url'=>'http://www.formget.com/app/extension/fg_extension/all-1'),
90
- array('img_path'=>plugins_url("image/custom.png", __FILE__),
91
- 'ext_title'=>'Custom Branding',
92
- 'ext_desc'=>'This extensions allows you to remove and edit any FormGet branding from your forms. It allows you to quickly transform your FormGet form into your own branded form.',
93
- 'ext_url'=>'http://www.formget.com/app/single_extension/pricing/formcapabilities-custombranding'),
94
- array('img_path'=>plugins_url("image/paypal.png", __FILE__),
95
- 'ext_title'=>'PayPal',
96
- 'ext_desc'=>'The PayPal Extension helps you to collect online payments through your forms. It accept credit card payments through forms instantly.',
97
- 'ext_url'=>'http://www.formget.com/app/single_extension/pricing/payment-paypal'),
98
- array('img_path'=>plugins_url("image/email.png", __FILE__),
99
- 'ext_title'=>'Email Notification',
100
- 'ext_desc'=>'With this extension whenever a user fills out the form you will recieve an email notification notifying you about the form submission. This way you wont miss any of the form entries.',
101
- 'ext_url'=>'http://www.formget.com/app/single_extension/pricing/notification-emailnotification'),
102
- array('img_path'=>plugins_url("image/mailc.jpg", __FILE__),
103
- 'ext_title'=>'MailChimp',
104
- 'ext_desc'=>'The MailChimp Extension helps you to store form messages on MailChimp mailing list. Thus help in collecting leads.',
105
- 'ext_url'=>'http://www.formget.com/app/single_extension/pricing/thirdparty-mailchimp'),
106
- array('img_path'=>plugins_url("image/aweber.jpg", __FILE__),
107
- 'ext_title'=>'Aweber',
108
- 'ext_desc'=>'The Aweber Extension helps you to store your collected leads through forms on your Aweber mailing list.',
109
- 'ext_url'=>'http://www.formget.com/app/single_extension/pricing/thirdparty-aweber'),
110
- array('img_path'=>plugins_url("image/logical.jpg", __FILE__),
111
- 'ext_title'=>'Logical Forms',
112
- 'ext_desc'=>'The Logical Forms Extension helps you to create form with condition logics that apply to form fields.',
113
- 'ext_url'=>'http://www.formget.com/app/single_extension/pricing/formcapabilities-logicalforms')
114
  );
115
- $list='';
116
- foreach($extensions as $extension){
117
-
118
- $list .="<div class='block-content'>
119
- <div class='block-left'><img src='".$extension['img_path']."' class='entension-image'></div>
120
  <div class='block-right'>
121
- <h3>".$extension['ext_title']."</h3>
122
- <a href='".$extension['ext_url']."' target='_blank' class='view'>View Extension</a>
123
- <p class='details'>".$extension['ext_desc']."</p>
124
  </div>
125
  </div>";
126
-
127
  }
128
  return $list;
129
  }
130
 
131
-
132
-
133
  function cf_setting_page() {
134
  $url = plugins_url();
135
  ?>
136
 
137
- <!-- <div id="fg_videoContainer" >
138
 
139
- </div>-->
140
  <?php
141
  global $wpdb;
142
  $fg_video_code = get_option('fg_hide_video');
@@ -151,7 +172,7 @@ function cf_setting_page() {
151
  </div>-->
152
 
153
  <?php } ?>
154
-
155
 
156
  <div id="fg_of_container" class="fg_wrap"
157
 
@@ -159,7 +180,7 @@ function cf_setting_page() {
159
  <form id="fg_ofform" action="" method="POST">
160
  <div id="fg_header">
161
  <div class="fg_logo">
162
- <h2> FormGet Contact Form</h2>
163
  <img src="<?php echo plugins_url('image/extension.jpg', __FILE__); ?>" class="extensionimage" alt="Extension" />
164
  <a href="http://www.formget.com/app/single_extension/pricing/formcapabilities-custombranding" target="_blank" class="anchorEx1"></a>
165
  <a href="http://www.formget.com/app/single_extension/pricing/payment-paypal" target="_blank" class="anchorEx2"></a>
@@ -181,7 +202,7 @@ function cf_setting_page() {
181
  <span id="help_tab" class="nav-tab ">Help</span>
182
  <span id="gopro_tab" class="nav-tab ">Extensions</span>
183
  <!--<span id="support_tab" class="nav-tab ">Support</span>-->
184
- <!--<span id="login_tab" class="nav-tab ">Login</span>-->
185
 
186
  </h2>
187
  </div>
@@ -208,15 +229,17 @@ function cf_setting_page() {
208
  <textarea name="content[html]" cols="60" rows="10" class="regular-text" id="fg_content_html" style="width:900px"><?php echo show_embed_code(); ?></textarea>
209
  <p class="fg_info"><b>Select the page in which you want to show "Contact Us" tab. By default it is visible on every page.</b><p>
210
  <?php
211
- $page_title = $wpdb->get_results("SELECT post_title, id FROM $wpdb->posts WHERE (post_type = 'page')");
212
- $val = get_option('fg_checked_page_id');
213
- if(!empty($val) && in_array("home1", $val)) { ?>
214
- <input id="fg_selected_box" type="checkbox" name="checkbox" value="home1" checked>
215
- <?php }
216
- else { ?>
217
- <input id="fg_selected_box" type="checkbox" name="checkbox" value="home1">
218
- <?php }
219
- echo "Home"."<br/>";
 
 
220
 
221
  foreach ($page_title as $title) {
222
  $fg_list_page_id = get_option('fg_checked_page_id');
@@ -253,12 +276,12 @@ function cf_setting_page() {
253
  <div class="fg_group" id="pn_template">
254
  <div class="fg_section section-text">
255
  <h3 class="fg_heading"> Watch video tutorial to use Formget Contact Form Plugin</h3>
256
- <p class="fg_info"><b>If you have any query. Please <a href="http://www.formget.com/contact-us/" target="blank">Contact Us</a></b> </p>
257
  <div id="help_txt">
258
  <iframe class="video_tobe_shown" width="700" height="400" src="//player.vimeo.com/video/84023688?autoplay=0&amp;loop=1&amp;rel=0&amp;wmode=transparent" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" __idm_id__="7182340"></iframe>
259
  </div>
260
-
261
-
262
  </div>
263
  </div>
264
  <div class="fg_group" id="pn_gopro">
@@ -274,19 +297,19 @@ function cf_setting_page() {
274
  <iframe class="formget_contact_form" height='570' allowTransparency='true' frameborder='0' scrolling='no' style='width:100%;border:none' src='https://www.formget.com/app/embed/form/qQvs-639'>Your Contact </iframe>
275
  </div>
276
  </div>
277
- <!--
278
- <div class="fg_group" id="pn_login">
279
- <div class="fg_section section-text">
280
- <h3 class="fg_heading"> Login </h3>
281
- <div class="outer_iframe_div" id="outer_iframe_div">
282
- <div class="inner_iframe_div" id="inner_iframe_div" >
283
- <iframe src="http://www.formget.com/app/login" name="iframe" id="iframebox" class="login-iframe" style="width:100%; height:900px; border:1px solid #dfdfdf; align:center; overflow-y:scroll;" >
284
- </iframe>
285
- </div>
286
- </div>
287
- </div>
288
- </div>
289
- -->
290
  </div>
291
  <div class="clear"></div>
292
  </div>
@@ -301,54 +324,56 @@ function cf_setting_page() {
301
 
302
  function cf_embeded_script() {
303
  wp_enqueue_script('embeded_script', plugins_url('js/fg_script.js', __FILE__), array('jquery'));
304
- wp_localize_script('embeded_script', 'script_call', array('ajaxurl' => admin_url('admin-ajax.php'),'aj_nonce' => wp_create_nonce( 'script-nonce' )));
305
-
 
306
  }
307
 
308
- if (isset($_GET['page']) == 'cf_page') {
309
  add_action('init', 'cf_embeded_script');
310
  }
311
 
312
  function cf_text_ajax_process_request() {
313
- if(!check_ajax_referer('script-nonce', 'aj_nonce') && !is_user_logged_in() && !current_user_can( 'manage_options' )){
314
- return;
315
- }
316
  $text_value = $_POST['value'];
317
  // $val = $_POST['value_hide'];
 
318
  $page_id = $_POST['page_id'];
 
 
319
  //echo $val;
320
- $pos = strpos($text_value, "sideBar");
321
- if($pos == true || trim($text_value) == '')
322
- {
323
- //update_option('fg_hide_video', $val);
324
- update_option('fg_embed_code', $text_value);
325
- update_option('fg_checked_page_id', $page_id);
326
- //print_r($page_id);
327
- echo 1;
328
- }
329
- else{
330
- echo "Please enter valid Sliding Form code";
331
- }
332
  die();
333
  }
334
 
335
  add_action('wp_ajax_request_response', 'cf_text_ajax_process_request');
336
 
337
-
338
- function show_embed_code(){
339
- global $wpdb;
340
- $fg_iframe_form = get_option('fg_embed_code');
341
- $string = "sideBar";
342
- $pos = strpos($fg_iframe_form, $string);
343
- if ($pos == true) {
344
- echo stripslashes($fg_iframe_form);
345
- }
346
  }
 
347
  /*
348
- if (is_page(cf_page)) {
349
- add_action('init', 'show_embed_code');
350
- }
351
- */
352
 
353
 
354
  if (!function_exists('embeded_code')) {
@@ -368,7 +393,7 @@ if (!function_exists('embeded_code')) {
368
  echo stripslashes($fg_iframe_form);
369
  }
370
  } else {
371
- if (is_front_page() && $key == "home1") {
372
  if ($pos == true) {
373
  echo stripslashes($fg_iframe_form);
374
  }
@@ -381,11 +406,43 @@ if (!function_exists('embeded_code')) {
381
  }
382
  }
383
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
384
  }
385
 
 
 
 
386
  if (!is_admin()) {
387
  add_action('wp_head', 'embeded_code');
388
  }
 
 
 
 
 
 
 
 
389
  //schort code function
390
  if (!function_exists('formget_shortcode')) {
391
 
@@ -393,12 +450,12 @@ if (!function_exists('formget_shortcode')) {
393
  extract(shortcode_atts(array(
394
  'user' => '',
395
  'formcode' => '',
396
- 'tabtext' => 'Contact Us',
397
- 'position' => 'right',
398
- 'bgcolor' => 'e54040',
399
- 'textcolor' => 'ffffff',
400
- 'fontsize' => '16',
401
- 'width' => '350',
402
  'allowTransparency' => true,
403
  'height' => '500',
404
  'tab' => ''
@@ -412,7 +469,7 @@ if (!function_exists('formget_shortcode')) {
412
  return $iframe_formget;
413
  }
414
  if ($tab == 'tabbed') {
415
-
416
  $tabbed_formget = <<<EOD
417
  <script type='text/javascript'>
418
  (function(s)
@@ -458,68 +515,60 @@ add_shortcode('formget', 'formget_shortcode');
458
 
459
 
460
  // FormGet Widget
461
- if(! class_exists('Formget_Widget') ){
462
- class Formget_Widget extends WP_Widget
463
- {
464
- function __construct() {
465
- parent::__construct(
466
- 'FormGet_widget',
467
-
468
- __('FormGet Widget', 'formget_widget'),
469
-
470
- array( 'description' => __( 'FormGet widget to show forms on sidebar and footer', 'formget_widget' ), )
471
- );
472
- }
473
-
474
- public function widget( $args, $instance )
475
- {
476
- $text = format_to_edit($instance['textarea']);
477
- $pos = strpos($text, 'embed');
478
-
479
- ?>
480
- <div class='formget_widget' style="<?php if($pos == True){ ?>
481
- -webkit-box-shadow: 1px 0px 11px rgba(50, 50, 50, 0.74);-moz-box-shadow: 1px 0px 11px rgba(50, 50, 50, 0.74);box-shadow: 1px 0px 11px rgba(50, 50, 50, 0.74); margin-bottom: 25px; padding-top: 15px;
482
- <?php
483
- }?>">
484
- <?php
485
-
486
- echo $instance['textarea'];
487
- echo "</div>";
488
- }
489
-
490
-
491
- public function update( $new_instance, $old_instance )
492
- {
493
- return $new_instance;
494
- }
 
 
 
 
 
 
 
 
 
 
 
495
 
496
- public function form( $instance )
497
- {
498
- $instance = wp_parse_args( (array) $instance, array( 'textarea' => '' ) );
499
- $text = format_to_edit($instance['textarea']);
500
- ?>
501
- <p>
502
- <label for="<?php echo $this->get_field_id('textarea'); ?>"><?php _e('Textarea:', 'wp_widget_plugin'); ?></label>
503
- <textarea class="widefat" id="<?php echo $this->get_field_id('textarea'); ?>" name="<?php echo $this->get_field_name('textarea'); ?>" rows="7" cols="20" placeholder="Enter here your Iframe Code
504
- "><?php echo $text ?></textarea>
505
- </p>
506
- <?php
507
-
508
- ! empty ( $text )
509
- and print '<h3>Preview</h3><div style="border:3px solid #369;padding:11px; margin-bottom: 5px;">'
510
- . $instance['textarea'] . '</div>';
511
- ?>
512
- <?php
513
  }
514
- }
515
- }
516
- add_action( 'widgets_init', 'register_formget_widget', 20 );
517
 
518
- if(! function_exists('register_formget_widget')){
519
- function register_formget_widget()
520
- {
521
- register_widget( 'Formget_Widget' );
522
- }
523
- }
524
 
525
- ?>
 
3
  Plugin Name: FormGet Contact Form
4
  Plugin URI: http://www.formget.com
5
  Description: FormGet Contact Form is an eassy and effective form builder tool which enable you to bulid and embed form on your website in few steps. With FormGet Contact Form manage all your contact forms and your entire client communication at one single place.
6
+ Version: 5.3.4
7
  Author: FormGet
8
  Author URI: http://www.formget.com
9
  */
10
+ require 'mailget.php';
11
+
12
+ function cf_mg_ajax() {
13
+ $mg_obj = new mailget();
14
+ add_action('wp_ajax_mg_display_contact_list', array($mg_obj, 'mg_display_contact_lists'));
15
+ add_action('wp_ajax_mg_save_contact_list_id', array($mg_obj, 'mg_save_contact_list_id'));
16
+ add_action('wp_ajax_mg_save_options', array($mg_obj, 'mg_save_options'));
17
+
18
+ /**
19
+ * Form ajax
20
+ */
21
+ add_action('wp_ajax_mg_form_action', array($mg_obj, 'mg_form_action'));
22
+ add_action('wp_ajax_nopriv_mg_form_action', array($mg_obj, 'mg_form_action'));
23
+ }
24
+
25
+ add_action('init', 'cf_mg_ajax');
26
+
27
  function my_admin_notice() {
28
  $fg_iframe_form = get_option('fg_embed_code');
29
  $string = "sideBar";
72
 
73
  function cf_add_style() {
74
  wp_enqueue_style('form1_style1_sheet1', plugins_url('css/fgstyle.css', __FILE__));
75
+ wp_enqueue_style('mg_admin_stylesheet', plugins_url('css/mgstyle.css', __FILE__));
76
  }
77
 
78
  add_action("admin_head", "cf_add_style");
85
  add_action('admin_head', 'wordpress_style');
86
  }
87
 
88
+
89
  //setting page
90
  add_action('admin_menu', 'cf_menu_page');
91
 
92
  function cf_menu_page() {
93
  add_menu_page('cf', 'Contact Form', 'manage_options', 'cf_page', 'cf_setting_page', plugins_url('image/favicon.ico', __FILE__), 109);
94
+ add_submenu_page('cf_page', 'Extension', 'Extension', 'manage_options', 'cf_submenu_page', 'cf_submenu_dashboard');
95
+ add_menu_page('Email Marketing', 'Email Marketing', 'manage_options', 'cf_mg_page', 'cf_mg_setting_page', plugins_url('image/mailgeticon.png', __FILE__), 110);
96
  }
97
 
98
  function cf_submenu_dashboard() {
99
  echo "<h2 class='heading'>FormGet Powerful Extension</h2><h4 class='heading'>Extensions that simplify your work.</h4><hr/>";
100
  echo extension_list();
101
+ }
102
+
103
+ function cf_mg_setting_page() {
104
+ $mg_obj = new mailget();
105
+ $mg_obj->mg_interface();
106
  }
107
 
108
  function extension_list() {
109
+ $extensions = array(
110
+ array('img_path' => plugins_url("image/bundle.png", __FILE__),
111
+ 'ext_title' => 'FormGet Extensions Bundle',
112
+ 'ext_desc' => 'Extensions bundle gives you access to all FormGet extensions at one single price. This extension bundle includes more than 30 different extensions and several integration.',
113
+ 'ext_url' => 'http://www.formget.com/app/extension/fg_extension/all-1'),
114
+ array('img_path' => plugins_url("image/custom.png", __FILE__),
115
+ 'ext_title' => 'Custom Branding',
116
+ 'ext_desc' => 'This extensions allows you to remove and edit any FormGet branding from your forms. It allows you to quickly transform your FormGet form into your own branded form.',
117
+ 'ext_url' => 'http://www.formget.com/app/single_extension/pricing/formcapabilities-custombranding'),
118
+ array('img_path' => plugins_url("image/paypal.png", __FILE__),
119
+ 'ext_title' => 'PayPal',
120
+ 'ext_desc' => 'The PayPal Extension helps you to collect online payments through your forms. It accept credit card payments through forms instantly.',
121
+ 'ext_url' => 'http://www.formget.com/app/single_extension/pricing/payment-paypal'),
122
+ array('img_path' => plugins_url("image/email.png", __FILE__),
123
+ 'ext_title' => 'Email Notification',
124
+ 'ext_desc' => 'With this extension whenever a user fills out the form you will recieve an email notification notifying you about the form submission. This way you wont miss any of the form entries.',
125
+ 'ext_url' => 'http://www.formget.com/app/single_extension/pricing/notification-emailnotification'),
126
+ array('img_path' => plugins_url("image/mailc.jpg", __FILE__),
127
+ 'ext_title' => 'MailChimp',
128
+ 'ext_desc' => 'The MailChimp Extension helps you to store form messages on MailChimp mailing list. Thus help in collecting leads.',
129
+ 'ext_url' => 'http://www.formget.com/app/single_extension/pricing/thirdparty-mailchimp'),
130
+ array('img_path' => plugins_url("image/aweber.jpg", __FILE__),
131
+ 'ext_title' => 'Aweber',
132
+ 'ext_desc' => 'The Aweber Extension helps you to store your collected leads through forms on your Aweber mailing list.',
133
+ 'ext_url' => 'http://www.formget.com/app/single_extension/pricing/thirdparty-aweber'),
134
+ array('img_path' => plugins_url("image/logical.jpg", __FILE__),
135
+ 'ext_title' => 'Logical Forms',
136
+ 'ext_desc' => 'The Logical Forms Extension helps you to create form with condition logics that apply to form fields.',
137
+ 'ext_url' => 'http://www.formget.com/app/single_extension/pricing/formcapabilities-logicalforms')
138
  );
139
+ $list = '';
140
+ foreach ($extensions as $extension) {
141
+
142
+ $list .="<div class='block-content'>
143
+ <div class='block-left'><img src='" . $extension['img_path'] . "' class='entension-image'></div>
144
  <div class='block-right'>
145
+ <h3>" . $extension['ext_title'] . "</h3>
146
+ <a href='" . $extension['ext_url'] . "' target='_blank' class='view'>View Extension</a>
147
+ <p class='details'>" . $extension['ext_desc'] . "</p>
148
  </div>
149
  </div>";
 
150
  }
151
  return $list;
152
  }
153
 
 
 
154
  function cf_setting_page() {
155
  $url = plugins_url();
156
  ?>
157
 
158
+ <!-- <div id="fg_videoContainer" >
159
 
160
+ </div>-->
161
  <?php
162
  global $wpdb;
163
  $fg_video_code = get_option('fg_hide_video');
172
  </div>-->
173
 
174
  <?php } ?>
175
+
176
 
177
  <div id="fg_of_container" class="fg_wrap"
178
 
180
  <form id="fg_ofform" action="" method="POST">
181
  <div id="fg_header">
182
  <div class="fg_logo">
183
+ <h2> FormGet Contact Form</h2>
184
  <img src="<?php echo plugins_url('image/extension.jpg', __FILE__); ?>" class="extensionimage" alt="Extension" />
185
  <a href="http://www.formget.com/app/single_extension/pricing/formcapabilities-custombranding" target="_blank" class="anchorEx1"></a>
186
  <a href="http://www.formget.com/app/single_extension/pricing/payment-paypal" target="_blank" class="anchorEx2"></a>
202
  <span id="help_tab" class="nav-tab ">Help</span>
203
  <span id="gopro_tab" class="nav-tab ">Extensions</span>
204
  <!--<span id="support_tab" class="nav-tab ">Support</span>-->
205
+ <!--<span id="login_tab" class="nav-tab ">Login</span>-->
206
 
207
  </h2>
208
  </div>
229
  <textarea name="content[html]" cols="60" rows="10" class="regular-text" id="fg_content_html" style="width:900px"><?php echo show_embed_code(); ?></textarea>
230
  <p class="fg_info"><b>Select the page in which you want to show "Contact Us" tab. By default it is visible on every page.</b><p>
231
  <?php
232
+ $page_title = $wpdb->get_results("SELECT post_title, id FROM $wpdb->posts WHERE (post_type = 'page' AND post_status = 'publish')");
233
+ $val = get_option('fg_checked_page_id');
234
+ if (!empty($val) && in_array("home1", $val)) {
235
+ ?>
236
+ <input id="fg_selected_box" type="checkbox" name="checkbox" value="home1" checked>
237
+ <?php } else {
238
+ ?>
239
+ <input id="fg_selected_box" type="checkbox" name="checkbox" value="home1">
240
+ <?php
241
+ }
242
+ echo "Home" . "<br/>";
243
 
244
  foreach ($page_title as $title) {
245
  $fg_list_page_id = get_option('fg_checked_page_id');
276
  <div class="fg_group" id="pn_template">
277
  <div class="fg_section section-text">
278
  <h3 class="fg_heading"> Watch video tutorial to use Formget Contact Form Plugin</h3>
279
+ <p class="fg_info"><b>If you have any query. Please <a href="http://www.formget.com/contact-us/" target="blank">Contact Us</a></b> </p>
280
  <div id="help_txt">
281
  <iframe class="video_tobe_shown" width="700" height="400" src="//player.vimeo.com/video/84023688?autoplay=0&amp;loop=1&amp;rel=0&amp;wmode=transparent" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" __idm_id__="7182340"></iframe>
282
  </div>
283
+
284
+
285
  </div>
286
  </div>
287
  <div class="fg_group" id="pn_gopro">
297
  <iframe class="formget_contact_form" height='570' allowTransparency='true' frameborder='0' scrolling='no' style='width:100%;border:none' src='https://www.formget.com/app/embed/form/qQvs-639'>Your Contact </iframe>
298
  </div>
299
  </div>
300
+ <!--
301
+ <div class="fg_group" id="pn_login">
302
+ <div class="fg_section section-text">
303
+ <h3 class="fg_heading"> Login </h3>
304
+ <div class="outer_iframe_div" id="outer_iframe_div">
305
+ <div class="inner_iframe_div" id="inner_iframe_div" >
306
+ <iframe src="http://www.formget.com/app/login" name="iframe" id="iframebox" class="login-iframe" style="width:100%; height:900px; border:1px solid #dfdfdf; align:center; overflow-y:scroll;" >
307
+ </iframe>
308
+ </div>
309
+ </div>
310
+ </div>
311
+ </div>
312
+ -->
313
  </div>
314
  <div class="clear"></div>
315
  </div>
324
 
325
  function cf_embeded_script() {
326
  wp_enqueue_script('embeded_script', plugins_url('js/fg_script.js', __FILE__), array('jquery'));
327
+ wp_localize_script('embeded_script', 'script_call', array('ajaxurl' => admin_url('admin-ajax.php'), 'aj_nonce' => wp_create_nonce('script-nonce')));
328
+ wp_enqueue_script('mg_script', plugins_url('js/mg_script.js', __FILE__), array('jquery'));
329
+ wp_localize_script('mg_script', 'mg_option', array('ajaxurl' => admin_url('admin-ajax.php'), 'mg_option_nonce' => wp_create_nonce('mg_option_nonce')));
330
  }
331
 
332
+ if (isset($_GET['page']) == 'cf_page' || isset($_GET['page']) == 'cf_mg_page') {
333
  add_action('init', 'cf_embeded_script');
334
  }
335
 
336
  function cf_text_ajax_process_request() {
337
+ if (!check_ajax_referer('script-nonce', 'aj_nonce') && !is_user_logged_in() && !current_user_can('manage_options')) {
338
+ return;
339
+ }
340
  $text_value = $_POST['value'];
341
  // $val = $_POST['value_hide'];
342
+ if(isset($_POST['page_id']))
343
  $page_id = $_POST['page_id'];
344
+ else
345
+ $page_id = '';
346
  //echo $val;
347
+ $pos = strpos($text_value, "sideBar");
348
+ if ($pos == true || trim($text_value) == '') {
349
+ //update_option('fg_hide_video', $val);
350
+ update_option('fg_embed_code', $text_value);
351
+ update_option('fg_checked_page_id', $page_id);
352
+ //print_r($page_id);
353
+ echo 1;
354
+ } else {
355
+ echo "Please enter valid Sliding Form code";
356
+ }
 
 
357
  die();
358
  }
359
 
360
  add_action('wp_ajax_request_response', 'cf_text_ajax_process_request');
361
 
362
+ function show_embed_code() {
363
+ global $wpdb;
364
+ $fg_iframe_form = get_option('fg_embed_code');
365
+ $string = "sideBar";
366
+ $pos = strpos($fg_iframe_form, $string);
367
+ if ($pos == true) {
368
+ echo stripslashes($fg_iframe_form);
369
+ }
 
370
  }
371
+
372
  /*
373
+ if (is_page(cf_page)) {
374
+ add_action('init', 'show_embed_code');
375
+ }
376
+ */
377
 
378
 
379
  if (!function_exists('embeded_code')) {
393
  echo stripslashes($fg_iframe_form);
394
  }
395
  } else {
396
+ if (is_front_page() && $key == "home1") {
397
  if ($pos == true) {
398
  echo stripslashes($fg_iframe_form);
399
  }
406
  }
407
  }
408
  }
409
+
410
+ }
411
+
412
+ function cf_mg_subscribe_form() {
413
+ $mg_obj = new mailget();
414
+ $page_id = get_the_ID();
415
+ $mg_form_description_text = $mg_obj->mg_get_option('mg_selected_page_id');
416
+ $mg_enable_switch = $mg_obj->mg_get_option('mg_switch');
417
+ if ($mg_enable_switch == 'on') {
418
+ if (!empty($mg_form_description_text)) {
419
+ foreach ($mg_form_description_text as $key) {
420
+ if ($page_id == $key) {
421
+ $mg_obj->mg_subscribe_form();
422
+ } elseif (is_front_page() && $key == "home1") {
423
+ $mg_obj->mg_subscribe_form();
424
+ }
425
+ }
426
+ } else {
427
+ $mg_obj->mg_subscribe_form();
428
+ }
429
+ }
430
  }
431
 
432
+ if (!is_admin()) {
433
+ add_action('wp_footer', 'cf_mg_subscribe_form');
434
+ }
435
  if (!is_admin()) {
436
  add_action('wp_head', 'embeded_code');
437
  }
438
+
439
+ function mg_style() {
440
+ wp_enqueue_style('mg-style', plugins_url('css/mg_popup.css', __FILE__));
441
+ wp_enqueue_script("mg-front", plugins_url('js/mg_front.js', __FILE__), array('jquery'));
442
+ wp_localize_script('mg-front', 'mg', array('ajaxurl' => admin_url('admin-ajax.php'), 'imgurl' => plugins_url('image/mailget.png', __FILE__), 'mg_nonce' => wp_create_nonce('mg_nonce')));
443
+ }
444
+
445
+ add_action('wp_enqueue_scripts', 'mg_style');
446
  //schort code function
447
  if (!function_exists('formget_shortcode')) {
448
 
450
  extract(shortcode_atts(array(
451
  'user' => '',
452
  'formcode' => '',
453
+ 'tabtext' => 'Contact Us',
454
+ 'position' => 'right',
455
+ 'bgcolor' => 'e54040',
456
+ 'textcolor' => 'ffffff',
457
+ 'fontsize' => '16',
458
+ 'width' => '350',
459
  'allowTransparency' => true,
460
  'height' => '500',
461
  'tab' => ''
469
  return $iframe_formget;
470
  }
471
  if ($tab == 'tabbed') {
472
+
473
  $tabbed_formget = <<<EOD
474
  <script type='text/javascript'>
475
  (function(s)
515
 
516
 
517
  // FormGet Widget
518
+ if (!class_exists('Formget_Widget')) {
519
+
520
+ class Formget_Widget extends WP_Widget {
521
+
522
+ function __construct() {
523
+ parent::__construct(
524
+ 'FormGet_widget', __('FormGet Widget', 'formget_widget'), array('description' => __('FormGet widget to show forms on sidebar and footer', 'formget_widget'),)
525
+ );
526
+ }
527
+
528
+ public function widget($args, $instance) {
529
+ $text = format_to_edit($instance['textarea']);
530
+ $pos = strpos($text, 'embed');
531
+ ?>
532
+ <div class='formget_widget' style="<?php if ($pos == True) { ?>
533
+ -webkit-box-shadow: 1px 0px 11px rgba(50, 50, 50, 0.74);-moz-box-shadow: 1px 0px 11px rgba(50, 50, 50, 0.74);box-shadow: 1px 0px 11px rgba(50, 50, 50, 0.74); margin-bottom: 25px; padding-top: 15px;
534
+ <?php }
535
+ ?>">
536
+ <?php
537
+ echo $instance['textarea'];
538
+ echo "</div>";
539
+ }
540
+
541
+ public function update($new_instance, $old_instance) {
542
+ return $new_instance;
543
+ }
544
+
545
+ public function form($instance) {
546
+ $instance = wp_parse_args((array) $instance, array('textarea' => ''));
547
+ $text = format_to_edit($instance['textarea']);
548
+ ?>
549
+ <p>
550
+ <label for="<?php echo $this->get_field_id('textarea'); ?>"><?php _e('Textarea:', 'wp_widget_plugin'); ?></label>
551
+ <textarea class="widefat" id="<?php echo $this->get_field_id('textarea'); ?>" name="<?php echo $this->get_field_name('textarea'); ?>" rows="7" cols="20" placeholder="Enter here your Iframe Code
552
+ "><?php echo $text ?></textarea>
553
+ </p>
554
+ <?php
555
+ !empty($text)
556
+ and print '<h3>Preview</h3><div style="border:3px solid #369;padding:11px; margin-bottom: 5px;">'
557
+ . $instance['textarea'] . '</div>';
558
+ ?>
559
+ <?php
560
+ }
561
+
562
+ }
563
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
564
  }
565
+ add_action('widgets_init', 'register_formget_widget', 20);
 
 
566
 
567
+ if (!function_exists('register_formget_widget')) {
568
+
569
+ function register_formget_widget() {
570
+ register_widget('Formget_Widget');
571
+ }
 
572
 
573
+ }
574
+ ?>
js/fg_script.js CHANGED
@@ -1,44 +1,44 @@
1
- jQuery(document).ready(function() {
2
  jQuery('.fg_group').hide();
3
  jQuery('#pn_content').css("display", "block");
4
 
5
- jQuery('#embed_tab').click(function() {
6
  // alert("hello");
7
  jQuery('.fg_group').hide();
8
  jQuery('.nav-tab').removeClass('nav-tab-active');
9
  jQuery(this).addClass('nav-tab-active');
10
  jQuery('#pn_displaysetting').css("display", "block");
11
  jQuery(".fg_embed_code_save").css("display", "block");
12
-
13
- });
14
 
15
- /*
16
- jQuery('#support_tab').click(function() {
17
- // alert("hello");
18
- jQuery('.fg_group').hide();
19
- jQuery('.nav-tab').removeClass('nav-tab-active');
20
- jQuery(this).addClass('nav-tab-active');
21
- jQuery('#pn_contactus').css("display", "block");
22
  });
23
- */
24
-
25
- jQuery('#help_tab').click(function() {
 
 
 
 
 
 
 
 
 
26
  // alert("hello");
27
  jQuery('.fg_group').hide();
28
  jQuery('.nav-tab').removeClass('nav-tab-active');
29
  jQuery(this).addClass('nav-tab-active');
30
  jQuery('#pn_template').css("display", "block");
31
- });
32
 
33
- jQuery('#gopro_tab').click(function() {
34
- jQuery('.fg_group').hide();
35
  jQuery('.nav-tab').removeClass('nav-tab-active');
36
  jQuery(this).addClass('nav-tab-active');
37
  jQuery('#pn_gopro').css("display", "block");
38
- jQuery('#ext-iframe').attr('src', jQuery('#ext-iframe').attr('src'));
39
- });
40
 
41
- jQuery('#button_to_upgrade').click(function() {
42
  // alert("hello");
43
  //window.location.href = "http://www.formget.com/app/pricing";
44
  //var win = window.open("http://www.formget.com/app/pricing", '_blank');
@@ -49,57 +49,56 @@ jQuery(document).ready(function() {
49
  //jQuery('#pn_gopro').css("display", "block");
50
  });
51
 
52
- jQuery('#form_tab').click(function() {
53
  // alert("hello");
54
  jQuery('.fg_group').hide();
55
  jQuery('.nav-tab').removeClass('nav-tab-active');
56
  jQuery(this).addClass('nav-tab-active');
57
  jQuery('#pn_content').css("display", "block");
58
- //jQuery(".fbuild-iframe").attr("src", jQuery(".fbuild-iframe").attr("src"));
59
  });
60
-
61
- /*
62
- jQuery('#login_tab').click(function() {
63
- // alert("hello");
64
- jQuery('.fg_group').hide();
65
- jQuery('.nav-tab').removeClass('nav-tab-active');
66
- jQuery(this).addClass('nav-tab-active');
67
- jQuery('#pn_login').css("display", "block");
68
- jQuery('.login-iframe').attr('src', jQuery('.login-iframe').attr('src'));
69
- });
70
- */
71
 
 
 
 
 
 
 
 
 
 
 
72
 
73
- jQuery('.fg_embed_code_save').click(function() {
 
74
  jQuery('div#loader_img').css("display", "block");
75
  var text_value = jQuery('textarea#fg_content_html').val();
76
- var checkedValues = jQuery('input:checkbox:checked').map(function() {
77
  return this.value;
78
  }).get();
79
  //alert(checkedValues);
80
-
81
  var data = {
82
  action: 'request_response',
83
  value: text_value,
84
  page_id: checkedValues,
85
- aj_nonce: script_call.aj_nonce
86
  };
87
- jQuery.post(script_call.ajaxurl, data, function(response) {
88
  if (response == 1) {
89
- if (jQuery("#error").length)
90
- jQuery("#error").remove();
91
- jQuery('div#loader_img').css("display", "none");
92
-
93
- }
94
  else {
95
- if (!jQuery("#error").length)
96
- jQuery('textarea#fg_content_html').after("<p id='error' style='margin-left:18px; color:red'>"+response+"</p>");
97
  jQuery('div#loader_img').css("display", "none");
98
  }
99
  });
100
  });
101
 
102
- jQuery('div#fg_video_getting_started').click(function() {
103
  //jQuery('div#fg_videoContainer').css({"display": "block"});
104
  //autoPlayVideo('84023688', '700', '400');
105
  });
@@ -110,18 +109,18 @@ jQuery(document).ready(function() {
110
  jQuery("#fg_videoContainer").html('<iframe class="video_tobe_shown" width="' + width + '" height="' + height + '" src="//player.vimeo.com/video/' + vcode + '?autoplay=1&loop=1&rel=0&wmode=transparent" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>');
111
  }
112
 
113
- jQuery('div#fg_videoContainer').click(function() {
114
  jQuery('div#fg_videoContainer').css({"display": "none"});
115
  jQuery('div#fg_videoContainer').empty();
116
  });
117
  //jQuery("div.")
118
- jQuery(".hide_video_notice").click(function() {
119
  //alert("hello");
120
  var hide_data = {
121
  action: 'request_response',
122
  value_hide: "hide"
123
  };
124
- jQuery.post(script_call.ajaxurl, hide_data, function(response) {
125
  if (response) {
126
  //alert(response);
127
  jQuery('.fg_notice_div').hide();
1
+ jQuery(document).ready(function () {
2
  jQuery('.fg_group').hide();
3
  jQuery('#pn_content').css("display", "block");
4
 
5
+ jQuery('#embed_tab').click(function () {
6
  // alert("hello");
7
  jQuery('.fg_group').hide();
8
  jQuery('.nav-tab').removeClass('nav-tab-active');
9
  jQuery(this).addClass('nav-tab-active');
10
  jQuery('#pn_displaysetting').css("display", "block");
11
  jQuery(".fg_embed_code_save").css("display", "block");
 
 
12
 
 
 
 
 
 
 
 
13
  });
14
+
15
+ /*
16
+ jQuery('#support_tab').click(function() {
17
+ // alert("hello");
18
+ jQuery('.fg_group').hide();
19
+ jQuery('.nav-tab').removeClass('nav-tab-active');
20
+ jQuery(this).addClass('nav-tab-active');
21
+ jQuery('#pn_contactus').css("display", "block");
22
+ });
23
+ */
24
+
25
+ jQuery('#help_tab').click(function () {
26
  // alert("hello");
27
  jQuery('.fg_group').hide();
28
  jQuery('.nav-tab').removeClass('nav-tab-active');
29
  jQuery(this).addClass('nav-tab-active');
30
  jQuery('#pn_template').css("display", "block");
31
+ });
32
 
33
+ jQuery('#gopro_tab').click(function () {
34
+ jQuery('.fg_group').hide();
35
  jQuery('.nav-tab').removeClass('nav-tab-active');
36
  jQuery(this).addClass('nav-tab-active');
37
  jQuery('#pn_gopro').css("display", "block");
38
+ jQuery('#ext-iframe').attr('src', jQuery('#ext-iframe').attr('src'));
39
+ });
40
 
41
+ jQuery('#button_to_upgrade').click(function () {
42
  // alert("hello");
43
  //window.location.href = "http://www.formget.com/app/pricing";
44
  //var win = window.open("http://www.formget.com/app/pricing", '_blank');
49
  //jQuery('#pn_gopro').css("display", "block");
50
  });
51
 
52
+ jQuery('#form_tab').click(function () {
53
  // alert("hello");
54
  jQuery('.fg_group').hide();
55
  jQuery('.nav-tab').removeClass('nav-tab-active');
56
  jQuery(this).addClass('nav-tab-active');
57
  jQuery('#pn_content').css("display", "block");
58
+ //jQuery(".fbuild-iframe").attr("src", jQuery(".fbuild-iframe").attr("src"));
59
  });
 
 
 
 
 
 
 
 
 
 
 
60
 
61
+ /*
62
+ jQuery('#login_tab').click(function() {
63
+ // alert("hello");
64
+ jQuery('.fg_group').hide();
65
+ jQuery('.nav-tab').removeClass('nav-tab-active');
66
+ jQuery(this).addClass('nav-tab-active');
67
+ jQuery('#pn_login').css("display", "block");
68
+ jQuery('.login-iframe').attr('src', jQuery('.login-iframe').attr('src'));
69
+ });
70
+ */
71
 
72
+
73
+ jQuery('.fg_embed_code_save').click(function () {
74
  jQuery('div#loader_img').css("display", "block");
75
  var text_value = jQuery('textarea#fg_content_html').val();
76
+ var checkedValues = jQuery('input:checkbox:checked').map(function () {
77
  return this.value;
78
  }).get();
79
  //alert(checkedValues);
 
80
  var data = {
81
  action: 'request_response',
82
  value: text_value,
83
  page_id: checkedValues,
84
+ aj_nonce: script_call.aj_nonce
85
  };
86
+ jQuery.post(script_call.ajaxurl, data, function (response) {
87
  if (response == 1) {
88
+ if (jQuery("#error").length)
89
+ jQuery("#error").remove();
90
+ jQuery('div#loader_img').css("display", "none");
91
+
92
+ }
93
  else {
94
+ if (!jQuery("#error").length)
95
+ jQuery('textarea#fg_content_html').after("<p id='error' style='margin-left:18px; color:red'>" + response + "</p>");
96
  jQuery('div#loader_img').css("display", "none");
97
  }
98
  });
99
  });
100
 
101
+ jQuery('div#fg_video_getting_started').click(function () {
102
  //jQuery('div#fg_videoContainer').css({"display": "block"});
103
  //autoPlayVideo('84023688', '700', '400');
104
  });
109
  jQuery("#fg_videoContainer").html('<iframe class="video_tobe_shown" width="' + width + '" height="' + height + '" src="//player.vimeo.com/video/' + vcode + '?autoplay=1&loop=1&rel=0&wmode=transparent" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>');
110
  }
111
 
112
+ jQuery('div#fg_videoContainer').click(function () {
113
  jQuery('div#fg_videoContainer').css({"display": "none"});
114
  jQuery('div#fg_videoContainer').empty();
115
  });
116
  //jQuery("div.")
117
+ jQuery(".hide_video_notice").click(function () {
118
  //alert("hello");
119
  var hide_data = {
120
  action: 'request_response',
121
  value_hide: "hide"
122
  };
123
+ jQuery.post(script_call.ajaxurl, hide_data, function (response) {
124
  if (response) {
125
  //alert(response);
126
  jQuery('.fg_notice_div').hide();
js/mg_front.js ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function () {
2
+ jQuery('.mg-form-submit #save').click(function () {
3
+ var x = document.forms["mg_form"]["mg_email"].value;
4
+ var y = document.forms["mg_form"]["mg_name"].value;
5
+ var atpos = x.indexOf("@");
6
+ var dotpos = x.lastIndexOf(".");
7
+ if ((atpos < 1 || dotpos < atpos + 2 || dotpos + 2 >= x.length) || (y.length < 2)) {
8
+ if (y.length < 2) {
9
+ document.getElementById("mg_show_name_msg").innerHTML = "Name required !";
10
+ document.getElementById("mg_show_name_msg").style.margin = "5px 0 -5px";
11
+ document.forms["mg_form"]["mg_name"].focus();
12
+ return false;
13
+ }
14
+ document.getElementById("mg_show_msg").innerHTML = "valid email required !";
15
+ document.getElementById("mg_show_msg").style.margin = "5px 0 -5px";
16
+ document.forms["mg_form"]["mg_email"].focus();
17
+ return false;
18
+ } else {
19
+ jQuery('#mg_form_loading_img').show();
20
+ var data = {
21
+ 'action': 'mg_form_action',
22
+ 'mg_email': x,
23
+ 'mg_name': y,
24
+ 'mg_nonce': mg.mg_nonce
25
+ };
26
+ // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
27
+ jQuery.post(mg.ajaxurl, data, function (response) {
28
+ var success = jQuery('#mg_form_wraper_div');
29
+ var form_height = jQuery('#mg_wrapper_right').height() - 70;
30
+ success.empty().fadeIn();
31
+ success.html('<div style="height:' + form_height + 'px;margin-top:60px;"><center><p><strong>Your Message Submitted Successfully.</strong></p><br><a href="http://www.formget.com/mailget/?utm_source=MGPluginFooter&utm_medium=MGPluginFooter&utm_campaign=MailGet" target="_blank"><img src="'+mg.imgurl+'" width=""></a></center></div>');
32
+ success.fadeIn();
33
+ });
34
+ }
35
+ });
36
+ });
37
+ jQuery(document).ready(function () {
38
+ jQuery('#mg_header_right').click(function () {
39
+ jQuery("#mg_box").toggleClass('popup').fadeIn('normal');
40
+ });
41
+ jQuery('.mg-form-slide-close').click(function () {
42
+ jQuery("#mg_box").toggleClass('popup').fadeIn('normal');
43
+ });
44
+ jQuery('#mg_email').click(function () {
45
+ jQuery("#mg_show_msg").empty().css('margin', '0');
46
+ });
47
+ jQuery('#mg_name').click(function () {
48
+ jQuery("#mg_show_name_msg").empty().css('margin', '0');
49
+ });
50
+ setTimeout(function () {
51
+ jQuery("#mg_box").css('visibility', 'visible');
52
+ jQuery('#mg_box').addClass('bounceInRight');
53
+ }, 3000);
54
+ var form_height = jQuery('#mg_wrapper_right').height();
55
+ setTimeout(function () {
56
+ var he = jQuery('#mg_header_right').height() + 10;
57
+ var net_height = form_height / 2 - he / 2;
58
+ jQuery('#mg_header_right').css('margin-top', net_height);
59
+ }, 1500);
60
+ });
js/mg_script.js ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function () {
2
+ jQuery('.mg-group').hide();
3
+ jQuery('#mg_subscribe_content').css("display", "block");
4
+
5
+ jQuery('#mg_subscribe_tab').click(function () {
6
+ jQuery('.mg-group').hide();
7
+ jQuery('.nav-tab').removeClass('nav-tab-active');
8
+ jQuery(this).addClass('nav-tab-active');
9
+ jQuery('#mg_subscribe_content').css("display", "block");
10
+ });
11
+
12
+ jQuery('#mg_mailget_tab').click(function () {
13
+ jQuery('.mg-group').hide();
14
+ jQuery('.nav-tab').removeClass('nav-tab-active');
15
+ jQuery(this).addClass('nav-tab-active');
16
+ jQuery('#mg_mailget_content').css("display", "block");
17
+ });
18
+
19
+ jQuery('#mg_setting_tab').click(function () {
20
+ jQuery('.mg-group').hide();
21
+ jQuery('.nav-tab').removeClass('nav-tab-active');
22
+ jQuery(this).addClass('nav-tab-active');
23
+ jQuery('#mg_setting_content').css("display", "block");
24
+ });
25
+
26
+ jQuery('#mg_help_tab').click(function () {
27
+ jQuery('.mg-group').hide();
28
+ jQuery('.nav-tab').removeClass('nav-tab-active');
29
+ jQuery(this).addClass('nav-tab-active');
30
+ jQuery('#mg_help_content').css("display", "block");
31
+
32
+ });
33
+ jQuery('#submit_mg_api_key').click(function () {
34
+ jQuery("#mg_loading_img").show();
35
+ jQuery("#mg_error_box").hide();
36
+ var data = {
37
+ 'action': 'mg_display_contact_list',
38
+ 'mg_api_key': jQuery('#mg_api_key').val(),
39
+ 'mg_option_nonce': mg_option.mg_option_nonce
40
+ };
41
+
42
+ // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
43
+ jQuery.post(ajaxurl, data, function (response) {
44
+ var data = JSON.parse(response);
45
+ if (data.error) {
46
+ jQuery("#mg_error_box").show();
47
+ jQuery("#mg_loading_img").hide();
48
+ jQuery("#mg_contact_list_id option").remove();
49
+ } else if (data.result) {
50
+ jQuery("#mg_loading_img").hide();
51
+ jQuery("#mg_error_box").hide();
52
+ jQuery('#mg_contact_list_id').html(data.result);
53
+ }
54
+ });
55
+ });
56
+
57
+ jQuery('#submit_mg_contact_list_id').click(function () {
58
+ var data = {
59
+ 'action': 'mg_save_contact_list_id',
60
+ 'mg_contact_list_id': jQuery('#mg_contact_list_id').val(),
61
+ 'mg_option_nonce': mg_option.mg_option_nonce
62
+ };
63
+ // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
64
+ jQuery.post(ajaxurl, data, function (response) {
65
+ var success = jQuery('#mg_msg_popup_list_option');
66
+ var maskWidth = jQuery(window).width();
67
+ var maskHeight = jQuery(window).height();
68
+ var dialogLeft = (maskWidth / 2) - (success.width()) / 2;
69
+ var dialogTop = (maskHeight / 2) - (success.width()) / 2;
70
+ success.css({top: dialogTop, left: dialogLeft, position: 'fixed'});
71
+ mg_popup(success, 2000);
72
+ });
73
+ });
74
+
75
+ jQuery('#submit_mg_options').click(function () {
76
+
77
+ var checkedValues = jQuery('input[name=checkbox]:checkbox:checked').map(function () {
78
+ return this.value;
79
+ }).get();
80
+ var mgswitch = jQuery('input[name=mg_switch]:checkbox:checked').map(function () {
81
+ return this.value;
82
+ }).get();
83
+ var data = {
84
+ 'action': 'mg_save_options',
85
+ 'mg_switch': mgswitch,
86
+ 'mg_form_slide_text': jQuery('#mg_form_slide_text').val(),
87
+ 'mg_form_heading_text': jQuery('#mg_form_heading_text').val(),
88
+ 'mg_form_description_text': jQuery('#mg_form_description_text').val(),
89
+ 'mg_form_sbmt_text': jQuery('#mg_form_sbmt_text').val(),
90
+ 'mg_selected_page_id': checkedValues,
91
+ 'mg_option_nonce': mg_option.mg_option_nonce
92
+ };
93
+ // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
94
+ jQuery.post(ajaxurl, data, function (response) {
95
+ var success = jQuery('#mg_msg_popup_option');
96
+ var maskWidth = jQuery(window).width();
97
+ var maskHeight = jQuery(window).height();
98
+ var dialogLeft = (maskWidth / 2) - (success.width()) / 2;
99
+ var dialogTop = (maskHeight / 2) - (success.width()) / 2;
100
+ success.css({top: dialogTop, left: dialogLeft, position: 'fixed'});
101
+ mg_popup(success, 2000);
102
+ });
103
+ });
104
+ jQuery('#mg_form_heading_text').click(function () {
105
+ mg_popup('#mg_form_heading_help', 3000);
106
+ });
107
+ jQuery('#mg_form_description_text').click(function () {
108
+ mg_popup('#mg_form_description_help', 3000);
109
+ });
110
+ jQuery('#mg_form_slide_text').click(function () {
111
+ mg_popup('#mg_form_slide_help', 3000);
112
+ });
113
+ jQuery('#mg_form_sbmt_text').click(function () {
114
+ mg_popup('#mg_form_sbmt_help', 3000);
115
+ });
116
+ function mg_popup(mg_id, mg_time) {
117
+ var success = jQuery(mg_id);
118
+ success.fadeIn();
119
+ window.setTimeout(function () {
120
+ success.fadeOut();
121
+ }, mg_time);
122
+ }
123
+ jQuery(".list-img").show();
124
+ jQuery("#submit_mg_contact_list_id").hide();
125
+ var list_data = {
126
+ 'action': 'mg_display_contact_list',
127
+ 'mg_api_key': jQuery('#mg_api_key').val(),
128
+ 'mg_option_nonce': mg_option.mg_option_nonce
129
+ };
130
+ jQuery.post(ajaxurl, list_data, function (response) {
131
+ //alert(response);
132
+ var list_data = JSON.parse(response);
133
+ if (list_data.error) {
134
+ jQuery(".list-img").hide();
135
+ jQuery("#mg-error-box").show();
136
+ jQuery("#submit_mg_contact_list_id").show();
137
+ } else if (list_data.result) {
138
+ jQuery(".list-img").hide();
139
+ jQuery("#submit_mg_contact_list_id").show();
140
+ jQuery('#mg_contact_list_id').html(list_data.result);
141
+ } else if (list_data.new) {
142
+ jQuery(".list-img").hide();
143
+ jQuery("#submit_mg_contact_list_id").show();
144
+ }
145
+ });
146
+
147
+ });
mailget.php ADDED
@@ -0,0 +1,380 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Class to add MailGet Functionality
4
+ */
5
+
6
+ class mailget {
7
+
8
+ public function __construct() {
9
+
10
+ }
11
+
12
+ /*
13
+ * Generate MailGet Dashboard in admin panel
14
+ */
15
+
16
+ public function mg_interface() {
17
+ ?>
18
+ <div class="mg-main-container">
19
+ <div id="mg_header">
20
+ <div class="mg-logo">
21
+ <h2>Email Marketing</h2>
22
+ </div>
23
+ <div class="clear"></div>
24
+ </div>
25
+ <div class="mg-nav wrap" >
26
+ <h2 class="nav-tab-wrapper">
27
+ <span id="mg_subscribe_tab" class="nav-tab nav-tab-active ">Subscription Form</span>
28
+ <span id="mg_mailget_tab" class="nav-tab">MailGet</span>
29
+ <span id="mg_setting_tab" class="nav-tab ">MailGet Form Settings</span>
30
+ <span id="mg_help_tab" class="nav-tab ">MailGet Help</span>
31
+ </h2>
32
+ </div>
33
+ <div class="mg-content">
34
+ <div class="mg-group" id="mg_subscribe_content">
35
+ <div class="mg-section section-text">
36
+ <h3 class="mg-heading">Setting for subscription Form</h3>
37
+ </div>
38
+ <div id="mg_msg_popup_option" class="mg-msg-popup-box" style="display: none;">Option Saved</div>
39
+ <div id = "mg_content_box">
40
+ <p class = "mg-box-text">Enable/Disable subscribe form</p>
41
+ <div class="mg-onoffswitch">
42
+ <input type="checkbox" name="mg_switch" class="mg-onoffswitch-checkbox" id="mg_switch" <?php echo ($this->mg_get_option('mg_switch') == 'off') ? '' : 'checked'; ?>>
43
+ <label class="mg-onoffswitch-label" for="mg_switch">
44
+ <span class="mg-onoffswitch-inner"></span>
45
+ <span class="mg-onoffswitch-switch"></span>
46
+ </label>
47
+ </div>
48
+ <p class = "mg-box-text">Sliding Form Heading</p>
49
+ <div class="mg-form-text">
50
+ <input class = "mg-box-input" type = "text" name = "mg_form_slide_text" id = "mg_form_slide_text" value = "<?php echo $this->mg_get_option('mg_form_slide_text'); ?>" placeholder = "Subscribe Now!" />
51
+ <div id="mg_form_slide_help" class="mg-form-help-box" style="display: none;">Enter the Sliding Tab text</div>
52
+ </div>
53
+ <p class="mg-box-text"><b>Heading and Description for subscription form</b></p>
54
+ <div class="mg-form-text">
55
+ <input class = "mg-box-input" type = "text" name = "mg_form_heading_text" id = "mg_form_heading_text" value = "<?php echo $this->mg_get_option('mg_form_heading_text'); ?>" placeholder = "Form Heading" />
56
+ <div id="mg_form_heading_help" class="mg-form-help-box" style="display: none;">Enter your Form Heading</div>
57
+ </div>
58
+ <div class="mg-form-text">
59
+ <textarea id="mg_form_description_text" name="mg_form_description_text" rows="4" placeholder="Form Description"><?php echo $this->mg_get_option('mg_form_description_text'); ?></textarea>
60
+ <div id="mg_form_description_help" class="mg-form-help-box" style="display: none;">Enter your Form Description</div>
61
+ </div>
62
+ <p class="mg-box-text"><b>Subscription Form Button Text</b></p>
63
+ <div class="mg-form-text">
64
+ <input class = "mg-box-input" type = "text" name = "mg_form_sbmt_text" id = "mg_form_sbmt_text" value = "<?php echo $this->mg_get_option('mg_form_sbmt_text'); ?>" placeholder = "Get It Now" />
65
+ <div id="mg_form_sbmt_help" class="mg-form-help-box" style="display: none;">Enter Submit button text</div>
66
+ </div>
67
+ <p class="mg-box-text"><b>Select the page in which you want to show "Contact Us" tab. By default it is visible on every page.</b></p>
68
+ <p><a target="new" href="http://www.formget.com/mailget/builder_login">Click here to signup on MailGet and get api key.</a></p>
69
+ <?php
70
+ global $wpdb;
71
+ $page_title = $wpdb->get_results("SELECT post_title, id FROM $wpdb->posts WHERE (post_type = 'page' AND post_status = 'publish')");
72
+ $val = $this->mg_get_option('mg_selected_page_id');
73
+ if (!empty($val) && in_array("home1", $val)) {
74
+ ?>
75
+ <span id="mg_selected_box"><input id="mg_selected_box" type="checkbox" name="checkbox" value="home1" checked />Home</span>
76
+ <?php } else {
77
+ ?>
78
+ <span id="mg_selected_box"><input id="mg_selected_box" type="checkbox" name="checkbox" value="home1" />Home</span>
79
+ <?php
80
+ }
81
+
82
+ foreach ($page_title as $title) {
83
+ ?>
84
+ <span id="mg_selected_box"><input id="mg_selected_box" type="checkbox" name="checkbox" value="<?php echo $title->id; ?>" <?php echo (!empty($val) && in_array($title->id, $val)) ? 'checked' : ''; ?> /><?php echo $title->post_title; ?> </span>
85
+ <?php }
86
+ ?>
87
+ </div>
88
+ <div class="mg-section section-text" style="height: 45px;margin-bottom: 0;">
89
+ <input type = "button" id="submit_mg_options" class = "button-primary mg-submit-btn" name = "submit_mg_options" value = "Save Option">
90
+ </div>
91
+ </div>
92
+ <div class="mg-group" id="mg_mailget_content">
93
+ <div class="mg-section section-text">
94
+ <h3 class="mg-heading"> Login to MailGet and generate Api key.</h3>
95
+ <iframe src="http://www.formget.com/mailget/builder_login/new_user" class="fbuild-iframe" name="iframe" style="width:1245px; height:900px; border:1px solid #dfdfdf; align:center; overflow-y:scroll;" >
96
+ </iframe>
97
+ </div>
98
+ </div>
99
+ <div class="mg-group" id="mg_setting_content">
100
+ <div class="mg-section section-text">
101
+ <h3 class="mg-heading">Set all the setting for MailGet Popup Box</h3>
102
+ </div>
103
+ <div id="mg_content_box">
104
+ <p class="mg-box-text">Enter Your MailGet Api Key</p>
105
+ <input class="mg-box-input" id="mg_api_key" type="text" name="mg_api_key" value="<?php echo $this->mg_get_option('mg_api_key'); ?>" />
106
+ <input type="button" id="submit_mg_api_key" class="button-primary mg-submit-btn" name="submit_mg_api_key" value="Get List" /><span id="mg_loading_img_span"><img id="mg_loading_img" src="<?php echo plugins_url('image/mg-ajax-loader.gif', __FILE__); ?>" style="display: none"></span>
107
+ </div>
108
+ <span id='mg_error_box' style="display: none;">Invalid API Key</span>
109
+ <div id="mg_content_box">
110
+ <p class="mg-box-text">Select Your Contact List</p>
111
+ <select id="mg_contact_list_id" class="mg-box-input" name="mg_contact_list_id"></select>
112
+ <input type = "button" id="submit_mg_contact_list_id" class = "button-primary mg-submit-btn" name = "submit_mg_contact_list_id" value = "Save List" style="display: none;">
113
+ <span id="mg_loading_img_span"><img id="mg_loading_img" class = 'list-img' src="<?php echo plugins_url('image/mg-ajax-loader.gif', __FILE__); ?>" style="display: none"></span>
114
+ </div>
115
+ <div id="mg_msg_popup_list_option" class="mg-msg-popup-box" style="display: none;">List Saved</div>
116
+ </div>
117
+ <div class = "mg-group" id = "mg_help_content">
118
+ <div class="mg-section section-text">
119
+ <h3 class="mg-heading">To get MailGet api key, follow the steps below:</h3>
120
+ </div>
121
+ <div id="mg_content_box">
122
+ <div class="mg-help">
123
+ <ol>
124
+ <li>Signup On <a target="new" href="http://www.formget.com/mailget/builder_login">MailGet</a></li>
125
+ <li> After login, create a new list. For That go to <span class="mg-help-guide">contacts tab -> Add New List -> Enter the name of your list -> Add</span></li>
126
+ <p>Your list is created now.</p>
127
+ <li> Once you're done creating list, GoTo<span class="mg-help-guide"> Settings Tab -> INTEGRATIONS -> MailGet API</span></li>
128
+ <li> Now click on <span class="mg-help-guide">Regenerate</span> button you will get an <span class="mg-help-guide">API Key </span>. Copy the key code from the text field.</li>
129
+ <li> Now click on <span class="mg-help-guide">MailGet Form Setting</span> tab present at the left side of <span class="mg-help-guide">MailGet Help</span> tab. Enter your MAILGET api key and click <span class="mg-help-guide">Get List</span>.</li>
130
+ <li>When you click the button your list will appear. Now all you need to do is select the list in which you want to store your contact details and then click on <span class="mg-help-guide">Save list</span>.</li>
131
+ <p>Now your are done!. Whenever a user subscribes to your form his details get stored.</p>
132
+ </ol>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </div>
138
+ <?php
139
+ }
140
+
141
+ /*
142
+ * Generate MailGet Popup on front-end
143
+ */
144
+
145
+ public function mg_subscribe_form() {
146
+ $mg_api_key = $this->mg_get_option('mg_api_key');
147
+ ?>
148
+ <div id="mg_box" data-class="mg_slide_right" class="mg-css-anim-right mg-animated ">
149
+ <div id="mg_header_right" class="mg-header-right" style="width: 20px; margin-top: 110px; right:0; background-color: rgb(23, 184, 111);">
150
+ <span class="mg-header-title-right">
151
+ <img src="//www.formget.com/app/code/contact_tab?c=<?php echo ($this->mg_get_option('mg_form_slide_text') != '') ? $this->mg_get_option('mg_form_slide_text') : 'Subscribe Now!'; ?>&amp;t_color=ffffff&amp;b_color=17B86F&amp;f_size=16&amp;t_pos=right" alt="Subscribe Now!">
152
+ </span>
153
+ </div>
154
+ <div id="mg_wrapper_right" class="mg-wrapper-right" style="width: 291px;">
155
+ <?php if ($mg_api_key != '') { ?>
156
+ <span class="mg-form-slide-close"></span>
157
+ <div class="mg-form-wrapper" id="success_mg_form">
158
+ <div class="mg-form-column-two" id="mg_form_wraper_div">
159
+ <form class="view-mg-form" id="mg_form" method="post">
160
+ <ul id="unorder_list_container">
161
+ <div class="view-header">
162
+ <h2 id="mg_form_setting_para_1"><?php echo $this->mg_get_option('mg_form_heading_text'); ?></h2>
163
+ <p id="mg_form_setting_para_2"><?php echo $this->mg_get_option('mg_form_description_text'); ?></p>
164
+ </div>
165
+ <li style="display:block;" class="inkdesk-mg-form" id="0" data-title="1">
166
+ <div class="view-wrapper">
167
+ <div class="mg-outlined">
168
+ <input type="text" name="mg_name" id="mg_name" maxlength="" data-label="Name" placeholder="Name" required="" />
169
+ </div>
170
+ <span id="mg_show_name_msg"></span>
171
+ </div>
172
+ </li>
173
+ <li style="display:block;" class="inkdesk-mg-form" id="1" data-title="2">
174
+ <div class="view-wrapper" >
175
+ <div class="mg-outlined">
176
+ <input type="email" name="mg_email" id="mg_email" maxlength="" data-label="Email" placeholder="Email" required="" />
177
+ </div>
178
+ <span id="mg_show_msg"></span>
179
+ </div>
180
+ </li>
181
+ <li class="mg-form-button" id="" data-title="Button">
182
+ <input type="hidden" name="save">
183
+ <span class="mg-form-submit">
184
+ <input type="button" name="save" id="save" value="<?php echo ($this->mg_get_option('mg_form_sbmt_text') == '') ? 'Get It Now' : $this->mg_get_option('mg_form_sbmt_text'); ?>"/>
185
+ </span>
186
+ </li>
187
+ </ul>
188
+ </form>
189
+ <center>
190
+ <a class="mg-powered-by" href="http://www.formget.com/mailget/?utm_source=MGPluginFooter&utm_medium=MGPluginFooter&utm_campaign=MailGet" target="_blank">Powered by MailGet</a>
191
+ <br>
192
+ <img id="mg_form_loading_img" style="margin:5px auto;display:none" src="https://s3-us-west-2.amazonaws.com/formget/view-form/images/save_gif.gif">
193
+ </center>
194
+
195
+ </div> <!---form_column_two -->
196
+ <div class="clear"></div>
197
+ </div>
198
+ </div>
199
+ <?php } else {
200
+ ?>
201
+ <style>
202
+ #mg_wrapper_right{
203
+ background-color: rgb(247, 247, 246);
204
+ }
205
+ </style>
206
+ <a href="http://www.formget.com/mailget/builder_login" target="_blank" style="display: inline-block"><img src="<?php echo plugins_url('image/notice.png', __FILE__); ?>" alt="Login into MailGet and get Api key" style=" margin-left: 10px;"/></a>
207
+ <?php }
208
+ ?>
209
+ </div>
210
+ <?php
211
+ }
212
+
213
+ /*
214
+ * Function to genarate contact list after MailGet api key saved
215
+ */
216
+
217
+ public function mg_display_contact_lists() {
218
+ ob_clean();
219
+ if (isset($_POST['mg_api_key']) && $_POST['mg_api_key'] != '') {
220
+ $list = $this->mg_get_contact_lists($_POST['mg_api_key']);
221
+ if ($list == 'Invalid API Key') {
222
+ $error = array('error' => 'Invalid API Key');
223
+ $return_array = json_encode($error);
224
+ echo $return_array;
225
+ die();
226
+ } else {
227
+ $this->mg_save_api_key($_POST['mg_api_key']);
228
+ }
229
+ if (!empty($list)) {
230
+ $mg_contact_list_id = $this->mg_get_option('mg_contact_list_id');
231
+ $result = "";
232
+ foreach ($list as $list_arr_row) {
233
+ $selected = $mg_contact_list_id == $list_arr_row->list_id ? 'selected' : '';
234
+ $result .= "<option " . $selected . " value=" . $list_arr_row->list_id . ">" . $list_arr_row->list_name . "</option>";
235
+ }
236
+ echo json_encode(array('result' => $result));
237
+ }
238
+ } elseif ($_POST['mg_api_key'] == '') {
239
+ $error = array('error' => 'Invalid API Key');
240
+ $mg_contact_list_id = $this->mg_get_option('mg_contact_list_id');
241
+ if ($mg_contact_list_id == '') {
242
+ $error = array('new' => 'new');
243
+ }
244
+ $return_array = json_encode($error);
245
+ echo $return_array;
246
+ die();
247
+ }
248
+ die(); // this is required to terminate immediately and return a proper response
249
+ }
250
+
251
+ /*
252
+ * Fucntion to get contact list from MailGet Api
253
+ */
254
+
255
+ public function mg_get_contact_lists($mg_api_key) {
256
+ require_once('inc/mailget_curl.php');
257
+ $list_arr = array();
258
+ $mg_obj = new mailget_curl($mg_api_key);
259
+ $list_arr = $mg_obj->get_list_in_json($mg_api_key);
260
+ if (!empty($list_arr)) {
261
+ return $list_arr;
262
+ } else {
263
+ return NULL;
264
+ }
265
+ }
266
+
267
+ /*
268
+ * Function to get options data from datebase
269
+ * @param : $name
270
+ */
271
+
272
+ public function mg_get_option($name) {
273
+ $options = get_option('mg_options');
274
+ if (isset($options[$name])) {
275
+ return $options[$name];
276
+ }
277
+ }
278
+
279
+ /*
280
+ * Function to update data to database
281
+ * @param : $name
282
+ * @param :$value
283
+ */
284
+
285
+ public function mg_update_option($name, $value) {
286
+ $options = get_option('mg_options');
287
+ $options[$name] = $value;
288
+ update_option('mg_options', $options);
289
+ }
290
+
291
+ /*
292
+ * Fucntion to save MailGet api key to database
293
+ * @param : $mg_api_key
294
+ */
295
+
296
+ public function mg_save_api_key($mg_api_key) {
297
+ $mg_old_option = $this->mg_get_option('mg_api_key');
298
+ if ($mg_api_key !== '' || $mg_old_option != $mg_api_key) {
299
+ $this->mg_update_option('mg_api_key', $mg_api_key);
300
+ }
301
+ }
302
+
303
+ /*
304
+ * Function To save list id to database
305
+ */
306
+
307
+ public function mg_save_contact_list_id() {
308
+ $mg_old_value = $this->mg_get_option('mg_contact_list_id');
309
+ if (isset($_POST['mg_contact_list_id']) && $_POST['mg_contact_list_id'] != '' && ($mg_old_value != $_POST['mg_contact_list_id'])) {
310
+ $this->mg_update_option('mg_contact_list_id', $_POST['mg_contact_list_id']);
311
+ die();
312
+ }
313
+ }
314
+
315
+ /*
316
+ * Function To save subscribe form options
317
+ */
318
+
319
+ public function mg_save_options() {
320
+ if (!check_ajax_referer('mg_option_nonce', 'mg_option_nonce') && !is_user_logged_in() && !current_user_can('manage_options')) {
321
+ return;
322
+ }
323
+ $mg_old_val = get_option('mg_options');
324
+ if (!isset($_POST['mg_switch'])) {
325
+ $this->mg_update_option('mg_switch', 'off');
326
+ } else {
327
+ $this->mg_update_option('mg_switch', 'on');
328
+ }
329
+ if (isset($_POST['mg_selected_page_id'])) {
330
+ $page_id = $_POST['mg_selected_page_id'];
331
+ $this->mg_update_option('mg_selected_page_id', $page_id);
332
+ }
333
+ if (isset($_POST['mg_form_slide_text']) && ($mg_old_val['mg_form_slide_text'] != $_POST['mg_form_slide_text'])) {
334
+ $this->mg_update_option('mg_form_slide_text', $_POST['mg_form_slide_text']);
335
+ }
336
+ if (isset($_POST['mg_form_heading_text']) && ($mg_old_val['mg_form_heading_text'] != $_POST['mg_form_heading_text'])) {
337
+ $this->mg_update_option('mg_form_heading_text', $_POST['mg_form_heading_text']);
338
+ }
339
+ if (isset($_POST['mg_form_description_text']) && ($mg_old_val['mg_form_description_text'] != $_POST['mg_form_description_text'])) {
340
+ $this->mg_update_option('mg_form_description_text', $_POST['mg_form_description_text']);
341
+ }
342
+ if (isset($_POST['mg_form_sbmt_text']) && ($mg_old_val['mg_form_sbmt_text'] != $_POST['mg_form_sbmt_text'])) {
343
+ $this->mg_update_option('mg_form_sbmt_text', $_POST['mg_form_sbmt_text']);
344
+ }
345
+ die();
346
+ }
347
+
348
+ /*
349
+ * Function to save data to MailGet contact list
350
+ */
351
+
352
+ public function mg_form_action() {
353
+ require_once('inc/mailget_curl.php');
354
+ if (!check_ajax_referer('mg_nonce', 'mg_nonce')) {
355
+ return;
356
+ }
357
+ $mg_api_key = $this->mg_get_option('mg_api_key');
358
+ $mg_contact_list_id = $this->mg_get_option('mg_contact_list_id');
359
+ if (isset($_POST)) {
360
+ $name = $_POST['mg_name'];
361
+ $email = $_POST['mg_email'];
362
+ } else {
363
+ $name = '';
364
+ $email = '';
365
+ }
366
+ if ($mg_api_key != '' && $mg_contact_list_id != '' && $name != '' && $email != '') {
367
+ $mg_obj = new mailget_curl($mg_api_key);
368
+ $mg_arr = array(array(
369
+ 'name' => $name,
370
+ 'email' => $email,
371
+ 'get_date' => date('j-m-y'),
372
+ 'ip' => ''
373
+ )
374
+ );
375
+ $curt_status = $mg_obj->curl_data($mg_arr, $mg_contact_list_id, 'single');
376
+ }
377
+ die();
378
+ }
379
+
380
+ }
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: PankajAgarwal
3
  Tags: contact form, contact, form, forms, contact form plugin, contact form builder, contact form with recaptcha, feedback form, Responsive Contact Form, contact us, request form, contact button, drag and drop contact form file upload contact form, contact form to email, contact form payments, contact for paypal, form solution, form builder, feedback, easy contact form, helpdesk
4
  Requires at least: 3.5.0
5
- Tested up to: 4.1.2
6
- Stable tag: 5.3.3
7
 
8
  FormGet Contact Form manage all your contact forms using single dashboard. Just a click on fields and your contact form is ready for use.
9
 
@@ -164,6 +164,10 @@ When you create account in FormGet you automatically get support desk. All the e
164
 
165
 
166
  == Changelog ==
 
 
 
 
167
  = Version 5.3.3 =
168
  * Add action updated.
169
 
2
  Contributors: PankajAgarwal
3
  Tags: contact form, contact, form, forms, contact form plugin, contact form builder, contact form with recaptcha, feedback form, Responsive Contact Form, contact us, request form, contact button, drag and drop contact form file upload contact form, contact form to email, contact form payments, contact for paypal, form solution, form builder, feedback, easy contact form, helpdesk
4
  Requires at least: 3.5.0
5
+ Tested up to: 4.2.2
6
+ Stable tag: 5.3.4
7
 
8
  FormGet Contact Form manage all your contact forms using single dashboard. Just a click on fields and your contact form is ready for use.
9
 
164
 
165
 
166
  == Changelog ==
167
+ = Version 5.3.4 =
168
+ * Added Subscription Form.
169
+ * Added Email Marketing Module.
170
+
171
  = Version 5.3.3 =
172
  * Add action updated.
173