Version Description
Download this release
Release Info
Developer | PankajAgarwal |
Plugin | FormGet Contact Form |
Version | 5.4.6 |
Comparing to | |
See all releases |
Code changes from version 5.4.4 to 5.4.6
- css/fgstyle.css +6 -6
- index.php +253 -307
- js/fg_script.js +2 -1
- readme.txt +6 -3
css/fgstyle.css
CHANGED
@@ -90,7 +90,7 @@ div {
|
|
90 |
display: block;
|
91 |
}
|
92 |
#fg_content {
|
93 |
-
margin-top: 25px
|
94 |
border-width: 1px 0;
|
95 |
border-style: solid;
|
96 |
background: #fff;
|
@@ -106,14 +106,14 @@ div {
|
|
106 |
border-width: 1px;
|
107 |
border-style: solid;
|
108 |
position: relative;
|
109 |
-
width:
|
110 |
height: auto !important;
|
111 |
}
|
112 |
.fg_group {
|
113 |
float: left;
|
114 |
position: relative;
|
115 |
float: none;
|
116 |
-
width:
|
117 |
float: left;
|
118 |
}
|
119 |
.fg_section{
|
@@ -329,8 +329,7 @@ p.fg_video_notice{
|
|
329 |
opacity:0.6;
|
330 |
margin-left: 7px;
|
331 |
}
|
332 |
-
div#fg_videoContainer{
|
333 |
-
display: none;
|
334 |
width: 100%;
|
335 |
height: 100%;
|
336 |
background: url('../image/overlay.png' )repeat;
|
@@ -575,4 +574,5 @@ input:active {
|
|
575 |
-moz-outline-style: none !important;
|
576 |
outline:none !important;
|
577 |
outline: 0 !important;
|
578 |
-
}
|
|
90 |
display: block;
|
91 |
}
|
92 |
#fg_content {
|
93 |
+
/* margin-top: 25px;*/
|
94 |
border-width: 1px 0;
|
95 |
border-style: solid;
|
96 |
background: #fff;
|
106 |
border-width: 1px;
|
107 |
border-style: solid;
|
108 |
position: relative;
|
109 |
+
width:99%;
|
110 |
height: auto !important;
|
111 |
}
|
112 |
.fg_group {
|
113 |
float: left;
|
114 |
position: relative;
|
115 |
float: none;
|
116 |
+
width: 99%;
|
117 |
float: left;
|
118 |
}
|
119 |
.fg_section{
|
329 |
opacity:0.6;
|
330 |
margin-left: 7px;
|
331 |
}
|
332 |
+
div#fg_videoContainer{
|
|
|
333 |
width: 100%;
|
334 |
height: 100%;
|
335 |
background: url('../image/overlay.png' )repeat;
|
574 |
-moz-outline-style: none !important;
|
575 |
outline:none !important;
|
576 |
outline: 0 !important;
|
577 |
+
}
|
578 |
+
|
index.php
CHANGED
@@ -3,15 +3,15 @@
|
|
3 |
Plugin Name: FormGet Contact Form
|
4 |
Plugin URI: https://www.formget.com/formget/
|
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.4.
|
7 |
Author: FormGet
|
8 |
Author URI: https://www.formget.com/formget/
|
9 |
*/
|
10 |
require 'mailget.php';
|
11 |
|
12 |
/**
|
13 |
-
|
14 |
-
|
15 |
function formget_mailget_ajax() {
|
16 |
$mg_obj = new mailget();
|
17 |
add_action('wp_ajax_formget_mailget_display_contact_lists', array($mg_obj, 'formget_mailget_display_contact_lists'));
|
@@ -27,15 +27,14 @@ function formget_mailget_ajax() {
|
|
27 |
|
28 |
add_action('init', 'formget_mailget_ajax');
|
29 |
|
30 |
-
|
31 |
/**
|
32 |
-
|
33 |
-
|
34 |
function formget_mailget_admin_notice() {
|
35 |
$fg_iframe_form = get_option('fg_embed_code');
|
36 |
$string = "sideBar";
|
37 |
-
|
38 |
-
|
39 |
if ($pos == false) {
|
40 |
global $current_user;
|
41 |
$user_id = $current_user->ID;
|
@@ -56,78 +55,72 @@ function formget_tracking_notice() {
|
|
56 |
global $current_user;
|
57 |
$user_id = $current_user->ID;
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
}
|
67 |
-
|
68 |
-
if (isset($_GET['page']) && $_GET['page'] != 'cf_page') {
|
69 |
-
add_action('admin_notices', 'formget_mailget_admin_notice');
|
70 |
-
add_action('admin_notices', 'formget_tracking_notice');
|
71 |
}
|
72 |
|
|
|
|
|
|
|
|
|
73 |
|
74 |
function formget_mailget_admin_nag_ignore() {
|
75 |
global $current_user;
|
76 |
$user_id = $current_user->ID;
|
77 |
/* If user clicks to ignore the notice, add that to their user meta */
|
78 |
if (isset($_GET['admin_nag_ignore']) && '0' == $_GET['admin_nag_ignore']) {
|
79 |
-
|
80 |
}
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
'name' => "",
|
94 |
'email' => sanitize_email($email),
|
95 |
'get_date' => date('j-m-y'),
|
96 |
'ip' => ''
|
97 |
)
|
98 |
);
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
}
|
105 |
}
|
106 |
|
107 |
add_action('admin_init', 'formget_mailget_admin_nag_ignore');
|
108 |
|
109 |
-
|
110 |
/**
|
111 |
-
|
112 |
-
|
113 |
function formget_mailget_delete_user_entry() {
|
114 |
global $current_user;
|
115 |
$user_id = $current_user->ID;
|
116 |
delete_user_meta($user_id, 'formget_mailget_admin_ignore_notice', 'true', true);
|
117 |
-
|
118 |
}
|
119 |
|
120 |
register_deactivation_hook(__FILE__, 'formget_mailget_delete_user_entry');
|
121 |
|
122 |
|
123 |
/**
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
if (is_admin() && isset($_GET['page']) && ($_GET['page'] == 'cf_page' || $_GET['page'] == 'cf_mg_page' || $_GET['page'] == 'cf_submenu_page')) {
|
128 |
|
129 |
function formget_mailget_add_style() {
|
130 |
-
|
131 |
wp_enqueue_style('mg_admin_stylesheet', plugins_url('css/mgstyle.css', __FILE__));
|
132 |
}
|
133 |
|
@@ -143,15 +136,18 @@ if (is_admin() && isset($_GET['page']) && ($_GET['page'] == 'cf_page' || $_GET['
|
|
143 |
|
144 |
|
145 |
/**
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
add_action('admin_menu', 'formget_mailget_menu_page');
|
150 |
|
151 |
function formget_mailget_menu_page() {
|
152 |
-
add_menu_page('cf', 'Contact Form', 'manage_options', 'cf_page', '
|
153 |
-
// add_submenu_page('cf_page', '
|
154 |
-
|
|
|
|
|
|
|
|
|
155 |
}
|
156 |
|
157 |
//function formget_mailget_submenu_dashboard() {
|
@@ -160,19 +156,144 @@ function formget_mailget_menu_page() {
|
|
160 |
//}
|
161 |
|
162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
/**
|
164 |
-
|
165 |
-
|
166 |
function formget_mailget_mg_setting_page() {
|
167 |
$mg_obj = new mailget();
|
168 |
$mg_obj->formget_mailget_interface();
|
169 |
}
|
170 |
|
171 |
-
|
172 |
/**
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
function formget_mailget_extension_list() {
|
177 |
$extensions = array(
|
178 |
array('img_path' => plugins_url("image/bundle.png", __FILE__),
|
@@ -203,10 +324,10 @@ function formget_mailget_extension_list() {
|
|
203 |
'ext_title' => 'Logical Forms',
|
204 |
'ext_desc' => 'The Logical Forms Extension helps you to create form with condition logics that apply to form fields.',
|
205 |
'ext_url' => 'https://www.formget.com/app/single_extension/pricing/formcapabilities-logicalforms'),
|
206 |
-
|
207 |
'ext_title' => 'Form Scheduler',
|
208 |
'ext_desc' => 'The Form Scheduler Extension helps you to schedule your form on the basis of - specific date or total submissions.',
|
209 |
-
'ext_url' => 'https://www.formget.com/app/single_extension/pricing/formcapabilities-formentrylimit')
|
210 |
);
|
211 |
$list = '';
|
212 |
foreach ($extensions as $extension) {
|
@@ -223,223 +344,46 @@ function formget_mailget_extension_list() {
|
|
223 |
return $list;
|
224 |
}
|
225 |
|
226 |
-
|
227 |
/**
|
228 |
-
|
229 |
-
|
230 |
-
function formget_mailget_setting_page() {
|
231 |
-
$url = plugins_url();
|
232 |
-
?>
|
233 |
-
|
234 |
-
<!-- <div id="fg_videoContainer" >
|
235 |
-
|
236 |
-
</div>-->
|
237 |
-
<?php
|
238 |
-
global $wpdb;
|
239 |
-
$fg_video_code = get_option('fg_hide_video');
|
240 |
-
if ($fg_video_code == "hide") {
|
241 |
-
?>
|
242 |
-
<!-- <div class="fg_notice_div" id="fg_notice_div">
|
243 |
-
<p class="fg_video_notice" style="color:white;" >
|
244 |
-
We have created a simple video for using the FormGet Plugin.
|
245 |
-
<div class="fg_getting_started" id="fg_video_getting_started"><img src="<?php echo plugins_url('image/wvideo.png', __FILE__); ?>"></div>
|
246 |
-
<div class="hide_video_notice"><img src="<?php echo plugins_url('image/hide-btn-1.png', __FILE__); ?>"></div>
|
247 |
-
</p>
|
248 |
-
</div>-->
|
249 |
-
|
250 |
-
<?php } ?>
|
251 |
-
|
252 |
-
|
253 |
-
<div id="fg_of_container" class="fg_wrap"
|
254 |
-
|
255 |
-
|
256 |
-
<form id="fg_ofform" action="" method="POST">
|
257 |
-
<div id="fg_header">
|
258 |
-
<div class="fg_logo">
|
259 |
-
<h2> FormGet Contact Form</h2>
|
260 |
-
<!-- <img src="<?php echo plugins_url('image/extension.jpg', __FILE__); ?>" class="extensionimage" alt="Extension" />
|
261 |
-
<a href="https://www.formget.com/app/single_extension/pricing/formcapabilities-custombranding" target="_blank" class="anchorEx1"></a>
|
262 |
-
<a href="https://www.formget.com/app/single_extension/pricing/payment-paypal" target="_blank" class="anchorEx2"></a>
|
263 |
-
<a href="https://www.formget.com/app/single_extension/pricing/notification-emailnotification" target="_blank" class="anchorEx3"></a>
|
264 |
-
<a href="https://www.formget.com/app/extension/fg_extension/all-1" target="_blank" class="anchorEx4"></a>-->
|
265 |
-
</div>
|
266 |
-
<a target="#">
|
267 |
-
<div class="fg_icon-option"> </div>
|
268 |
-
</a>
|
269 |
-
<div class="clear"></div>
|
270 |
-
</div>
|
271 |
-
<div id="fg_main">
|
272 |
-
|
273 |
-
<div id="fg_of-nav" class="wrap">
|
274 |
-
<h2 class="nav-tab-wrapper">
|
275 |
-
|
276 |
-
<span id="form_tab" class="nav-tab nav-tab-active ">Contact Form Builder </span>
|
277 |
-
<span id="embed_tab" class="nav-tab ">Embed Code</span>
|
278 |
-
<span id="help_tab" class="nav-tab ">Help</span>
|
279 |
-
<span id="gopro_tab" class="nav-tab ">Upgrade</span>
|
280 |
-
<span id="login_tab" class="nav-tab ">Login</span>
|
281 |
-
<!--<span id="support_tab" class="nav-tab ">Support</span>-->
|
282 |
-
<!--<span id="login_tab" class="nav-tab ">Login</span>-->
|
283 |
-
|
284 |
-
</h2>
|
285 |
-
</div>
|
286 |
-
<div id="fg_content">
|
287 |
-
<div class="fg_group" id="pn_content">
|
288 |
-
|
289 |
-
|
290 |
-
<div class="fg_section section-text">
|
291 |
-
<h3 class="fg_heading"> Create your custom form by just clicking the fields on left side of the panel.</h3>
|
292 |
-
<div class="outer_iframe_div" id="outer_iframe_div">
|
293 |
-
<div class="inner_iframe_div" id="inner_iframe_div">
|
294 |
-
<iframe src="https://www.formget.com/app" class="fbuild-iframe" name="iframe" id="iframebox" style="width:100%; height:900px; border:1px solid #dfdfdf; align:center;" >
|
295 |
-
</iframe>
|
296 |
-
</div>
|
297 |
-
</div>
|
298 |
-
</div>
|
299 |
-
</div>
|
300 |
-
<div class="fg_group" id="pn_displaysetting">
|
301 |
-
|
302 |
-
<div class="fg_section section-text">
|
303 |
-
<h3 class="fg_heading">Embed the code of sliding form. (To get the sliding form code, Click on Contact Form Builder tab-> Go to you form Settings-> Embed & Share -> Embed Sliding Form -> Copy & paste the code below.</h3>
|
304 |
-
<div class="option">
|
305 |
-
<div class="fg_controls" style="height:auto; padding-bottom: 10px;">
|
306 |
-
<textarea name="content[html]" cols="60" rows="10" class="regular-text" id="fg_content_html" style="width:900px"><?php echo esc_html(formget_mailget_show_embed_code()); ?></textarea>
|
307 |
-
<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>
|
308 |
-
<?php
|
309 |
-
$page_title = $wpdb->get_results("SELECT post_title, id FROM $wpdb->posts WHERE (post_type = 'page' AND post_status = 'publish')");
|
310 |
-
$val = get_option('fg_checked_page_id');
|
311 |
-
if (!empty($val) && in_array("home1", $val)) {
|
312 |
-
?>
|
313 |
-
<input id="fg_selected_box" type="checkbox" name="checkbox" value="home1" checked>
|
314 |
-
<?php } else {
|
315 |
-
?>
|
316 |
-
<input id="fg_selected_box" type="checkbox" name="checkbox" value="home1">
|
317 |
-
<?php
|
318 |
-
}
|
319 |
-
echo "Home" . "<br/>";
|
320 |
-
|
321 |
-
foreach ($page_title as $title) {
|
322 |
-
$fg_list_page_id = get_option('fg_checked_page_id');
|
323 |
-
?>
|
324 |
-
<input id="fg_selected_box" type="checkbox" name="checkbox" value="<?php echo $title->id; ?>"
|
325 |
-
<?php
|
326 |
-
if (!empty($fg_list_page_id)) {
|
327 |
-
foreach ($fg_list_page_id as $list) {
|
328 |
-
if ($list == $title->id) {
|
329 |
-
?>
|
330 |
-
checked
|
331 |
-
<?php
|
332 |
-
}
|
333 |
-
}
|
334 |
-
}
|
335 |
-
?> >
|
336 |
-
|
337 |
-
<?php
|
338 |
-
echo esc_html($title->post_title);
|
339 |
-
echo "<br>";
|
340 |
-
}
|
341 |
-
?>
|
342 |
-
<div id="submit-form" class="fg_embed_code_save " > Save </div>
|
343 |
-
<div id="loader_img" align="center" style="margin-left:110px; display:none;">
|
344 |
-
<img src="<?php echo esc_url(plugins_url('image/ajax-loader.gif', __FILE__)); ?>">
|
345 |
-
</div>
|
346 |
-
|
347 |
-
</div>
|
348 |
-
|
349 |
-
</div>
|
350 |
-
</div>
|
351 |
-
|
352 |
-
</div>
|
353 |
-
<div class="fg_group" id="pn_template">
|
354 |
-
<div class="fg_section section-text">
|
355 |
-
<h3 class="fg_heading"> Watch video tutorial to use Formget Contact Form Plugin</h3>
|
356 |
-
<p class="fg_info"><b>If you have any query. Please <a href="https://www.formget.com/contact-us/" target="blank">Contact Us</a></b> </p>
|
357 |
-
<div id="help_txt">
|
358 |
-
<iframe class="video_tobe_shown" width="700" height="400" src="//player.vimeo.com/video/84023688?autoplay=0&loop=1&rel=0&wmode=transparent" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" __idm_id__="7182340"></iframe>
|
359 |
-
</div>
|
360 |
-
|
361 |
-
|
362 |
-
</div>
|
363 |
-
</div>
|
364 |
-
<div class="fg_group" id="pn_gopro">
|
365 |
-
<div class="fg_section section-text">
|
366 |
-
<!-- <h3 class="fg_heading">Check Pricing..</h3>-->
|
367 |
-
<iframe src="https://www.formget.com/formget/#pricing" name="iframe" id="ext-iframe" style="width:100%; height:900px; overflow-y:scroll;" >
|
368 |
-
</iframe>
|
369 |
-
</div>
|
370 |
-
</div>
|
371 |
-
<div class="fg_group" id="pn_contactus">
|
372 |
-
<div class="fg_section section-text">
|
373 |
-
<h3 class="fg_heading"> Contact Us</h3>
|
374 |
-
<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>
|
375 |
-
</div>
|
376 |
-
</div>
|
377 |
-
|
378 |
-
<div class="fg_group" id="pn_login">
|
379 |
-
<div class="fg_section section-text">
|
380 |
-
<h3 class="fg_heading"> Login to your FormGet account.</h3>
|
381 |
-
<div class="outer_iframe_div" id="outer_iframe_div">
|
382 |
-
<div class="inner_iframe_div" id="inner_iframe_div" >
|
383 |
-
<iframe src="https://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;" >
|
384 |
-
</iframe>
|
385 |
-
</div>
|
386 |
-
</div>
|
387 |
-
</div>
|
388 |
-
</div>
|
389 |
-
|
390 |
-
</div>
|
391 |
-
<div class="clear"></div>
|
392 |
-
</div>
|
393 |
-
<div class="fg_save_bar_top">
|
394 |
-
</div>
|
395 |
-
|
396 |
-
</form>
|
397 |
-
</div>
|
398 |
-
|
399 |
-
<?php
|
400 |
-
}
|
401 |
-
|
402 |
-
/**
|
403 |
-
* script included for both formget & mailget
|
404 |
-
*/
|
405 |
-
|
406 |
function formget_mailget_embeded_script() {
|
407 |
-
wp_enqueue_script('embeded_script', plugins_url('js/fg_script.js', __FILE__), array('jquery'));
|
408 |
wp_localize_script('embeded_script', 'script_call', array('ajaxurl' => admin_url('admin-ajax.php'), 'aj_nonce' => wp_create_nonce('script-nonce')));
|
409 |
-
wp_enqueue_script('mg_script', plugins_url('js/mg_script.js', __FILE__), array('jquery'));
|
410 |
wp_localize_script('mg_script', 'mg_option', array('ajaxurl' => admin_url('admin-ajax.php'), 'mg_option_nonce' => wp_create_nonce('mg_option_nonce')));
|
411 |
}
|
412 |
|
413 |
-
if (isset($_GET['page'])
|
414 |
add_action('init', 'formget_mailget_embeded_script');
|
415 |
}
|
416 |
|
417 |
/**
|
418 |
-
|
419 |
-
|
420 |
function formget_mailget_text_ajax_process_request() {
|
421 |
if (!check_ajax_referer('script-nonce', 'aj_nonce') && !is_user_logged_in() && !current_user_can('manage_options')) {
|
422 |
return;
|
423 |
}
|
424 |
-
|
425 |
-
|
426 |
// $val = $_POST['value_hide'];
|
427 |
-
|
428 |
-
|
429 |
-
$new_input[
|
430 |
-
sanitize_text_field(
|
431 |
-
'';
|
432 |
-
}
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
}
|
437 |
-
|
438 |
$pos = strpos($text_value, "sideBar");
|
439 |
if ($pos == true || trim($text_value) == '') {
|
440 |
//update_option('fg_hide_video', $val);
|
441 |
-
|
442 |
-
|
443 |
//print_r($page_id);
|
444 |
echo 1;
|
445 |
} else {
|
@@ -450,11 +394,9 @@ sanitize_text_field( $val ) :
|
|
450 |
|
451 |
add_action('wp_ajax_request_response', 'formget_mailget_text_ajax_process_request');
|
452 |
|
453 |
-
|
454 |
/**
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
function formget_mailget_show_embed_code() {
|
459 |
global $wpdb;
|
460 |
$fg_iframe_form = get_option('fg_embed_code');
|
@@ -472,9 +414,8 @@ function formget_mailget_show_embed_code() {
|
|
472 |
*/
|
473 |
|
474 |
/**
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
if (!function_exists('formget_mailget_embeded_code')) {
|
479 |
|
480 |
function formget_mailget_embeded_code() {
|
@@ -509,9 +450,8 @@ if (!function_exists('formget_mailget_embeded_code')) {
|
|
509 |
}
|
510 |
|
511 |
/**
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
function formget_mailget_subscribe_form() {
|
516 |
$mg_obj = new mailget();
|
517 |
$page_id = get_the_ID();
|
@@ -540,21 +480,21 @@ if (!is_admin()) {
|
|
540 |
}
|
541 |
|
542 |
/**
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
function formget_mailget_style() {
|
547 |
wp_enqueue_style('mg-style', plugins_url('css/mg_popup.css', __FILE__));
|
548 |
-
wp_enqueue_script("mg-front", plugins_url('js/mg_front.js', __FILE__), array('jquery'));
|
549 |
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')));
|
|
|
550 |
}
|
551 |
|
552 |
-
add_action('
|
553 |
|
554 |
|
555 |
/**
|
556 |
-
|
557 |
-
|
558 |
if (!function_exists('formget_mailget_shortcode')) {
|
559 |
|
560 |
function formget_mailget_shortcode($atts, $content = null) {
|
@@ -625,8 +565,8 @@ EOD;
|
|
625 |
add_shortcode('formget', 'formget_mailget_shortcode');
|
626 |
|
627 |
/**
|
628 |
-
|
629 |
-
|
630 |
if (!class_exists('Formget_Widget')) {
|
631 |
|
632 |
class Formget_Widget extends WP_Widget {
|
@@ -643,44 +583,50 @@ if (!class_exists('Formget_Widget')) {
|
|
643 |
?>
|
644 |
<div class='formget_widget' style="<?php if ($pos == True) { ?>
|
645 |
-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;
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
<p>
|
662 |
<label for="<?php echo esc_html($this->get_field_id('textarea')); ?>"><?php _e('Textarea:', 'wp_widget_plugin'); ?></label>
|
663 |
<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
|
664 |
"><?php echo $text ?></textarea>
|
665 |
</p>
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
}
|
673 |
-
|
674 |
}
|
675 |
|
676 |
}
|
677 |
-
add_action('widgets_init', 'formget_mailget_register_widget', 20);
|
678 |
|
679 |
-
|
|
|
680 |
|
681 |
-
|
682 |
-
|
683 |
-
|
|
|
|
|
684 |
|
|
|
|
|
|
|
|
|
|
|
|
|
685 |
}
|
686 |
-
|
3 |
Plugin Name: FormGet Contact Form
|
4 |
Plugin URI: https://www.formget.com/formget/
|
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.4.6
|
7 |
Author: FormGet
|
8 |
Author URI: https://www.formget.com/formget/
|
9 |
*/
|
10 |
require 'mailget.php';
|
11 |
|
12 |
/**
|
13 |
+
* MailGet Panel Ajax calling
|
14 |
+
*/
|
15 |
function formget_mailget_ajax() {
|
16 |
$mg_obj = new mailget();
|
17 |
add_action('wp_ajax_formget_mailget_display_contact_lists', array($mg_obj, 'formget_mailget_display_contact_lists'));
|
27 |
|
28 |
add_action('init', 'formget_mailget_ajax');
|
29 |
|
|
|
30 |
/**
|
31 |
+
* Notice to show "Create form" on page other than formget setting
|
32 |
+
*/
|
33 |
function formget_mailget_admin_notice() {
|
34 |
$fg_iframe_form = get_option('fg_embed_code');
|
35 |
$string = "sideBar";
|
36 |
+
$para = "?admin_nag_ignore=0&page=" . $_GET['page'];
|
37 |
+
$pos = strpos($fg_iframe_form, $string);
|
38 |
if ($pos == false) {
|
39 |
global $current_user;
|
40 |
$user_id = $current_user->ID;
|
55 |
global $current_user;
|
56 |
$user_id = $current_user->ID;
|
57 |
|
58 |
+
/* Check that the user hasn't already clicked to ignore the message */
|
59 |
+
if (!get_user_meta($user_id, 'formget_tracking_ignore_notice')) {
|
60 |
+
?>
|
61 |
+
<div class="updated um-admin-notice"><p>Allow FormGet to send you setup guide? Opt-in to our newsletter and we will immediately e-mail you a setup guide along with 20% discount which you can use to purchase the FormGet extension bundle.</p><p><a href="<?php echo admin_url('admin.php?page=cf_page&fg_page_tracking=allow_tracking'); ?>" class="button button-primary">Allow Sending</a> <a href="<?php echo admin_url('admin.php?page=cf_page&fg_page_tracking=hide_tracking'); ?>" class="button-secondary">Do not allow </a></p></div>
|
62 |
+
<?php
|
63 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
}
|
65 |
|
66 |
+
//if (isset($_GET['page']) && $_GET['page'] != 'cf_page') {
|
67 |
+
// add_action('admin_notices', 'formget_mailget_admin_notice');
|
68 |
+
// add_action('admin_notices', 'formget_tracking_notice');
|
69 |
+
//}
|
70 |
|
71 |
function formget_mailget_admin_nag_ignore() {
|
72 |
global $current_user;
|
73 |
$user_id = $current_user->ID;
|
74 |
/* If user clicks to ignore the notice, add that to their user meta */
|
75 |
if (isset($_GET['admin_nag_ignore']) && '0' == $_GET['admin_nag_ignore']) {
|
76 |
+
add_user_meta($user_id, 'formget_mailget_admin_ignore_notice', 'true', true);
|
77 |
}
|
78 |
+
|
79 |
+
if (isset($_GET["fg_page_tracking"]) && $_GET["fg_page_tracking"] == "hide_tracking") {
|
80 |
+
add_user_meta($user_id, 'formget_tracking_ignore_notice', 'true', true);
|
81 |
+
}
|
82 |
+
if (isset($_GET["fg_page_tracking"]) && $_GET["fg_page_tracking"] == "allow_tracking") {
|
83 |
+
$email = get_option("admin_email");
|
84 |
+
if (isset($email) && $email != "") {
|
85 |
+
$mg_api_key = "EsT96nYTlxED";
|
86 |
+
require_once('inc/mailget_curl.php');
|
87 |
+
$list_arr = array();
|
88 |
+
$mg_obj = new mailget_curl($mg_api_key);
|
89 |
+
$mg_arr = array(array(
|
90 |
'name' => "",
|
91 |
'email' => sanitize_email($email),
|
92 |
'get_date' => date('j-m-y'),
|
93 |
'ip' => ''
|
94 |
)
|
95 |
);
|
96 |
+
$curt_status = $mg_obj->curl_data($mg_arr, "Ijc1OTcxMyI_3D", 'single');
|
97 |
+
}
|
98 |
+
add_user_meta($user_id, 'formget_tracking_ignore_notice', 'true', true);
|
99 |
+
}
|
|
|
|
|
100 |
}
|
101 |
|
102 |
add_action('admin_init', 'formget_mailget_admin_nag_ignore');
|
103 |
|
|
|
104 |
/**
|
105 |
+
* To delete data from table on deactivation of plugin
|
106 |
+
*/
|
107 |
function formget_mailget_delete_user_entry() {
|
108 |
global $current_user;
|
109 |
$user_id = $current_user->ID;
|
110 |
delete_user_meta($user_id, 'formget_mailget_admin_ignore_notice', 'true', true);
|
111 |
+
delete_user_meta($user_id, 'formget_tracking_ignore_notice', 'true', true);
|
112 |
}
|
113 |
|
114 |
register_deactivation_hook(__FILE__, 'formget_mailget_delete_user_entry');
|
115 |
|
116 |
|
117 |
/**
|
118 |
+
* css loaded for dashboard page
|
119 |
+
*/
|
120 |
+
if (is_admin() && isset($_GET['page'])) {
|
|
|
121 |
|
122 |
function formget_mailget_add_style() {
|
123 |
+
wp_enqueue_style('form1_style1_sheet', plugins_url('css/fgstyle.css', __FILE__));
|
124 |
wp_enqueue_style('mg_admin_stylesheet', plugins_url('css/mgstyle.css', __FILE__));
|
125 |
}
|
126 |
|
136 |
|
137 |
|
138 |
/**
|
139 |
+
* menu & submenu function called
|
140 |
+
*/
|
|
|
141 |
add_action('admin_menu', 'formget_mailget_menu_page');
|
142 |
|
143 |
function formget_mailget_menu_page() {
|
144 |
+
add_menu_page('cf', 'Contact Form Builder', 'manage_options', 'cf_page', 'fg_create_form', plugins_url('image/favicon.ico', __FILE__), 109);
|
145 |
+
// add_submenu_page('cf_page', 'Contact Form Builder', 'Contact Form Builder', 'manage_options', 'form_tab', 'fg_create_form');
|
146 |
+
add_submenu_page('cf_page', 'Embed Code', 'Embed Code', 'manage_options', 'embed_tab', 'fg_embed_code');
|
147 |
+
add_submenu_page('cf_page', 'Help', 'Help', 'manage_options', 'help_tab', 'fg_help_tab');
|
148 |
+
add_submenu_page('cf_page', 'Upgrade', 'Upgrade', 'manage_options', 'gopro_tab', 'fg_gopro_tab');
|
149 |
+
add_submenu_page('cf_page', 'SignUp/Login', 'SignUp/Login', 'manage_options', 'login_tab', 'fg_signup_tab');
|
150 |
+
// add_menu_page('Email Marketing', 'Email Marketing', 'manage_options', 'cf_mg_page', 'formget_mailget_mg_setting_page', plugins_url('image/mailgeticon.png', __FILE__), 110);
|
151 |
}
|
152 |
|
153 |
//function formget_mailget_submenu_dashboard() {
|
156 |
//}
|
157 |
|
158 |
|
159 |
+
function fg_create_form() {
|
160 |
+
?>
|
161 |
+
<div id="fg_content1">
|
162 |
+
<div class="fg_group1" id="pn_content">
|
163 |
+
<div class="fg_section section-text">
|
164 |
+
<div class="outer_iframe_div" id="outer_iframe_div">
|
165 |
+
<div class="inner_iframe_div" id="inner_iframe_div">
|
166 |
+
<iframe src="https://www.formget.com/app/home" class="fbuild-iframe" name="iframe" id="iframebox" style="width:100%; height:900px; border:1px solid #dfdfdf; align:center;" >
|
167 |
+
</iframe>
|
168 |
+
</div>
|
169 |
+
</div>
|
170 |
+
</div>
|
171 |
+
</div>
|
172 |
+
</div>
|
173 |
+
|
174 |
+
<?php
|
175 |
+
}
|
176 |
+
|
177 |
+
function fg_embed_code() {
|
178 |
+
global $wpdb;
|
179 |
+
?>
|
180 |
+
<div id="fg_content1">
|
181 |
+
<div class="fg_group1" id="pn_content">
|
182 |
+
<div id="fg_of_container" class="fg_wrap">
|
183 |
+
<form id="fg_ofform" action="" method="POST">
|
184 |
+
<div id="fg_content1">
|
185 |
+
<div class="fg_group11" id="pn_displaysetting">
|
186 |
+
|
187 |
+
<div class="fg_section section-text">
|
188 |
+
<h3 class="fg_heading">Embed the code of sliding form. (To get the sliding form code, Click on Contact Form Builder tab-> Go to you form Settings-> Embed & Share -> Embed Sliding Form -> Copy & paste the code below.</h3>
|
189 |
+
<div class="option">
|
190 |
+
<div class="fg_controls" style="height:auto; padding-bottom: 10px;">
|
191 |
+
<textarea name="content[html]" cols="60" rows="10" class="regular-text" id="fg_content_html" style="width:900px"><?php echo esc_html(formget_mailget_show_embed_code()); ?></textarea>
|
192 |
+
<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>
|
193 |
+
<?php
|
194 |
+
$page_title = $wpdb->get_results("SELECT post_title, id FROM $wpdb->posts WHERE (post_type = 'page' AND post_status = 'publish')");
|
195 |
+
$val = get_option('fg_checked_page_id');
|
196 |
+
if (!empty($val) && in_array("home1", $val)) {
|
197 |
+
?>
|
198 |
+
<input id="fg_selected_box" type="checkbox" name="checkbox" value="home1" checked>
|
199 |
+
<?php } else {
|
200 |
+
?>
|
201 |
+
<input id="fg_selected_box" type="checkbox" name="checkbox" value="home1">
|
202 |
+
<?php
|
203 |
+
}
|
204 |
+
echo "Home" . "<br/>";
|
205 |
+
|
206 |
+
foreach ($page_title as $title) {
|
207 |
+
$fg_list_page_id = get_option('fg_checked_page_id');
|
208 |
+
?>
|
209 |
+
<input id="fg_selected_box" type="checkbox" name="checkbox" value="<?php echo $title->id; ?>"
|
210 |
+
<?php
|
211 |
+
if (!empty($fg_list_page_id)) {
|
212 |
+
foreach ($fg_list_page_id as $list) {
|
213 |
+
if ($list == $title->id) {
|
214 |
+
?>
|
215 |
+
checked
|
216 |
+
<?php
|
217 |
+
}
|
218 |
+
}
|
219 |
+
}
|
220 |
+
?> >
|
221 |
+
|
222 |
+
<?php
|
223 |
+
echo esc_html($title->post_title);
|
224 |
+
echo "<br>";
|
225 |
+
}
|
226 |
+
?>
|
227 |
+
<div id="submit-form" class="fg_embed_code_save " > Save </div>
|
228 |
+
<div id="loader_img" align="center" style="margin-left:110px; display:none;">
|
229 |
+
<img src="<?php echo esc_url(plugins_url('image/ajax-loader.gif', __FILE__)); ?>">
|
230 |
+
</div>
|
231 |
+
|
232 |
+
</div>
|
233 |
+
|
234 |
+
</div>
|
235 |
+
</div>
|
236 |
+
|
237 |
+
</div>
|
238 |
+
</div>
|
239 |
+
</form>
|
240 |
+
</div>
|
241 |
+
</div>
|
242 |
+
</div>
|
243 |
+
<?php }
|
244 |
+
|
245 |
+
function fg_help_tab() {
|
246 |
+
?>
|
247 |
+
<div class="fg_group1" id="pn_template">
|
248 |
+
<div class="fg_section section-text">
|
249 |
+
<h3 class="fg_heading"> Watch video tutorial to use Formget Contact Form Plugin</h3>
|
250 |
+
<p class="fg_info"><b>If you have any query. Please <a href="https://www.formget.com/contact-us/" target="blank">Contact Us</a></b> </p>
|
251 |
+
<div id="help_txt">
|
252 |
+
<iframe class="video_tobe_shown" width="700" height="400" src="//player.vimeo.com/video/84023688?autoplay=0&loop=1&rel=0&wmode=transparent" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" __idm_id__="7182340"></iframe>
|
253 |
+
</div>
|
254 |
+
|
255 |
+
|
256 |
+
</div>
|
257 |
+
</div>
|
258 |
+
<?php }
|
259 |
+
|
260 |
+
function fg_gopro_tab() {
|
261 |
+
?>
|
262 |
+
<div class="fg_group1" id="pn_gopro">
|
263 |
+
<div class="fg_section section-text">
|
264 |
+
<!-- <h3 class="fg_heading">Check Pricing..</h3>-->
|
265 |
+
<iframe src="https://www.formget.com/formget/pricing/" name="iframe" id="ext-iframe" style="width:100%; height:900px; overflow-y:scroll;" >
|
266 |
+
</iframe>
|
267 |
+
</div>
|
268 |
+
</div>
|
269 |
+
<?php }
|
270 |
+
|
271 |
+
function fg_signup_tab() {
|
272 |
+
?>
|
273 |
+
<div class="fg_group1" id="pn_login">
|
274 |
+
<div class="fg_section section-text">
|
275 |
+
<div class="outer_iframe_div" id="outer_iframe_div">
|
276 |
+
<div class="inner_iframe_div" id="inner_iframe_div" >
|
277 |
+
<iframe src="https://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;" >
|
278 |
+
</iframe>
|
279 |
+
</div>
|
280 |
+
</div>
|
281 |
+
</div>
|
282 |
+
</div>
|
283 |
+
<?php
|
284 |
+
}
|
285 |
+
|
286 |
/**
|
287 |
+
* mailget menu function call for setting page
|
288 |
+
*/
|
289 |
function formget_mailget_mg_setting_page() {
|
290 |
$mg_obj = new mailget();
|
291 |
$mg_obj->formget_mailget_interface();
|
292 |
}
|
293 |
|
|
|
294 |
/**
|
295 |
+
* Extension menu function call for setting page
|
296 |
+
*/
|
|
|
297 |
function formget_mailget_extension_list() {
|
298 |
$extensions = array(
|
299 |
array('img_path' => plugins_url("image/bundle.png", __FILE__),
|
324 |
'ext_title' => 'Logical Forms',
|
325 |
'ext_desc' => 'The Logical Forms Extension helps you to create form with condition logics that apply to form fields.',
|
326 |
'ext_url' => 'https://www.formget.com/app/single_extension/pricing/formcapabilities-logicalforms'),
|
327 |
+
array('img_path' => plugins_url("image/form_scheduler_icon.png", __FILE__),
|
328 |
'ext_title' => 'Form Scheduler',
|
329 |
'ext_desc' => 'The Form Scheduler Extension helps you to schedule your form on the basis of - specific date or total submissions.',
|
330 |
+
'ext_url' => 'https://www.formget.com/app/single_extension/pricing/formcapabilities-formentrylimit')
|
331 |
);
|
332 |
$list = '';
|
333 |
foreach ($extensions as $extension) {
|
344 |
return $list;
|
345 |
}
|
346 |
|
|
|
347 |
/**
|
348 |
+
* script included for both formget & mailget
|
349 |
+
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
function formget_mailget_embeded_script() {
|
351 |
+
wp_enqueue_script('embeded_script', plugins_url('js/fg_script.js', __FILE__), array('jquery'),'',true);
|
352 |
wp_localize_script('embeded_script', 'script_call', array('ajaxurl' => admin_url('admin-ajax.php'), 'aj_nonce' => wp_create_nonce('script-nonce')));
|
353 |
+
wp_enqueue_script('mg_script', plugins_url('js/mg_script.js', __FILE__), array('jquery'),'',true);
|
354 |
wp_localize_script('mg_script', 'mg_option', array('ajaxurl' => admin_url('admin-ajax.php'), 'mg_option_nonce' => wp_create_nonce('mg_option_nonce')));
|
355 |
}
|
356 |
|
357 |
+
if (isset($_GET['page'])) {
|
358 |
add_action('init', 'formget_mailget_embeded_script');
|
359 |
}
|
360 |
|
361 |
/**
|
362 |
+
* Ajax called at time of saving embed code
|
363 |
+
*/
|
364 |
function formget_mailget_text_ajax_process_request() {
|
365 |
if (!check_ajax_referer('script-nonce', 'aj_nonce') && !is_user_logged_in() && !current_user_can('manage_options')) {
|
366 |
return;
|
367 |
}
|
368 |
+
$new_input = array();
|
369 |
+
$text_value = $_POST['value'];
|
370 |
// $val = $_POST['value_hide'];
|
371 |
+
if (isset($_POST['page_id']) && !empty($_POST['page_id'])) {
|
372 |
+
foreach ($_POST['page_id'] as $key => $val) {
|
373 |
+
$new_input[$key] = ( isset($_POST['page_id'][$key]) ) ?
|
374 |
+
sanitize_text_field($val) :
|
375 |
+
'';
|
376 |
+
}
|
377 |
+
$page_id = $new_input;
|
378 |
+
} else {
|
379 |
+
$page_id = '';
|
380 |
}
|
381 |
+
//echo $val;
|
382 |
$pos = strpos($text_value, "sideBar");
|
383 |
if ($pos == true || trim($text_value) == '') {
|
384 |
//update_option('fg_hide_video', $val);
|
385 |
+
update_option('fg_embed_code', $text_value);
|
386 |
+
update_option('fg_checked_page_id', $page_id);
|
387 |
//print_r($page_id);
|
388 |
echo 1;
|
389 |
} else {
|
394 |
|
395 |
add_action('wp_ajax_request_response', 'formget_mailget_text_ajax_process_request');
|
396 |
|
|
|
397 |
/**
|
398 |
+
* to show saved embed code in dashboard
|
399 |
+
*/
|
|
|
400 |
function formget_mailget_show_embed_code() {
|
401 |
global $wpdb;
|
402 |
$fg_iframe_form = get_option('fg_embed_code');
|
414 |
*/
|
415 |
|
416 |
/**
|
417 |
+
* To dispaly sliding form at front-end
|
418 |
+
*/
|
|
|
419 |
if (!function_exists('formget_mailget_embeded_code')) {
|
420 |
|
421 |
function formget_mailget_embeded_code() {
|
450 |
}
|
451 |
|
452 |
/**
|
453 |
+
* To display mailget subscriber form at front-end
|
454 |
+
*/
|
|
|
455 |
function formget_mailget_subscribe_form() {
|
456 |
$mg_obj = new mailget();
|
457 |
$page_id = get_the_ID();
|
480 |
}
|
481 |
|
482 |
/**
|
483 |
+
* To include style-sheet (css) at dashboard area
|
484 |
+
*/
|
485 |
+
function formget_mailget_scripts() {
|
|
|
486 |
wp_enqueue_style('mg-style', plugins_url('css/mg_popup.css', __FILE__));
|
487 |
+
wp_enqueue_script("mg-front", plugins_url('js/mg_front.js', __FILE__), array('jquery'),'',true);
|
488 |
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')));
|
489 |
+
|
490 |
}
|
491 |
|
492 |
+
add_action('admin_enqueue_scripts', 'formget_mailget_scripts');
|
493 |
|
494 |
|
495 |
/**
|
496 |
+
* To display formget form using shortcode
|
497 |
+
*/
|
498 |
if (!function_exists('formget_mailget_shortcode')) {
|
499 |
|
500 |
function formget_mailget_shortcode($atts, $content = null) {
|
565 |
add_shortcode('formget', 'formget_mailget_shortcode');
|
566 |
|
567 |
/**
|
568 |
+
* To display form using Widget
|
569 |
+
*/
|
570 |
if (!class_exists('Formget_Widget')) {
|
571 |
|
572 |
class Formget_Widget extends WP_Widget {
|
583 |
?>
|
584 |
<div class='formget_widget' style="<?php if ($pos == True) { ?>
|
585 |
-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;
|
586 |
+
<?php }
|
587 |
+
?>">
|
588 |
+
<?php
|
589 |
+
echo $instance['textarea'];
|
590 |
+
echo "</div>";
|
591 |
+
}
|
592 |
|
593 |
+
public function update($new_instance, $old_instance) {
|
594 |
+
return $new_instance;
|
595 |
+
}
|
596 |
|
597 |
+
public function form($instance) {
|
598 |
+
$instance = wp_parse_args((array) $instance, array('textarea' => ''));
|
599 |
+
$text = format_to_edit($instance['textarea']);
|
600 |
+
?>
|
601 |
<p>
|
602 |
<label for="<?php echo esc_html($this->get_field_id('textarea')); ?>"><?php _e('Textarea:', 'wp_widget_plugin'); ?></label>
|
603 |
<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
|
604 |
"><?php echo $text ?></textarea>
|
605 |
</p>
|
606 |
+
<?php
|
607 |
+
!empty($text)
|
608 |
+
and print '<h3>Preview</h3><div style="border:3px solid #369;padding:11px; margin-bottom: 5px;">'
|
609 |
+
. $instance['textarea'] . '</div>';
|
610 |
+
?>
|
611 |
+
<?php
|
|
|
|
|
612 |
}
|
613 |
|
614 |
}
|
|
|
615 |
|
616 |
+
}
|
617 |
+
add_action('widgets_init', 'formget_mailget_register_widget', 20);
|
618 |
|
619 |
+
if (!function_exists('formget_mailget_register_widget')) {
|
620 |
+
|
621 |
+
function formget_mailget_register_widget() {
|
622 |
+
register_widget('Formget_Widget');
|
623 |
+
}
|
624 |
|
625 |
+
}
|
626 |
+
|
627 |
+
function hide_update_msg_non_admins(){
|
628 |
+
if (current_user_can( 'manage_options' )) {
|
629 |
+
echo '<style>#setting-error-tgmpa>.updated settings-error notice is-dismissible, .update-nag, .updated { display: none; }</style>';
|
630 |
+
}
|
631 |
}
|
632 |
+
add_action( 'admin_head', 'hide_update_msg_non_admins');
|
js/fg_script.js
CHANGED
@@ -48,7 +48,8 @@ jQuery(document).ready(function () {
|
|
48 |
//jQuery('#pn_gopro').css("display", "block");
|
49 |
});
|
50 |
|
51 |
-
jQuery('#form_tab').click(function () {
|
|
|
52 |
// alert("hello");
|
53 |
jQuery('.fg_group').hide();
|
54 |
jQuery('.nav-tab').removeClass('nav-tab-active');
|
48 |
//jQuery('#pn_gopro').css("display", "block");
|
49 |
});
|
50 |
|
51 |
+
jQuery('#form_tab').click(function (e) {
|
52 |
+
e.preventDefault();
|
53 |
// alert("hello");
|
54 |
jQuery('.fg_group').hide();
|
55 |
jQuery('.nav-tab').removeClass('nav-tab-active');
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== FormGet Contact Form ===
|
2 |
Contributors: Pankaj Agarwal
|
3 |
Tags: contact form, form, forms, contact form plugin, feedback form, Responsive Contact Form, contact us, contact form payments, contact for paypal, form builder, easy contact form
|
4 |
-
Requires at least:
|
5 |
-
Tested up to: 4.9.
|
6 |
-
Stable tag: 5.4.
|
7 |
|
8 |
FormGet online Form builder manage all your contact forms in single dashboard. Just a click on fields and your create contact forms that are ready for collect leads.
|
9 |
|
@@ -109,6 +109,9 @@ When you create account in FormGet you automatically get support desk. All the e
|
|
109 |
|
110 |
|
111 |
== Changelog ==
|
|
|
|
|
|
|
112 |
= Version 5.4.4 =
|
113 |
* Fixed HTTPS links.
|
114 |
|
1 |
=== FormGet Contact Form ===
|
2 |
Contributors: Pankaj Agarwal
|
3 |
Tags: contact form, form, forms, contact form plugin, feedback form, Responsive Contact Form, contact us, contact form payments, contact for paypal, form builder, easy contact form
|
4 |
+
Requires at least: 4.4.0
|
5 |
+
Tested up to: 4.9.8
|
6 |
+
Stable tag: 5.4.6
|
7 |
|
8 |
FormGet online Form builder manage all your contact forms in single dashboard. Just a click on fields and your create contact forms that are ready for collect leads.
|
9 |
|
109 |
|
110 |
|
111 |
== Changelog ==
|
112 |
+
= Version 5.4.6 =
|
113 |
+
* Changed plugin interface.
|
114 |
+
|
115 |
= Version 5.4.4 =
|
116 |
* Fixed HTTPS links.
|
117 |
|