Version Description
Download this release
Release Info
Developer | PankajAgarwal |
Plugin | FormGet Contact Form |
Version | 5.4.1 |
Comparing to | |
See all releases |
Code changes from version 5.4.0 to 5.4.1
- index.php +40 -1
- readme.txt +5 -2
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: 5.4.
|
7 |
Author: FormGet
|
8 |
Author URI: http://www.formget.com
|
9 |
*/
|
@@ -52,8 +52,22 @@ function formget_mailget_admin_notice() {
|
|
52 |
}
|
53 |
}
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
if (isset($_GET['page']) && $_GET['page'] != 'cf_page') {
|
56 |
add_action('admin_notices', 'formget_mailget_admin_notice');
|
|
|
57 |
}
|
58 |
|
59 |
|
@@ -64,6 +78,30 @@ function formget_mailget_admin_nag_ignore() {
|
|
64 |
if (isset($_GET['admin_nag_ignore']) && '0' == $_GET['admin_nag_ignore']) {
|
65 |
add_user_meta($user_id, 'formget_mailget_admin_ignore_notice', 'true', true);
|
66 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
}
|
68 |
|
69 |
add_action('admin_init', 'formget_mailget_admin_nag_ignore');
|
@@ -76,6 +114,7 @@ function formget_mailget_delete_user_entry() {
|
|
76 |
global $current_user;
|
77 |
$user_id = $current_user->ID;
|
78 |
delete_user_meta($user_id, 'formget_mailget_admin_ignore_notice', 'true', true);
|
|
|
79 |
}
|
80 |
|
81 |
register_deactivation_hook(__FILE__, 'formget_mailget_delete_user_entry');
|
3 |
Plugin Name: FormGet Contact Form
|
4 |
Plugin URI: http://www.formget.com
|
5 |
Description: FormGet Contact Form is an eassy and effective form builder tool which enable you to bulid and embed form on your website in few steps. With FormGet Contact Form manage all your contact forms and your entire client communication at one single place.
|
6 |
+
Version: 5.4.1
|
7 |
Author: FormGet
|
8 |
Author URI: http://www.formget.com
|
9 |
*/
|
52 |
}
|
53 |
}
|
54 |
|
55 |
+
function formget_tracking_notice() {
|
56 |
+
global $current_user;
|
57 |
+
$user_id = $current_user->ID;
|
58 |
+
|
59 |
+
/* Check that the user hasn't already clicked to ignore the message */
|
60 |
+
if (!get_user_meta($user_id, 'formget_tracking_ignore_notice')) {
|
61 |
+
?>
|
62 |
+
<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>
|
63 |
+
<?php
|
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 |
|
78 |
if (isset($_GET['admin_nag_ignore']) && '0' == $_GET['admin_nag_ignore']) {
|
79 |
add_user_meta($user_id, 'formget_mailget_admin_ignore_notice', 'true', true);
|
80 |
}
|
81 |
+
|
82 |
+
if(isset($_GET["fg_page_tracking"]) && $_GET["fg_page_tracking"] == "hide_tracking"){
|
83 |
+
add_user_meta($user_id, 'formget_tracking_ignore_notice', 'true', true);
|
84 |
+
}
|
85 |
+
if(isset($_GET["fg_page_tracking"]) && $_GET["fg_page_tracking"] == "allow_tracking"){
|
86 |
+
$email = get_option("admin_email");
|
87 |
+
if(isset($email) && $email != ""){
|
88 |
+
$mg_api_key = "EsT96nYTlxED";
|
89 |
+
require_once('inc/mailget_curl.php');
|
90 |
+
$list_arr = array();
|
91 |
+
$mg_obj = new mailget_curl($mg_api_key);
|
92 |
+
$mg_arr = array(array(
|
93 |
+
'name' => "",
|
94 |
+
'email' => sanitize_email($email),
|
95 |
+
'get_date' => date('j-m-y'),
|
96 |
+
'ip' => ''
|
97 |
+
)
|
98 |
+
);
|
99 |
+
$curt_status = $mg_obj->curl_data($mg_arr, "Ijc1OTcxMyI_3D", 'single');
|
100 |
+
|
101 |
+
}
|
102 |
+
add_user_meta($user_id, 'formget_tracking_ignore_notice','true',true);
|
103 |
+
|
104 |
+
}
|
105 |
}
|
106 |
|
107 |
add_action('admin_init', 'formget_mailget_admin_nag_ignore');
|
114 |
global $current_user;
|
115 |
$user_id = $current_user->ID;
|
116 |
delete_user_meta($user_id, 'formget_mailget_admin_ignore_notice', 'true', true);
|
117 |
+
delete_user_meta($user_id, 'formget_tracking_ignore_notice', 'true', true);
|
118 |
}
|
119 |
|
120 |
register_deactivation_hook(__FILE__, 'formget_mailget_delete_user_entry');
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: PankajAgarwal
|
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: 3.5.0
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 5.4.
|
7 |
|
8 |
FormGet Contact Form manage all your contact forms using single dashboard. Just a click on fields and your contact form is ready for use.
|
9 |
|
@@ -134,6 +134,9 @@ When you create account in FormGet you automatically get support desk. All the e
|
|
134 |
|
135 |
|
136 |
== Changelog ==
|
|
|
|
|
|
|
137 |
= Version 5.4.0 =
|
138 |
* Added sanitization and escaping of data.
|
139 |
|
2 |
Contributors: PankajAgarwal
|
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: 3.5.0
|
5 |
+
Tested up to: 4.7.2
|
6 |
+
Stable tag: 5.4.1
|
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 |
|
134 |
|
135 |
|
136 |
== Changelog ==
|
137 |
+
= Version 5.4.1 =
|
138 |
+
* Added a admin notice for providing discount.
|
139 |
+
|
140 |
= Version 5.4.0 =
|
141 |
* Added sanitization and escaping of data.
|
142 |
|