FormGet Contact Form - Version 4.6

Version Description

Download this release

Release Info

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

Code changes from version 4.5 to 4.6

Files changed (3) hide show
  1. index.php +27 -16
  2. js/fg_script.js +21 -10
  3. readme.txt +8 -6
index.php CHANGED
@@ -3,7 +3,7 @@
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: 4.5
7
  Author: FormGet
8
  Author URI: http://www.formget.com
9
  */
@@ -118,9 +118,9 @@ function cf_setting_page() {
118
  <span id="form_tab" class="nav-tab nav-tab-active ">Contact Form Builder </span>
119
  <span id="embed_tab" class="nav-tab ">Embed Code</span>
120
  <span id="help_tab" class="nav-tab ">Help</span>
121
- <span id="gopro_tab" class="nav-tab ">Pricing Plan</span>
122
- <span id="support_tab" class="nav-tab ">Support</span>
123
- <span id="login_tab" class="nav-tab ">Login</span>
124
 
125
  </h2>
126
  </div>
@@ -129,10 +129,10 @@ function cf_setting_page() {
129
 
130
 
131
  <div class="fg_section section-text">
132
- <h3 class="fg_heading"> Create your custom form by just clicking the fields on left side of the panel. And then paste the form code in embed code section.</h3>
133
  <div class="outer_iframe_div" id="outer_iframe_div">
134
  <div class="inner_iframe_div" id="inner_iframe_div" >
135
- <iframe src="http://www.formget.com/app" name="iframe" id="iframebox" style="width:100%; height:900px; border:1px solid #dfdfdf; align:center; overflow-y:scroll;" >
136
  </iframe>
137
  </div>
138
  </div>
@@ -141,10 +141,10 @@ function cf_setting_page() {
141
  <div class="fg_group" id="pn_displaysetting">
142
 
143
  <div class="fg_section section-text">
144
- <h3 class="fg_heading">Embed code field will only accept code for tabbed widgets. Please do not place shortcode here. </h3>
145
  <div class="option">
146
  <div class="fg_controls" style="height:auto; padding-bottom: 10px;">
147
- <textarea name="content[html]" cols="60" rows="10" class="regular-text" id="fg_content_html" style="width:900px"><?php echo show_embed_code(); ?></textarea> <br>
148
  <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>
149
  <?php
150
  $page_title = $wpdb->get_results("SELECT post_title, id FROM $wpdb->posts WHERE (post_type = 'page')");
@@ -171,7 +171,7 @@ function cf_setting_page() {
171
  }
172
  ?>
173
  <div id="submit-form" class="fg_embed_code_save " > Save </div>
174
- <div id="loader_img" align="center" style="margin-left:460px; display:none;">
175
  <img src="<?php echo plugins_url('image/ajax-loader.gif', __FILE__); ?>">
176
  </div>
177
 
@@ -184,15 +184,18 @@ function cf_setting_page() {
184
  <div class="fg_group" id="pn_template">
185
  <div class="fg_section section-text">
186
  <h3 class="fg_heading"> Watch video tutorial to use Formget Contact Form Plugin</h3>
 
187
  <div id="help_txt">
188
  <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>
189
  </div>
 
 
190
  </div>
191
  </div>
192
  <div class="fg_group" id="pn_gopro">
193
  <div class="fg_section section-text">
194
- <h3 class="fg_heading"> Pricing Plan for all business types </h3>
195
- <iframe src="http://www.formget.com/app/pricing" name="iframe" style="width:1030px; height:900px; overflow-y:scroll;" >
196
  </iframe>
197
  </div>
198
  </div>
@@ -202,18 +205,19 @@ function cf_setting_page() {
202
  <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>
203
  </div>
204
  </div>
205
-
206
  <div class="fg_group" id="pn_login">
207
  <div class="fg_section section-text">
208
  <h3 class="fg_heading"> Login </h3>
209
  <div class="outer_iframe_div" id="outer_iframe_div">
210
  <div class="inner_iframe_div" id="inner_iframe_div" >
211
- <iframe src="http://www.formget.com/app/login" name="iframe" id="iframebox" style="width:100%; height:900px; border:1px solid #dfdfdf; align:center; overflow-y:scroll;" >
212
  </iframe>
213
  </div>
214
  </div>
215
  </div>
216
- </div>
 
217
  </div>
218
  <div class="clear"></div>
219
  </div>
@@ -240,16 +244,23 @@ function cf_text_ajax_process_request() {
240
  $val = $_POST['value_hide'];
241
  $page_id = $_POST['page_id'];
242
  //echo $val;
243
- update_option('fg_hide_video', $val);
 
 
 
244
  update_option('fg_embed_code', $text_value);
245
  update_option('fg_checked_page_id', $page_id);
246
  //print_r($page_id);
247
  echo 1;
 
 
 
 
248
  die();
249
  }
250
 
251
  add_action('wp_ajax_request_response', 'cf_text_ajax_process_request');
252
- add_action('wp_ajax_nopriv_request_response', 'cf_text_ajax_process_request');
253
 
254
  function show_embed_code(){
255
  global $wpdb;
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: 4.6
7
  Author: FormGet
8
  Author URI: http://www.formget.com
9
  */
118
  <span id="form_tab" class="nav-tab nav-tab-active ">Contact Form Builder </span>
119
  <span id="embed_tab" class="nav-tab ">Embed Code</span>
120
  <span id="help_tab" class="nav-tab ">Help</span>
121
+ <span id="gopro_tab" class="nav-tab ">Extensions</span>
122
+ <!--<span id="support_tab" class="nav-tab ">Support</span>-->
123
+ <!--<span id="login_tab" class="nav-tab ">Login</span>-->
124
 
125
  </h2>
126
  </div>
129
 
130
 
131
  <div class="fg_section section-text">
132
+ <h3 class="fg_heading"> Create your custom form by just clicking the fields on left side of the panel. And then paste the sliding form code in embed code section.</h3>
133
  <div class="outer_iframe_div" id="outer_iframe_div">
134
  <div class="inner_iframe_div" id="inner_iframe_div" >
135
+ <iframe src="http://www.formget.com/app" class="fbuild-iframe" name="iframe" id="iframebox" style="width:100%; height:900px; border:1px solid #dfdfdf; align:center; overflow-y:scroll;" >
136
  </iframe>
137
  </div>
138
  </div>
141
  <div class="fg_group" id="pn_displaysetting">
142
 
143
  <div class="fg_section section-text">
144
+ <h3 class="fg_heading">Embed code field will only accept code for Sliding Form. Please do not place shortcode here. </h3>
145
  <div class="option">
146
  <div class="fg_controls" style="height:auto; padding-bottom: 10px;">
147
+ <textarea name="content[html]" cols="60" rows="10" class="regular-text" id="fg_content_html" style="width:900px"><?php echo show_embed_code(); ?></textarea>
148
  <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>
149
  <?php
150
  $page_title = $wpdb->get_results("SELECT post_title, id FROM $wpdb->posts WHERE (post_type = 'page')");
171
  }
172
  ?>
173
  <div id="submit-form" class="fg_embed_code_save " > Save </div>
174
+ <div id="loader_img" align="center" style="margin-left:110px; display:none;">
175
  <img src="<?php echo plugins_url('image/ajax-loader.gif', __FILE__); ?>">
176
  </div>
177
 
184
  <div class="fg_group" id="pn_template">
185
  <div class="fg_section section-text">
186
  <h3 class="fg_heading"> Watch video tutorial to use Formget Contact Form Plugin</h3>
187
+ <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>
188
  <div id="help_txt">
189
  <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>
190
  </div>
191
+
192
+
193
  </div>
194
  </div>
195
  <div class="fg_group" id="pn_gopro">
196
  <div class="fg_section section-text">
197
+ <h3 class="fg_heading"> All Extension that FormGet provides</h3>
198
+ <iframe src="http://www.formget.com/app/extension/fg_extension/all-1" name="iframe" id="ext-iframe" style="width:1030px; height:900px; overflow-y:scroll;" >
199
  </iframe>
200
  </div>
201
  </div>
205
  <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>
206
  </div>
207
  </div>
208
+ <!--
209
  <div class="fg_group" id="pn_login">
210
  <div class="fg_section section-text">
211
  <h3 class="fg_heading"> Login </h3>
212
  <div class="outer_iframe_div" id="outer_iframe_div">
213
  <div class="inner_iframe_div" id="inner_iframe_div" >
214
+ <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;" >
215
  </iframe>
216
  </div>
217
  </div>
218
  </div>
219
+ </div>
220
+ -->
221
  </div>
222
  <div class="clear"></div>
223
  </div>
244
  $val = $_POST['value_hide'];
245
  $page_id = $_POST['page_id'];
246
  //echo $val;
247
+ $pos = strpos($text_value, "sideBar");
248
+ if($pos == true)
249
+ {
250
+ update_option('fg_hide_video', $val);
251
  update_option('fg_embed_code', $text_value);
252
  update_option('fg_checked_page_id', $page_id);
253
  //print_r($page_id);
254
  echo 1;
255
+ }
256
+ else{
257
+ echo "Please enter valid Sliding Form code";
258
+ }
259
  die();
260
  }
261
 
262
  add_action('wp_ajax_request_response', 'cf_text_ajax_process_request');
263
+
264
 
265
  function show_embed_code(){
266
  global $wpdb;
js/fg_script.js CHANGED
@@ -9,9 +9,10 @@ jQuery(document).ready(function() {
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
  jQuery('#support_tab').click(function() {
16
  // alert("hello");
17
  jQuery('.fg_group').hide();
@@ -19,6 +20,8 @@ jQuery(document).ready(function() {
19
  jQuery(this).addClass('nav-tab-active');
20
  jQuery('#pn_contactus').css("display", "block");
21
  });
 
 
22
  jQuery('#help_tab').click(function() {
23
  // alert("hello");
24
  jQuery('.fg_group').hide();
@@ -28,12 +31,12 @@ jQuery(document).ready(function() {
28
  });
29
 
30
  jQuery('#gopro_tab').click(function() {
31
- // alert("hello");
32
- jQuery('.fg_group').hide();
33
  jQuery('.nav-tab').removeClass('nav-tab-active');
34
  jQuery(this).addClass('nav-tab-active');
35
  jQuery('#pn_gopro').css("display", "block");
36
- });
 
37
 
38
  jQuery('#button_to_upgrade').click(function() {
39
  // alert("hello");
@@ -52,20 +55,25 @@ jQuery(document).ready(function() {
52
  jQuery('.nav-tab').removeClass('nav-tab-active');
53
  jQuery(this).addClass('nav-tab-active');
54
  jQuery('#pn_content').css("display", "block");
 
55
  });
 
 
56
  jQuery('#login_tab').click(function() {
57
  // alert("hello");
58
  jQuery('.fg_group').hide();
59
  jQuery('.nav-tab').removeClass('nav-tab-active');
60
  jQuery(this).addClass('nav-tab-active');
61
  jQuery('#pn_login').css("display", "block");
 
62
  });
 
63
 
64
 
65
  jQuery('.fg_embed_code_save').click(function() {
66
  jQuery('div#loader_img').css("display", "block");
67
  var text_value = jQuery('textarea#fg_content_html').val();
68
- var checkedValues = jQuery('input:checkbox:checked').map(function() {
69
  return this.value;
70
  }).get();
71
  //alert(checkedValues);
@@ -76,12 +84,15 @@ jQuery(document).ready(function() {
76
  page_id: checkedValues
77
  };
78
  jQuery.post(script_call.ajaxurl, data, function(response) {
79
- if (response) {
80
- jQuery('div#loader_img').css("display", "none");
81
- // alert(response);
82
- }
 
 
83
  else {
84
-
 
85
  jQuery('div#loader_img').css("display", "none");
86
  }
87
  });
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();
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();
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");
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);
84
  page_id: checkedValues
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
  });
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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: 3.5.1
6
- Stable tag: 4.5
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
 
@@ -165,21 +165,23 @@ When you create account in FormGet you automatically get support desk. All the e
165
 
166
  == Changelog ==
167
 
 
 
168
 
169
- = Version 4.5=
170
  * WordPress shortcode improve.
171
 
172
- = Version 4.4=
173
  * Stylesheet updated.
174
 
175
- = Version 4.3=
176
  * Made some improvement in ssl.
177
  * More secure.
178
 
179
- = Version 4.2=
180
  * CSS bug fixed.
181
 
182
- = Version 4.1=
183
  * Sidebar widget CSS bug fixed.
184
 
185
  = Version 4.0 =
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: 3.5.1
6
+ Stable tag: 4.6
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
 
165
 
166
  == Changelog ==
167
 
168
+ = Version 4.6 =
169
+ * Contact us link added in Help page.
170
 
171
+ = Version 4.5 =
172
  * WordPress shortcode improve.
173
 
174
+ = Version 4.4 =
175
  * Stylesheet updated.
176
 
177
+ = Version 4.3 =
178
  * Made some improvement in ssl.
179
  * More secure.
180
 
181
+ = Version 4.2 =
182
  * CSS bug fixed.
183
 
184
+ = Version 4.1 =
185
  * Sidebar widget CSS bug fixed.
186
 
187
  = Version 4.0 =