FormGet Contact Form - Version 2.7

Version Description

Download this release

Release Info

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

Code changes from version 2.9 to 2.7

Files changed (4) hide show
  1. css/fgstyle.css +126 -197
  2. index.php +37 -113
  3. js/fg_script.js +24 -52
  4. readme.txt +4 -39
css/fgstyle.css CHANGED
@@ -223,7 +223,6 @@ div.fg_embed_code_save {
223
  -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,.6);
224
  box-shadow: inset 0 1px 0 rgba(120,200,230,.6);
225
  color: #fff;
226
-
227
  }
228
 
229
  div.fg_embed_code_save:hover{
@@ -246,7 +245,6 @@ div.fg_embed_code_save:hover{
246
  .regular-text{
247
  margin-left: 19px;
248
  margin-top:15px;
249
- margin-bottom:15px;
250
  }
251
  .formget_contact_form{
252
  margin-left:35px;
@@ -258,224 +256,155 @@ div.fg_embed_code_save:hover{
258
  }
259
 
260
  .fg_trial-notify{
261
- margin-top: 20px;
262
- position: relative;
263
- z-index: 100;
264
- border: 1px solid #70a4d2!important;
265
- -moz-border-radius: 3px;
266
- -webkit-border-radius: 3px;
267
- border-radius: 3px;
268
- -webkit-box-shadow: inset 0 0 15px rgba(0,0,0,0.04);
269
- -moz-box-shadow: inset 0 0 15px rgba(0,0,0,0.04);
270
- box-shadow: inset 0 0 15px rgba(0,0,0,0.04);
271
- overflow: hidden;
272
- padding: 10px 0 10px!important;
273
- background-color: #b4d5f2;
274
- color: white;
275
- margin-right: 10px;
276
  }
277
 
278
  p.fg_division_note{
279
- color: black;
280
- max-width: 1150px;
281
- margin: 0;
282
- padding: 0 10px;
283
- text-align: left;
284
- margin: 10px 10px 10px 0;
285
- font-size: 22px;
286
- line-height: 28px;
287
- font-family: "Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;
288
- font-weight: normal;
289
- /* text-shadow: 0 1px 1px #3b8dd2; */
290
- -moz-border-radius: 5px;
291
- -webkit-border-radius: 5px;
292
- border-radius: 5px;
293
- float: left;
294
- vertical-align: middle;
295
  }
296
  .fg_button_prime{
297
- color: white;
298
- font-size: 14px!important;
299
- line-height: 16px!important;
300
- height: auto!important;
301
- -webkit-border-radius: 3px;
302
- border-radius: 3px;
303
- margin: 0 5px 0 0;
304
- padding: 5px 12px;
305
- vertical-align: middle;
306
- color: #fff;
307
- text-align: center;
308
- text-decoration: none;
309
- border: 1px solid #317dbc;
310
- -webkit-transition: none;
311
- -moz-transition: none;
312
- cursor: pointer;
313
- outline: 0;
314
- font-family: "Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;
315
- /* text-shadow: 0 1px #3b8dd2; */
316
- background-color: blue;
317
- background-image: -webkit-gradient(linear,left top,left bottom,from(#3b8dd2),to(#5cacf0));
318
- background-image: -webkit-linear-gradient(top,#3b8dd2,#5cacf0);
319
- background-image: -moz-linear-gradient(top,#3b8dd2,#5cacf0);
320
- background-image: -ms-linear-gradient(top,#3b8dd2,#5cacf0);
321
- background-image: -o-linear-gradient(top,#3b8dd2,#5cacf0);
322
- background-image: linear-gradient(to bottom,#3b8dd2,#5cacf0);
323
- -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);
324
- box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);
325
 
326
  }
327
  .fg_button_prime:hover{
328
- color: white;
329
- text-shadow: 0 -1px #3b8dd2;
330
- border: 1px solid #317dbc;
331
- background-color: #5D8CC9;
332
- background-image: -webkit-gradient(linear,left top,left bottom,from(#5cacf0),to(#3b8dd2));
333
- background-image: -webkit-linear-gradient(top,#5cacf0,#3b8dd2);
334
- background-image: -moz-linear-gradient(top,#5cacf0,#3b8dd2);
335
- background-image: -ms-linear-gradient(top,#5cacf0,#3b8dd2);
336
- background-image: -o-linear-gradient(top,#5cacf0,#3b8dd2);
337
- background-image: linear-gradient(to bottom,#5cacf0,#3b8dd2);
338
- webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);
339
- box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);
340
  }
341
 
342
  .fg_hide_notice{
343
  float: right;
344
  margin-right: 10px;
345
- opacity: .6;
346
- }
347
 
348
  .fg_notice_div{
349
- margin-top: 20px;
350
- position: relative;
351
- z-index: 100;
352
- border: 1px solid #70a4d2!important;
353
- -moz-border-radius: 3px;
354
- -webkit-border-radius: 3px;
355
- border-radius: 3px;
356
- -webkit-box-shadow: inset 0 0 15px rgba(0,0,0,0.04);
357
- -moz-box-shadow: inset 0 0 15px rgba(0,0,0,0.04);
358
- box-shadow: inset 0 0 15px rgba(0,0,0,0.04);
359
- overflow: hidden;
360
- padding: 10px 0 10px!important;
361
- background-color: #b4d5f2;
362
- color: black;
363
- margin-right: 10px;
364
  }
365
  p.fg_video_notice{
366
- color: black;
367
- max-width: 800px;
368
- margin: 0;
369
- padding: 0 5px;
370
- text-align: left;
371
- margin: 10px 0 10px 0;
372
- font-size: 20px;
373
- line-height: 28px;
374
- font-family: "Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;
375
- font-weight: normal;
376
- -moz-border-radius: 5px;
377
- -webkit-border-radius: 5px;
378
- border-radius: 5px;
379
- float: left;
380
- vertical-align: middle;
381
  }
382
  .fg_getting_started{
383
- margin-top: 10px;
384
- float: left;
385
- font-size: 18px !important;
386
  }
387
  .hide_video_notice{
388
- margin-top: 10px;
389
- float: left;
390
- overflow: hidden;
391
- font-size: 18px !important;
392
- opacity:0.6;
393
  }
394
  div#fg_videoContainer{
395
- display: none;
396
- width: 100%;
397
- height: 100%;
398
- background: url('../image/overlay.png' )repeat;
399
- position:fixed;
400
- z-index: 10000;
401
- opacity:0.93;
402
  }
403
  div#fg_videoContainer .video_tobe_shown{
404
- border: 5px solid white;
405
- margin-top: 10%;
406
- margin-left: 20%;
407
- padding: 3px;
408
- opacity:1 !important;
409
- }
410
- input#fg_selected_box{
411
- margin-left: 19px;
412
  }
413
- .fg_info{
414
- margin-left: 19px;
415
- }
416
- .fg_upgarde_to_pro{
417
- border: 2px solid #165C5F;
418
- background-color:#165C5F;
419
- height: 50px;
420
- margin-top: 10px;
421
- border-radius: 3px;
422
- width: 900px;
423
- padding-right: 10px;
424
- }
425
- .fg_pro_notice{
426
- float:left;
427
- width: 560px;
428
- padding-left: 10px;
429
- color: white;
430
- font-size: 24px;
431
- line-height: 3px;
432
- font-weight: normal;
433
- font-family: Source Sans Pro;
434
- font-weight: normal;
435
- margin-bottom: 15px;
436
- display: block;
437
- -webkit-margin-before: 1em;
438
- -webkit-margin-after: 1em;
439
- -webkit-margin-start: 0px;
440
- -webkit-margin-end: 0px;
441
- }
442
- .button_to_formget{
443
- float: left;
444
- margin-top: 10px !important;
445
- -moz-box-shadow: inset 0px 1px 0px 0px #f69d8b;
446
- -webkit-box-shadow: inset 0px 1px 0px 0px #f69d8b;
447
- box-shadow: inset 0px 1px 0px 0px #f69d8b;
448
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f7836c), color-stop(1, #f25839));
449
- background: -moz-linear-gradient(top, #f7836c 5%, #f25839 100%);
450
- background: -webkit-linear-gradient(top, #f7836c 5%, #f25839 100%);
451
- background: -o-linear-gradient(top, #f7836c 5%, #f25839 100%);
452
- background: -ms-linear-gradient(top, #f7836c 5%, #f25839 100%);
453
- background: linear-gradient(to bottom, #f7836c 5%, #f25839 100%);
454
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f7836c', endColorstr='#f25839',GradientType=0);
455
- background-color: #f7836c;
456
- -moz-border-radius: 3px;
457
- -webkit-border-radius: 3px;
458
- border-radius: 3px;
459
- border: 1px solid #d85339;
460
- display: inline-block;
461
- color: #ffffff;
462
- font-size: 16px;
463
- font-weight: normal;
464
- text-decoration: none;
465
- text-shadow: 0px 1px 0px #ac4632;
466
- padding: 4px 12px;
467
- padding-bottom: 6px;
468
- margin-right: -4px;
469
- margin-top: 0;
470
- cursor:pointer;
471
- }
472
- .button_to_formget:hover{
473
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f25839), color-stop(1, #f7836c));
474
- background: -moz-linear-gradient(top, #f25839 5%, #f7836c 100%);
475
- background: -webkit-linear-gradient(top, #f25839 5%, #f7836c 100%);
476
- background: -o-linear-gradient(top, #f25839 5%, #f7836c 100%);
477
- background: -ms-linear-gradient(top, #f25839 5%, #f7836c 100%);
478
- background: linear-gradient(to bottom, #f25839 5%, #f7836c 100%);
479
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f25839', endColorstr='#f7836c',GradientType=0);
480
- background-color: #f25839;
481
- }
223
  -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,.6);
224
  box-shadow: inset 0 1px 0 rgba(120,200,230,.6);
225
  color: #fff;
 
226
  }
227
 
228
  div.fg_embed_code_save:hover{
245
  .regular-text{
246
  margin-left: 19px;
247
  margin-top:15px;
 
248
  }
249
  .formget_contact_form{
250
  margin-left:35px;
256
  }
257
 
258
  .fg_trial-notify{
259
+ margin-top: 20px;
260
+ position: relative;
261
+ z-index: 100;
262
+ border: 1px solid #70a4d2!important;
263
+ -moz-border-radius: 3px;
264
+ -webkit-border-radius: 3px;
265
+ border-radius: 3px;
266
+ -webkit-box-shadow: inset 0 0 15px rgba(0,0,0,0.04);
267
+ -moz-box-shadow: inset 0 0 15px rgba(0,0,0,0.04);
268
+ box-shadow: inset 0 0 15px rgba(0,0,0,0.04);
269
+ overflow: hidden;
270
+ padding: 10px 0 10px!important;
271
+ background-color: #b4d5f2;
272
+ color: white;
273
+ margin-right: 10px;
274
  }
275
 
276
  p.fg_division_note{
277
+ color: black;
278
+ max-width: 1150px;
279
+ margin: 0;
280
+ padding: 0 10px;
281
+ text-align: left;
282
+ margin: 10px 10px 10px 0;
283
+ font-size: 22px;
284
+ line-height: 28px;
285
+ font-family: "Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;
286
+ font-weight: normal;
287
+ /* text-shadow: 0 1px 1px #3b8dd2; */
288
+ -moz-border-radius: 5px;
289
+ -webkit-border-radius: 5px;
290
+ border-radius: 5px;
291
+ float: left;
292
+ vertical-align: middle;
293
  }
294
  .fg_button_prime{
295
+ color: white;
296
+ font-size: 14px!important;
297
+ line-height: 16px!important;
298
+ height: auto!important;
299
+ -webkit-border-radius: 3px;
300
+ border-radius: 3px;
301
+ margin: 0 5px 0 0;
302
+ padding: 5px 12px;
303
+ vertical-align: middle;
304
+ color: #fff;
305
+ text-align: center;
306
+ text-decoration: none;
307
+ border: 1px solid #317dbc;
308
+ -webkit-transition: none;
309
+ -moz-transition: none;
310
+ cursor: pointer;
311
+ outline: 0;
312
+ font-family: "Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;
313
+ /* text-shadow: 0 1px #3b8dd2; */
314
+ background-color: blue;
315
+ background-image: -webkit-gradient(linear,left top,left bottom,from(#3b8dd2),to(#5cacf0));
316
+ background-image: -webkit-linear-gradient(top,#3b8dd2,#5cacf0);
317
+ background-image: -moz-linear-gradient(top,#3b8dd2,#5cacf0);
318
+ background-image: -ms-linear-gradient(top,#3b8dd2,#5cacf0);
319
+ background-image: -o-linear-gradient(top,#3b8dd2,#5cacf0);
320
+ background-image: linear-gradient(to bottom,#3b8dd2,#5cacf0);
321
+ -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);
322
+ box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);
323
 
324
  }
325
  .fg_button_prime:hover{
326
+ color: white;
327
+ text-shadow: 0 -1px #3b8dd2;
328
+ border: 1px solid #317dbc;
329
+ background-color: #5D8CC9;
330
+ background-image: -webkit-gradient(linear,left top,left bottom,from(#5cacf0),to(#3b8dd2));
331
+ background-image: -webkit-linear-gradient(top,#5cacf0,#3b8dd2);
332
+ background-image: -moz-linear-gradient(top,#5cacf0,#3b8dd2);
333
+ background-image: -ms-linear-gradient(top,#5cacf0,#3b8dd2);
334
+ background-image: -o-linear-gradient(top,#5cacf0,#3b8dd2);
335
+ background-image: linear-gradient(to bottom,#5cacf0,#3b8dd2);
336
+ webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);
337
+ box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);
338
  }
339
 
340
  .fg_hide_notice{
341
  float: right;
342
  margin-right: 10px;
343
+ opacity: .6;
344
+ }
345
 
346
  .fg_notice_div{
347
+ margin-top: 20px;
348
+ position: relative;
349
+ z-index: 100;
350
+ border: 1px solid #70a4d2!important;
351
+ -moz-border-radius: 3px;
352
+ -webkit-border-radius: 3px;
353
+ border-radius: 3px;
354
+ -webkit-box-shadow: inset 0 0 15px rgba(0,0,0,0.04);
355
+ -moz-box-shadow: inset 0 0 15px rgba(0,0,0,0.04);
356
+ box-shadow: inset 0 0 15px rgba(0,0,0,0.04);
357
+ overflow: hidden;
358
+ padding: 10px 0 10px!important;
359
+ background-color: #b4d5f2;
360
+ color: black;
361
+ margin-right: 10px;
362
  }
363
  p.fg_video_notice{
364
+ color: black;
365
+ max-width: 800px;
366
+ margin: 0;
367
+ padding: 0 5px;
368
+ text-align: left;
369
+ margin: 10px 0 10px 0;
370
+ font-size: 20px;
371
+ line-height: 28px;
372
+ font-family: "Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;
373
+ font-weight: normal;
374
+ -moz-border-radius: 5px;
375
+ -webkit-border-radius: 5px;
376
+ border-radius: 5px;
377
+ float: left;
378
+ vertical-align: middle;
379
  }
380
  .fg_getting_started{
381
+ margin-top: 10px;
382
+ float: left;
383
+ font-size: 18px !important;
384
  }
385
  .hide_video_notice{
386
+ margin-top: 10px;
387
+ float: left;
388
+ overflow: hidden;
389
+ font-size: 18px !important;
390
+ opacity:0.6;
391
  }
392
  div#fg_videoContainer{
393
+ display: none;
394
+ width: 100%;
395
+ height: 100%;
396
+ background: url('../image/overlay.png' )repeat;
397
+ position:fixed;
398
+ z-index: 10000;
399
+ opacity:0.93;
400
  }
401
  div#fg_videoContainer .video_tobe_shown{
402
+ border: 5px solid white;
403
+ margin-top: 10%;
404
+ margin-left: 20%;
405
+ padding: 3px;
406
+ opacity:1 !important;
 
 
 
407
  }
408
+
409
+
410
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
index.php CHANGED
@@ -3,11 +3,10 @@
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: 2.9
7
  Author: FormGet
8
  Author URI: http://www.formget.com
9
  */
10
-
11
  function my_admin_notice() {
12
  $fg_iframe_form = get_option('fg_embed_code');
13
  $string = "sideBar";
@@ -20,7 +19,7 @@ function my_admin_notice() {
20
  ?>
21
  <div class="fg_trial-notify">
22
  <p class="fg_division_note">
23
- Welcome to FormGet - You're almost ready to create your form <a class="fg_button_prime" href='<?php echo admin_url('admin.php?page=cf_page'); ?>'>Click to Create.</a><?php printf(__('<a class="fg_hide_notice fg_button_prime", href="%1$s">Hide Notice</a>'), '?admin_nag_ignore=0'); ?></p>
24
  </div>
25
  <?php
26
  }
@@ -28,7 +27,7 @@ function my_admin_notice() {
28
  }
29
 
30
  if (!isset($_GET['page']) == 'cf_page') {
31
- add_action('admin_notices', 'my_admin_notice');
32
  }
33
 
34
  function admin_nag_ignore() {
@@ -52,20 +51,20 @@ register_deactivation_hook(__FILE__, 'delete_user_entry');
52
 
53
 
54
  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("init", "cf_add_style");
61
 
62
  function wordpress_style() {
63
  wp_enqueue_style('stylesheet_menu', admin_url('load-styles.php?c=1&amp;dir=ltr&amp;load=admin-bar,wp-admin,buttons,wp-auth-check&amp'));
64
  wp_enqueue_style('style_menu', admin_url('css/colors-fresh.min.css'));
65
  }
66
 
67
- add_action('init', 'wordpress_style');
68
- }
69
 
70
 
71
  //setting page
@@ -78,30 +77,23 @@ function cf_menu_page() {
78
  function cf_setting_page() {
79
  $url = plugins_url();
80
  ?>
81
-
82
- <div id="fg_videoContainer" >
83
-
84
- </div>
85
- <?php
86
- global $wpdb;
87
- $fg_video_code = get_option('fg_hide_video');
88
- if (!$fg_video_code == "hide") {
89
- ?>
90
- <div class="fg_notice_div" id="fg_notice_div">
91
- <p class="fg_video_notice" >
92
- We have created a simple video for using the FormGet WordPress Plugin.
93
- <div class="fg_getting_started fg_button_prime" id="fg_video_getting_started">Watch Video!</div> <div class="hide_video_notice fg_button_prime">Hide this Notice </div>
94
- </p>
95
- </div>
96
 
97
- <?php } ?>
98
- <div class="fg_upgarde_to_pro" id="fg_upgarde_to_pro">
99
- <p class="fg_pro_notice"> Get Fully Featured FormGet Pro Account Just 9.95 USD. </p>
100
- <div class="button_to_formget" id="button_to_upgrade">UPGRADE TO PRO </div>
101
- <a href="http://www.formget.com/" target="_blank"><div class="button_to_formget" id="button_to_site" style="float: right; margin-right:30px;">Visite Site </div></a>
102
- </div>
103
- <div id="fg_of_container" class="fg_wrap" >
104
- <form id="fg_ofform" action="" method="POST">
 
 
 
 
 
 
 
 
105
  <div id="fg_header">
106
  <div class="fg_logo">
107
  <h2> FormGet Contact Form</h2>
@@ -119,10 +111,7 @@ function cf_setting_page() {
119
  <span id="form_tab" class="nav-tab nav-tab-active ">Contact Form Builder </span>
120
  <span id="embed_tab" class="nav-tab ">Embed Code</span>
121
  <span id="help_tab" class="nav-tab ">Help</span>
122
- <span id="gopro_tab" class="nav-tab ">GO PRO</span>
123
- <span id="video_tab" class="nav-tab ">Video Tutorials</span>
124
  <span id="support_tab" class="nav-tab ">Plugin Support</span>
125
-
126
 
127
  </h2>
128
 
@@ -149,33 +138,9 @@ function cf_setting_page() {
149
  <div class="fg_section section-text">
150
  <h3 class="fg_heading">Embed code field will only accept code for tabbed widgets. Please do not place shortcode here. </h3>
151
  <div class="option">
152
- <div class="fg_controls" style="height:auto; padding-bottom: 10px;">
153
- <textarea name="content[html]" cols="60" rows="10" class="regular-text" id="fg_content_html" style="width:900px"><?php echo embeded_code(); ?></textarea> <br>
154
- <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>
155
- <?php
156
- $page_title = $wpdb->get_results("SELECT post_title, id FROM $wpdb->posts WHERE (post_type = 'page')");
157
-
158
- foreach ($page_title as $title) {
159
- $fg_list_page_id = get_option('fg_checked_page_id');
160
- ?>
161
- <input id="fg_selected_box" type="checkbox" name="checkbox" value="<?php echo $title->id; ?>"
162
- <?php
163
- if (!empty($fg_list_page_id)) {
164
- foreach ($fg_list_page_id as $list) {
165
- if ($list == $title->id) {
166
- ?>
167
- checked
168
- <?php
169
- }
170
- }
171
- }
172
- ?> >
173
-
174
- <?php
175
- echo $title->post_title;
176
- echo "<br>";
177
- }
178
- ?>
179
  <div id="submit-form" class="fg_embed_code_save " > Save </div>
180
  <div id="loader_img" align="center" style="margin-left:460px; display:none;">
181
  <img src="<?php echo plugins_url('image/ajax-loader.gif', __FILE__); ?>">
@@ -198,29 +163,12 @@ function cf_setting_page() {
198
  </div>
199
 
200
  </div>
201
- <div class="fg_group" id="pn_gopro">
202
- <div class="fg_section section-text">
203
- <h3 class="fg_heading"> Pricing Plan for all business types </h3>
204
- <iframe src="http://www.formget.com/app/pricing" name="iframe" style="width:1030px; height:900px; overflow-y:scroll;" >
205
- </iframe>
206
- </div>
207
- </div>
208
-
209
  <div class="fg_group" id="pn_contactus">
210
  <div class="fg_section section-text">
211
  <h3 class="fg_heading"> Contact Us</h3>
212
  <iframe class="formget_contact_form" height='570' allowTransparency='true' frameborder='0' scrolling='no' style='width:100%;border:none' src='http://www.formget.com/app/embed/form/qQvs-639'>Your Contact </iframe>
213
  </div>
214
  </div>
215
-
216
- <div class="fg_group" id="pn_tutorial">
217
- <div class="fg_section section-text">
218
- <h3 class="fg_heading"> Following are the FormGet tutorials that will help you to understand FormGet </h3>
219
- <iframe src="http://www.formget.com/formget-video-tutorials-guide/" name="iframe" style="width:1030px; height:900px; overflow-y:scroll;" >
220
- </iframe>
221
- </div>
222
- </div>
223
-
224
 
225
  </div>
226
  <div class="clear"></div>
@@ -249,13 +197,10 @@ if (isset($_GET['page']) == 'cf_page') {
249
 
250
  function cf_text_ajax_process_request() {
251
  $text_value = $_POST['value'];
252
- $val = $_POST['value_hide'];
253
- $page_id = $_POST['page_id'];
254
- //echo $val;
255
- update_option('fg_hide_video', $val);
256
  update_option('fg_embed_code', $text_value);
257
- update_option('fg_checked_page_id', $page_id);
258
- //print_r($page_id);
259
  echo 1;
260
  die();
261
  }
@@ -265,40 +210,19 @@ add_action('wp_ajax_nopriv_master_response', 'cf_text_ajax_process_request');
265
  if (!function_exists('embeded_code')) {
266
 
267
  function embeded_code() {
268
- //$title = get_the_title();
269
- $postid = get_the_ID();
270
- $fg_list_page_id = get_option('fg_checked_page_id');
271
  global $wpdb;
272
  $fg_iframe_form = get_option('fg_embed_code');
 
273
  $string = "sideBar";
274
  $pos = strpos($fg_iframe_form, $string);
275
- if (!empty($fg_list_page_id)) {
276
- foreach ($fg_list_page_id as $key) {
277
- if($postid == $key) {
278
- if ($pos == true) {
279
- echo stripslashes($fg_iframe_form);
280
- }
281
- }
282
- else{
283
- if(is_front_page()){
284
- if ($pos == true) {
285
- echo stripslashes($fg_iframe_form);
286
- }
287
- }
288
- }
289
- }
290
- } else {
291
- if ($pos == true) {
292
- echo stripslashes($fg_iframe_form);
293
- }
294
  }
295
  }
296
 
297
  }
 
298
 
299
- if (!is_admin()) {
300
- add_action('wp_head', 'embeded_code');
301
- }
302
  //schort code function
303
  if (!function_exists('formget_shortcode')) {
304
 
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: 2.7
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";
19
  ?>
20
  <div class="fg_trial-notify">
21
  <p class="fg_division_note">
22
+ Welcome to FormGet - You're almost ready to create your form <a class="fg_button_prime" href='<?php echo admin_url('admin.php?page=cf_page'); ?>'>Click to Create.</a><?php printf(__('<a class="fg_hide_notice fg_button_prime", href="%1$s">Hide Notice</a>'), '?admin_nag_ignore=0'); ?></p>
23
  </div>
24
  <?php
25
  }
27
  }
28
 
29
  if (!isset($_GET['page']) == 'cf_page') {
30
+ add_action('admin_notices', 'my_admin_notice');
31
  }
32
 
33
  function admin_nag_ignore() {
51
 
52
 
53
  if (is_admin()) {
54
+
55
+ function cf_add_style() {
56
+ wp_enqueue_style('form1_style1_sheet1', plugins_url('css/fgstyle.css', __FILE__));
57
+ }
58
+ add_action("init", "cf_add_style");
59
+
60
 
61
  function wordpress_style() {
62
  wp_enqueue_style('stylesheet_menu', admin_url('load-styles.php?c=1&amp;dir=ltr&amp;load=admin-bar,wp-admin,buttons,wp-auth-check&amp'));
63
  wp_enqueue_style('style_menu', admin_url('css/colors-fresh.min.css'));
64
  }
65
 
66
+ add_action('init', 'wordpress_style');
67
+ }
68
 
69
 
70
  //setting page
77
  function cf_setting_page() {
78
  $url = plugins_url();
79
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
+ <div id="fg_videoContainer" >
82
+
83
+ </div>
84
+ <?php global $wpdb;
85
+ $fg_video_code = get_option('fg_hide_video');
86
+ if(!$fg_video_code == "hide"){
87
+ ?>
88
+ <div class="fg_notice_div" id="#fg_notice_div">
89
+ <p class="fg_video_notice" >
90
+ We have created a simple video for using the FormGet WordPress Plugin.
91
+ <div class="fg_getting_started fg_button_prime" id="fg_video_getting_started">Watch Video!</div> <div class="hide_video_notice fg_button_prime">Hide this Notice </div>
92
+ </p>
93
+ </div>
94
+ <?php } ?>
95
+ <div id="fg_of_container" class="fg_wrap" >
96
+ <form id="fg_ofform" action="" method="POST">
97
  <div id="fg_header">
98
  <div class="fg_logo">
99
  <h2> FormGet Contact Form</h2>
111
  <span id="form_tab" class="nav-tab nav-tab-active ">Contact Form Builder </span>
112
  <span id="embed_tab" class="nav-tab ">Embed Code</span>
113
  <span id="help_tab" class="nav-tab ">Help</span>
 
 
114
  <span id="support_tab" class="nav-tab ">Plugin Support</span>
 
115
 
116
  </h2>
117
 
138
  <div class="fg_section section-text">
139
  <h3 class="fg_heading">Embed code field will only accept code for tabbed widgets. Please do not place shortcode here. </h3>
140
  <div class="option">
141
+ <div class="fg_controls" style="height:310px;">
142
+ <textarea name="content[html]" cols="60" rows="10" class="regular-text" id="fg_content_html" style="width:900px"><?php echo embeded_code(); ?></textarea>
143
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  <div id="submit-form" class="fg_embed_code_save " > Save </div>
145
  <div id="loader_img" align="center" style="margin-left:460px; display:none;">
146
  <img src="<?php echo plugins_url('image/ajax-loader.gif', __FILE__); ?>">
163
  </div>
164
 
165
  </div>
 
 
 
 
 
 
 
 
166
  <div class="fg_group" id="pn_contactus">
167
  <div class="fg_section section-text">
168
  <h3 class="fg_heading"> Contact Us</h3>
169
  <iframe class="formget_contact_form" height='570' allowTransparency='true' frameborder='0' scrolling='no' style='width:100%;border:none' src='http://www.formget.com/app/embed/form/qQvs-639'>Your Contact </iframe>
170
  </div>
171
  </div>
 
 
 
 
 
 
 
 
 
172
 
173
  </div>
174
  <div class="clear"></div>
197
 
198
  function cf_text_ajax_process_request() {
199
  $text_value = $_POST['value'];
200
+ $val = $_POST['value_hide'];
201
+ //echo $val;
202
+ update_option('fg_hide_video', $val);
 
203
  update_option('fg_embed_code', $text_value);
 
 
204
  echo 1;
205
  die();
206
  }
210
  if (!function_exists('embeded_code')) {
211
 
212
  function embeded_code() {
 
 
 
213
  global $wpdb;
214
  $fg_iframe_form = get_option('fg_embed_code');
215
+
216
  $string = "sideBar";
217
  $pos = strpos($fg_iframe_form, $string);
218
+ if ($pos == true) {
219
+ echo stripslashes($fg_iframe_form);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  }
221
  }
222
 
223
  }
224
+ add_action('wp_head', 'embeded_code');
225
 
 
 
 
226
  //schort code function
227
  if (!function_exists('formget_shortcode')) {
228
 
js/fg_script.js CHANGED
@@ -26,29 +26,7 @@ jQuery(document).ready(function() {
26
  jQuery(this).addClass('nav-tab-active');
27
  jQuery('#pn_template').css("display", "block");
28
  });
29
- jQuery('#video_tab').click(function() {
30
- // alert("hello");
31
- jQuery('.fg_group').hide();
32
- jQuery('.nav-tab').removeClass('nav-tab-active');
33
- jQuery(this).addClass('nav-tab-active');
34
- jQuery('#pn_tutorial').css("display", "block");
35
- });
36
-
37
- jQuery('#gopro_tab').click(function() {
38
- // alert("hello");
39
- jQuery('.fg_group').hide();
40
- jQuery('.nav-tab').removeClass('nav-tab-active');
41
- jQuery(this).addClass('nav-tab-active');
42
- jQuery('#pn_gopro').css("display", "block");
43
- });
44
 
45
- jQuery('#button_to_upgrade').click(function() {
46
- // alert("hello");
47
- jQuery('.fg_group').hide();
48
- jQuery('.nav-tab').removeClass('nav-tab-active');
49
- jQuery('#gopro_tab').addClass('nav-tab-active');
50
- jQuery('#pn_gopro').css("display", "block");
51
- });
52
 
53
  jQuery('#form_tab').click(function() {
54
  // alert("hello");
@@ -59,23 +37,17 @@ jQuery(document).ready(function() {
59
  });
60
 
61
 
 
62
  jQuery('.fg_embed_code_save').click(function() {
63
  jQuery('div#loader_img').css("display", "block");
64
  var text_value = jQuery('textarea#fg_content_html').val();
65
- var checkedValues = jQuery('input:checkbox:checked').map(function() {
66
- return this.value;
67
- }).get();
68
- //alert(checkedValues);
69
-
70
  var data = {
71
  action: 'master_response',
72
- value: text_value,
73
- page_id: checkedValues
74
  };
75
  jQuery.post(script_call.ajaxurl, data, function(response) {
76
  if (response) {
77
  jQuery('div#loader_img').css("display", "none");
78
- // alert(response);
79
  }
80
  else {
81
 
@@ -83,38 +55,38 @@ jQuery(document).ready(function() {
83
  }
84
  });
85
  });
 
 
 
 
 
 
86
 
87
- jQuery('div#fg_video_getting_started').click(function() {
88
- jQuery('div#fg_videoContainer').css({"display": "block"});
89
- autoPlayVideo('84023688', '700', '400');
90
- });
91
-
92
-
93
- function autoPlayVideo(vcode, width, height) {
94
- "use strict";
95
- 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>');
96
- }
97
 
98
- jQuery('div#fg_videoContainer').click(function() {
99
- jQuery('div#fg_videoContainer').css({"display": "none"});
100
- jQuery('div#fg_videoContainer').empty();
101
- });
102
- //jQuery("div.")
103
- jQuery(".hide_video_notice").click(function() {
104
- //alert("hello");
105
- var hide_data = {
106
  action: 'master_response',
107
  value_hide: "hide"
108
  };
109
  jQuery.post(script_call.ajaxurl, hide_data, function(response) {
110
  if (response) {
111
- //alert(response);
112
- jQuery('.fg_notice_div').hide();
113
  }
114
  else {
115
 
116
-
117
  }
118
  });
119
- });
120
  });
26
  jQuery(this).addClass('nav-tab-active');
27
  jQuery('#pn_template').css("display", "block");
28
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
 
 
 
 
 
 
 
30
 
31
  jQuery('#form_tab').click(function() {
32
  // alert("hello");
37
  });
38
 
39
 
40
+
41
  jQuery('.fg_embed_code_save').click(function() {
42
  jQuery('div#loader_img').css("display", "block");
43
  var text_value = jQuery('textarea#fg_content_html').val();
 
 
 
 
 
44
  var data = {
45
  action: 'master_response',
46
+ value: text_value
 
47
  };
48
  jQuery.post(script_call.ajaxurl, data, function(response) {
49
  if (response) {
50
  jQuery('div#loader_img').css("display", "none");
 
51
  }
52
  else {
53
 
55
  }
56
  });
57
  });
58
+
59
+ jQuery('div#fg_video_getting_started').click(function(){
60
+ jQuery('div#fg_videoContainer').css({"display": "block"});
61
+ autoPlayVideo('84023688','700','400');
62
+ });
63
+
64
 
65
+ function autoPlayVideo(vcode, width, height){
66
+ "use strict";
67
+ 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>');
68
+ }
 
 
 
 
 
 
69
 
70
+ jQuery('div#fg_videoContainer').click(function(){
71
+ jQuery('div#fg_videoContainer').css({"display": "none"});
72
+ jQuery('div#fg_videoContainer').empty();
73
+ });
74
+ //jQuery("div.")
75
+ jQuery(".hide_video_notice").click(function(){
76
+ //alert("hello");
77
+ var hide_data = {
78
  action: 'master_response',
79
  value_hide: "hide"
80
  };
81
  jQuery.post(script_call.ajaxurl, hide_data, function(response) {
82
  if (response) {
83
+ //alert(response);
84
+ jQuery('.fg_notice_div').hide();
85
  }
86
  else {
87
 
88
+
89
  }
90
  });
91
+ });
92
  });
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === FormGet Contact Form ===
2
  Contributors: PankajAgarwal
3
  Tags: contact form, contact, form, forms, contact form plugin, contact form builder, contact form with recaptcha, feedback 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: 3.5.1
6
- Stable tag: 2.9
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
 
@@ -27,29 +27,6 @@ Name, Email, Contact Number, Message, Payment(Integrated with PayPal), Date (sup
27
 
28
  FormGet Contact Form plugin implemented with a helpdesk system which enable you to give full support to your customers. For that, you can easily add agents to manage your multiple contact forms and also leave a quick reply for every entry.
29
 
30
- > ### FormGet
31
- >
32
- >
33
- >
34
-
35
-
36
- > **More Information**
37
- >
38
- > * Visit [FormGet website](http://www.formget.com/) for more information about FormGet.
39
- >
40
- >
41
-
42
- > **FormGet Video Tutorials**
43
- >
44
- > * So to learn about FormGet from the beginning, FormGet have come up with the [video tutorial](http://www.formget.com/formget-video-tutorials-guide/) series.
45
- >
46
- >
47
-
48
- > **Our Plans**
49
- >
50
- > * [FormGet Pricing Plans](http://www.formget.com/app/pricing), choose the one that suits you best.
51
- >
52
- >
53
 
54
  = Full list of Features =
55
 
@@ -99,7 +76,7 @@ FormGet Contact Form plugin implemented with a helpdesk system which enable you
99
  * Redirect user to any page/URL using contact form redirect URL field.
100
  * Data stored using entries are regularly backup and restored on cloud servers.
101
  * Allow to enable form fields compulsary using avaliable Required option.
102
- * Implemented Logic Forms to integrate logical conditions in your form that will show or hide form fields or questions according to the user�s response to previous field.
103
  * Upload your Custom Background and header image.
104
  * Color customization can be done by using advance color customizer.
105
  * Share your forms on Facebook, Twitter, Google Plus go generate leads.
@@ -111,7 +88,7 @@ http://www.youtube.com/channel/UCjejLUldlgcPrv1qbiOPOKg
111
  = FormGet Contact Form Demo & User Guide =
112
  * See demo for [Tabbed code form](http://www.formget.com/).
113
  * See demo for [contact form on any page or post](http://www.formget.com/contact-us/).
114
- * [User Guide](http://www.formget.com/formget-video-tutorials-guide/)
115
 
116
  FormGet Contact Form is powered by formget.com.
117
  Click here to build [Advance Contact Form](http://formget.com).
@@ -165,16 +142,6 @@ When you create account in FormGet you automatically get support desk. All the e
165
 
166
  == Changelog ==
167
 
168
- = Version 2.9=
169
- * Video tutorials added.
170
-
171
- = Version 2.8=
172
- * "Contact Us" tab visible on selected page only.
173
-
174
-
175
- = Version 2.7=
176
- * CSS bug fixed.
177
-
178
  = Version 2.6 =
179
  * Login page
180
 
@@ -242,8 +209,6 @@ When you create account in FormGet you automatically get support desk. All the e
242
 
243
  == Upgrade Notice ==
244
  = 1.0 =
245
-
246
  * Initial release
247
  = 1.1 =
248
-
249
  * Please upgrade to latest version
1
+ === FormGet Contact Form ===
2
  Contributors: PankajAgarwal
3
  Tags: contact form, contact, form, forms, contact form plugin, contact form builder, contact form with recaptcha, feedback 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: 3.5.1
6
+ Stable tag: 2.7
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
 
27
 
28
  FormGet Contact Form plugin implemented with a helpdesk system which enable you to give full support to your customers. For that, you can easily add agents to manage your multiple contact forms and also leave a quick reply for every entry.
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  = Full list of Features =
32
 
76
  * Redirect user to any page/URL using contact form redirect URL field.
77
  * Data stored using entries are regularly backup and restored on cloud servers.
78
  * Allow to enable form fields compulsary using avaliable Required option.
79
+ * Implemented Logic Forms to integrate logical conditions in your form that will show or hide form fields or questions according to the user�s response to previous field.
80
  * Upload your Custom Background and header image.
81
  * Color customization can be done by using advance color customizer.
82
  * Share your forms on Facebook, Twitter, Google Plus go generate leads.
88
  = FormGet Contact Form Demo & User Guide =
89
  * See demo for [Tabbed code form](http://www.formget.com/).
90
  * See demo for [contact form on any page or post](http://www.formget.com/contact-us/).
91
+ * [User Guide](http://wordpress.org/plugins/formget-contact-form/screenshots/)
92
 
93
  FormGet Contact Form is powered by formget.com.
94
  Click here to build [Advance Contact Form](http://formget.com).
142
 
143
  == Changelog ==
144
 
 
 
 
 
 
 
 
 
 
 
145
  = Version 2.6 =
146
  * Login page
147
 
209
 
210
  == Upgrade Notice ==
211
  = 1.0 =
 
212
  * Initial release
213
  = 1.1 =
 
214
  * Please upgrade to latest version