Version Description
(04 February 2019) = * Modified the way the support widget is loaded on plugin's admin pages
Download this release
Release Info
Developer | 123contactform |
Plugin | Forms by CaptainForm – Form Builder for WordPress |
Version | 2.4 |
Comparing to | |
See all releases |
Code changes from version 2.3 to 2.4
- admin/partials/captainform-admin-display.php +11 -2
- admin/partials/captainform-support-chat.php +25 -0
- captainform.php +1 -1
- includes/class-captainform.php +1 -1
- readme.txt +3 -0
admin/partials/captainform-admin-display.php
CHANGED
@@ -19,6 +19,15 @@
|
|
19 |
var parent_site_url = '<?php echo site_url(); ?>';
|
20 |
var captainform_plugin_dir = '<?php echo plugins_url('', __DIR__); ?>';
|
21 |
</script>
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
<?php
|
19 |
var parent_site_url = '<?php echo site_url(); ?>';
|
20 |
var captainform_plugin_dir = '<?php echo plugins_url('', __DIR__); ?>';
|
21 |
</script>
|
22 |
+
|
23 |
+
<?php
|
24 |
+
// include_once plugin_dir_path( dirname( __FILE__ ) ) . 'partials/captainform-support-chat.php';
|
25 |
+
?>
|
26 |
+
|
27 |
+
<iframe
|
28 |
+
id="captainform_iframe"
|
29 |
+
src="<?php print $iframe_url . (!empty($hideChatButton) ? '&hideChatButton=true' : ''); ?>"
|
30 |
+
style="width:99%; background: transparent; min-height: 700px;" scrolling="no">
|
31 |
+
</iframe>
|
32 |
+
|
33 |
<?php
|
admin/partials/captainform-support-chat.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="captainform-support-widget-container">
|
2 |
+
<?php
|
3 |
+
$hideChatButton = false;
|
4 |
+
$url = $iframe_url . '&getSupportButtonScripts=true';
|
5 |
+
function get_data($url) {
|
6 |
+
$ch = curl_init();
|
7 |
+
$timeout = 5;
|
8 |
+
curl_setopt($ch, CURLOPT_URL, $url);
|
9 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
10 |
+
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
|
11 |
+
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
12 |
+
$data = curl_exec($ch);
|
13 |
+
curl_close($ch);
|
14 |
+
return $data;
|
15 |
+
}
|
16 |
+
if ( is_callable('curl_init') ) {
|
17 |
+
$returned_content = get_data($url);
|
18 |
+
} else {
|
19 |
+
$returned_content = file_get_contents($url);
|
20 |
+
}
|
21 |
+
|
22 |
+
$s = strpos($returned_content, 'SnapABug_Button');
|
23 |
+
if ( $s !== false ) { $hideChatButton = true; print $returned_content; }
|
24 |
+
?>
|
25 |
+
</div>
|
captainform.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: CaptainForm
|
17 |
* Plugin URI: http://captainform.com
|
18 |
* Description: CaptainForm is a fully-featured WordPress form plugin created for web designers, developers, and also for non-tech savvy users.
|
19 |
-
* Version: 2.
|
20 |
* Author: captainform
|
21 |
* Author URI: https://profiles.wordpress.org/captainform
|
22 |
* License: GPL-2.0+
|
16 |
* Plugin Name: CaptainForm
|
17 |
* Plugin URI: http://captainform.com
|
18 |
* Description: CaptainForm is a fully-featured WordPress form plugin created for web designers, developers, and also for non-tech savvy users.
|
19 |
+
* Version: 2.4
|
20 |
* Author: captainform
|
21 |
* Author URI: https://profiles.wordpress.org/captainform
|
22 |
* License: GPL-2.0+
|
includes/class-captainform.php
CHANGED
@@ -105,7 +105,7 @@ class Captainform {
|
|
105 |
public function __construct() {
|
106 |
|
107 |
$this->plugin_name = 'captainform';
|
108 |
-
$this->version = '2.
|
109 |
|
110 |
$this->load_dependencies();
|
111 |
$this->set_locale();
|
105 |
public function __construct() {
|
106 |
|
107 |
$this->plugin_name = 'captainform';
|
108 |
+
$this->version = '2.4';
|
109 |
|
110 |
$this->load_dependencies();
|
111 |
$this->set_locale();
|
readme.txt
CHANGED
@@ -482,6 +482,9 @@ We support MasterCard, Visa, PayPal, American Express, JCB, Discover/Novus and D
|
|
482 |
Click on the Cancel subscription button in the My Account section and fill out the cancellation form. All premium features will be deactivated when your license key will expire. You can upgrade again at any time by purchasing a new license key.
|
483 |
|
484 |
== Changelog ==
|
|
|
|
|
|
|
485 |
= 2.3 (03 January 2019) =
|
486 |
* Compatible with PHP 7.2
|
487 |
|
482 |
Click on the Cancel subscription button in the My Account section and fill out the cancellation form. All premium features will be deactivated when your license key will expire. You can upgrade again at any time by purchasing a new license key.
|
483 |
|
484 |
== Changelog ==
|
485 |
+
= 2.4 (04 February 2019) =
|
486 |
+
* Modified the way the support widget is loaded on plugin's admin pages
|
487 |
+
|
488 |
= 2.3 (03 January 2019) =
|
489 |
* Compatible with PHP 7.2
|
490 |
|