Version Description
- Changed: Separate buttons for deactivation.
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.12.30 |
| Comparing to | |
| See all releases | |
Code changes from version 1.12.28 to 1.12.30
- contact-form-maker.php +3 -3
- frontend/models/form_maker.php +1 -1
- readme.txt +7 -1
- wd/assets/js/deactivate_popup.js +146 -158
- wd/templates/display_deactivation_popup.php +28 -28
contact-form-maker.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Contact Form Maker
|
| 4 |
* Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
|
| 5 |
* Description: WordPress Contact Form Maker is a simple contact form builder, which allows the user with almost no knowledge of programming to create and edit different type of contact forms.
|
| 6 |
-
* Version: 1.12.
|
| 7 |
* Author: WebDorado Form Builder Team
|
| 8 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
|
@@ -95,8 +95,8 @@ final class WDCFM {
|
|
| 95 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
| 96 |
$this->front_urls = $this->get_front_urls();
|
| 97 |
$this->main_file = plugin_basename(__FILE__);
|
| 98 |
-
$this->plugin_version = '1.12.
|
| 99 |
-
$this->db_version = '2.12.
|
| 100 |
$this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
|
| 101 |
$this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
|
| 102 |
$this->menu_slug = 'manage' . $this->menu_postfix;
|
| 3 |
* Plugin Name: Contact Form Maker
|
| 4 |
* Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
|
| 5 |
* Description: WordPress Contact Form Maker is a simple contact form builder, which allows the user with almost no knowledge of programming to create and edit different type of contact forms.
|
| 6 |
+
* Version: 1.12.30
|
| 7 |
* Author: WebDorado Form Builder Team
|
| 8 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 95 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
| 96 |
$this->front_urls = $this->get_front_urls();
|
| 97 |
$this->main_file = plugin_basename(__FILE__);
|
| 98 |
+
$this->plugin_version = '1.12.30';
|
| 99 |
+
$this->db_version = '2.12.30';
|
| 100 |
$this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
|
| 101 |
$this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
|
| 102 |
$this->menu_slug = 'manage' . $this->menu_postfix;
|
frontend/models/form_maker.php
CHANGED
|
@@ -1686,7 +1686,7 @@ class FMModelForm_maker_fmc {
|
|
| 1686 |
$value = $element;
|
| 1687 |
break;
|
| 1688 |
}
|
| 1689 |
-
$value = isset( $_POST[ 'wdform_' . $i . "_element" . $id ] )
|
| 1690 |
|
| 1691 |
if ( $required && !isset( $_POST[ 'wdform_' . $i . "_element" . $id ] ) ) {
|
| 1692 |
$missing_required_field = TRUE;
|
| 1686 |
$value = $element;
|
| 1687 |
break;
|
| 1688 |
}
|
| 1689 |
+
$value = isset( $_POST[ 'wdform_' . $i . "_element" . $id ] ) ? esc_html( $_POST[ 'wdform_' . $i . "_element" . $id ] ) : "";
|
| 1690 |
|
| 1691 |
if ( $required && !isset( $_POST[ 'wdform_' . $i . "_element" . $id ] ) ) {
|
| 1692 |
$missing_required_field = TRUE;
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: webdorado,10web
|
|
| 3 |
Tags: contact, contact form, email, forms, contact forms, custom form, feedback, form builder, form manager, form maker, forms builder, form builder wordpress
|
| 4 |
Requires at least: 3.4
|
| 5 |
Tested up to: 4.9
|
| 6 |
-
Stable tag: 1.12.
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
|
@@ -79,6 +79,12 @@ After downloading the ZIP file,
|
|
| 79 |
|
| 80 |
== Changelog ==
|
| 81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
= 1.12.28 =
|
| 83 |
* Added: Custom javascript event, occurs after form is submitted.
|
| 84 |
* Changed: Code structure refactoring.
|
| 3 |
Tags: contact, contact form, email, forms, contact forms, custom form, feedback, form builder, form manager, form maker, forms builder, form builder wordpress
|
| 4 |
Requires at least: 3.4
|
| 5 |
Tested up to: 4.9
|
| 6 |
+
Stable tag: 1.12.30
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
| 79 |
|
| 80 |
== Changelog ==
|
| 81 |
|
| 82 |
+
= 1.12.30 =
|
| 83 |
+
* Changed: Separate buttons for deactivation.
|
| 84 |
+
|
| 85 |
+
= 1.12.29 =
|
| 86 |
+
* Fixed: Bug on empty values for some field types.
|
| 87 |
+
|
| 88 |
= 1.12.28 =
|
| 89 |
* Added: Custom javascript event, occurs after form is submitted.
|
| 90 |
* Changed: Code structure refactoring.
|
wd/assets/js/deactivate_popup.js
CHANGED
|
@@ -1,159 +1,147 @@
|
|
| 1 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 2 |
-
// Events //
|
| 3 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 5 |
-
// Constants //
|
| 6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 8 |
-
// Variables //
|
| 9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 10 |
-
var deactivated = false;
|
| 11 |
-
var additionalInfo = "";
|
| 12 |
-
var btnVal = 3;
|
| 13 |
-
|
| 14 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 15 |
-
// Constructor & Destructor //
|
| 16 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 20 |
-
// Public Methods //
|
| 21 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 22 |
-
function wdReady(prefix){
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
}
|
| 148 |
-
|
| 149 |
-
}
|
| 150 |
-
|
| 151 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 152 |
-
// Getters & Setters //
|
| 153 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 154 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 155 |
-
// Private Methods //
|
| 156 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 157 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
| 158 |
-
// Listeners //
|
| 159 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 1 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 2 |
+
// Events //
|
| 3 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 4 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 5 |
+
// Constants //
|
| 6 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 7 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 8 |
+
// Variables //
|
| 9 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 10 |
+
var deactivated = false;
|
| 11 |
+
var additionalInfo = "";
|
| 12 |
+
var btnVal = 3;
|
| 13 |
+
|
| 14 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 15 |
+
// Constructor & Destructor //
|
| 16 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 20 |
+
// Public Methods //
|
| 21 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 22 |
+
function wdReady( prefix ) {
|
| 23 |
+
|
| 24 |
+
var agree_with_pp = false;
|
| 25 |
+
reset_popup();
|
| 26 |
+
jQuery( document ).on( "click", "." + window[prefix + "WDDeactivateVars"].deactivate_class, function () {
|
| 27 |
+
agree_with_pp = false;
|
| 28 |
+
if ( !jQuery( '#wd-' + prefix + '-submit-and-deactivate' ).hasClass( 'button-primary-disabled' ) ) {
|
| 29 |
+
jQuery( '#wd-' + prefix + '-submit-and-deactivate' ).addClass( 'button-primary-disabled' )
|
| 30 |
+
}
|
| 31 |
+
jQuery( ".wd-" + prefix + "-opacity" ).show();
|
| 32 |
+
jQuery( ".wd-" + prefix + "-deactivate-popup" ).show();
|
| 33 |
+
if ( jQuery( this ).attr( "data-uninstall" ) == "1" ) {
|
| 34 |
+
btnVal = 2;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
return false;
|
| 38 |
+
} );
|
| 39 |
+
|
| 40 |
+
jQuery( document ).on( "change", "[name=" + prefix + "_reasons]", function () {
|
| 41 |
+
var disabled_class = ( agree_with_pp === false ) ? "button-primary-disabled" : "";
|
| 42 |
+
|
| 43 |
+
jQuery( "." + prefix + "_additional_details_wrap" ).html( "" );
|
| 44 |
+
jQuery( ".wd-" + prefix + "-deactivate-popup" ).removeClass( "wd-popup-active1 wd-popup-active2 wd-popup-active3 wd-popup-active4" );
|
| 45 |
+
if ( jQuery( this ).val() == "reason_plugin_is_hard_to_use_technical_problems" ) {
|
| 46 |
+
|
| 47 |
+
additionalInfo = '<div class="wd-additional-active"><div><strong>Please describe your issue.</strong></div><br>' +
|
| 48 |
+
'<textarea name="' + prefix + '_additional_details" rows = "4"></textarea><br>' +
|
| 49 |
+
'<div>Our support will contact <input type="text" name="' + prefix + '_email" value="' + window[prefix + "WDDeactivateVars"].email + '"> shortly.</div>' +
|
| 50 |
+
'<br><div><button class="button button-primary ' + disabled_class + ' wd-' + prefix + '-deactivate" data-val="' + btnVal + '">Submit support ticket</button></div></div>';
|
| 51 |
+
jQuery( "." + prefix + "_additional_details_wrap" ).append( additionalInfo );
|
| 52 |
+
jQuery( ".wd-" + prefix + "-deactivate-popup" ).addClass( "wd-popup-active1" );
|
| 53 |
+
|
| 54 |
+
}
|
| 55 |
+
else if ( jQuery( this ).val() == "reason_free_version_limited" ) {
|
| 56 |
+
additionalInfo = '<div class="wd-additional-active">' +
|
| 57 |
+
'<div><strong>We believe our premium version will fit your needs.</strong></div>' +
|
| 58 |
+
'<div><a href="' + window[prefix + "WDDeactivateVars"].plugin_wd_url + '" target="_blank">Try with 30 day money back guarantee.</a></div>';
|
| 59 |
+
|
| 60 |
+
jQuery( "." + prefix + "_additional_details_wrap" ).append( additionalInfo );
|
| 61 |
+
jQuery( ".wd-" + prefix + "-deactivate-popup" ).addClass( "wd-popup-active2" );
|
| 62 |
+
}
|
| 63 |
+
else if ( jQuery( this ).val() == "reason_premium_expensive" ) {
|
| 64 |
+
additionalInfo = '<div class="wd-additional-active">' +
|
| 65 |
+
'<div><strong>We have a special offer for you.</strong></div>' +
|
| 66 |
+
'<div>Submit this form to get the offer to <input type="text" name="' + prefix + '_email" value="' + window[prefix + "WDDeactivateVars"].email + '"></div>' +
|
| 67 |
+
'<br><div><button class="button button-primary ' + disabled_class + ' wd-' + prefix + '-deactivate" data-val="' + btnVal + '">Submit</button></div></div>';
|
| 68 |
+
|
| 69 |
+
jQuery( "." + prefix + "_additional_details_wrap" ).append( additionalInfo );
|
| 70 |
+
jQuery( ".wd-" + prefix + "-deactivate-popup" ).addClass( "wd-popup-active3" );
|
| 71 |
+
} else {
|
| 72 |
+
jQuery( ".wd-" + prefix + "-deactivate-popup" ).addClass( "wd-popup-active4" );
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
var checked = ( agree_with_pp === true ) ? "checked" : "";
|
| 76 |
+
var agree_checkbox =
|
| 77 |
+
"<div style='margin-top: 5px;'>" +
|
| 78 |
+
"<input type='checkbox' " + checked + " name='" + prefix + "_agree_with_pp" + "' id='" + prefix + "_agree_with_pp" + "'/>" +
|
| 79 |
+
"By submitting this form your email and website URL will be sent to Web-Dorado. Click the checkbox if you consent to usage of mentioned data by Web-Dorado in accordance with our <a target='_blank' href='https://web-dorado.com/web-dorado-privacy-statement.html'>Privacy Policy</a>."+
|
| 80 |
+
"</div>";
|
| 81 |
+
jQuery( "." + prefix + "_additional_details_wrap" ).prepend( agree_checkbox );
|
| 82 |
+
|
| 83 |
+
jQuery( "#wd-" + prefix + "-submit-and-deactivate" ).show();
|
| 84 |
+
} );
|
| 85 |
+
jQuery( document ).on( "keyup", "[name=" + prefix + "_additional_details]", function () {
|
| 86 |
+
if ( jQuery( this ).val().trim() || jQuery( "[name=" + prefix + "_reasons]:checked" ).length > 0 ) {
|
| 87 |
+
jQuery( "#wd-" + prefix + "-submit-and-deactivate" ).show();
|
| 88 |
+
}
|
| 89 |
+
else {
|
| 90 |
+
jQuery( "#wd-" + prefix + "-submit-and-deactivate" ).hide();
|
| 91 |
+
}
|
| 92 |
+
} );
|
| 93 |
+
|
| 94 |
+
jQuery( document ).on( "change", "[name=" + prefix + "_agree_with_pp]", function () {
|
| 95 |
+
if ( jQuery( this ).prop( 'checked' ) ) {
|
| 96 |
+
jQuery( ".wd-" + prefix + "-deactivate" ).removeClass( 'button-primary-disabled' );
|
| 97 |
+
agree_with_pp = true;
|
| 98 |
+
} else {
|
| 99 |
+
jQuery( ".wd-" + prefix + "-deactivate" ).addClass( 'button-primary-disabled' );
|
| 100 |
+
agree_with_pp = false;
|
| 101 |
+
}
|
| 102 |
+
} );
|
| 103 |
+
|
| 104 |
+
jQuery( document ).on( "click", ".wd-" + prefix + "-deactivate", function ( e ) {
|
| 105 |
+
var data_val = jQuery( this ).data( 'val' );
|
| 106 |
+
var checkbox = jQuery( "#" + prefix + "_agree_with_pp" );
|
| 107 |
+
|
| 108 |
+
if ( data_val !== 1 && ( checkbox.length === 0 || checkbox.prop( 'checked' ) === false ) ) {
|
| 109 |
+
return false;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
jQuery( ".wd-deactivate-popup-opacity-" + prefix ).show();
|
| 113 |
+
if ( jQuery( this ).hasClass( "wd-clicked" ) == false ) {
|
| 114 |
+
jQuery( this ).addClass( "wd-clicked" );
|
| 115 |
+
jQuery( "[name=" + prefix + "_submit_and_deactivate]" ).val( jQuery( this ).attr( "data-val" ) );
|
| 116 |
+
jQuery( "#" + prefix + "_deactivate_form" ).submit();
|
| 117 |
+
}
|
| 118 |
+
return false;
|
| 119 |
+
} );
|
| 120 |
+
|
| 121 |
+
jQuery( document ).on( "click", ".wd-" + prefix + "-cancel, .wd-opacity, .wd-deactivate-popup-close-btn", function () {
|
| 122 |
+
jQuery( ".wd-" + prefix + "-opacity" ).hide();
|
| 123 |
+
jQuery( ".wd-" + prefix + "-deactivate-popup" ).hide();
|
| 124 |
+
reset_popup();
|
| 125 |
+
|
| 126 |
+
return false;
|
| 127 |
+
} );
|
| 128 |
+
|
| 129 |
+
function reset_popup() {
|
| 130 |
+
jQuery( "." + prefix + "_additional_details_wrap" ).html( "" );
|
| 131 |
+
jQuery( ".wd-" + prefix + "-deactivate-popup" ).removeClass( "wd-popup-active1 wd-popup-active2 wd-popup-active3 wd-popup-active4" );
|
| 132 |
+
|
| 133 |
+
jQuery( "#wd-" + prefix + "-submit-and-deactivate" ).hide();
|
| 134 |
+
jQuery( '#' + prefix + '_deactivate_form input[name="' + prefix + '_reasons' + '"]' ).prop( 'checked', false );
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 140 |
+
// Getters & Setters //
|
| 141 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 142 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 143 |
+
// Private Methods //
|
| 144 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 145 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
| 146 |
+
// Listeners //
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
////////////////////////////////////////////////////////////////////////////////////////
|
wd/templates/display_deactivation_popup.php
CHANGED
|
@@ -1,28 +1,28 @@
|
|
| 1 |
-
<div class="wd-opacity wd-<?php echo $wd_options->prefix; ?>-opacity"></div>
|
| 2 |
-
<div class="wd-deactivate-popup wd-<?php echo $wd_options->prefix; ?>-deactivate-popup">
|
| 3 |
-
<div class="wd-deactivate-popup-opacity wd-deactivate-popup-opacity-<?php echo $wd_options->prefix; ?>">
|
| 4 |
-
<img src="<?php echo $wd_options->wd_url_img . '/spinner.gif'; ?>" class="wd-img-loader" >
|
| 5 |
-
</div>
|
| 6 |
-
<form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
|
| 7 |
-
<div class="wd-deactivate-popup-header">
|
| 8 |
-
<?php _e( "Please let us know why you are deactivating. Your answer will help us to provide you support or sometimes offer discounts. (Optional)", $wd_options->prefix ); ?>:
|
| 9 |
-
<span class="wd-deactivate-popup-close-btn"></span>
|
| 10 |
-
</div>
|
| 11 |
-
|
| 12 |
-
<div class="wd-deactivate-popup-body">
|
| 13 |
-
<?php foreach( $deactivate_reasons as $deactivate_reason_slug => $deactivate_reason ) { ?>
|
| 14 |
-
<div class="wd-<?php echo $wd_options->prefix; ?>-reasons">
|
| 15 |
-
<input type="radio" value="<?php echo $deactivate_reason["id"];?>" id="<?php echo $wd_options->prefix . "-" .$deactivate_reason["id"]; ?>" name="<?php echo $wd_options->prefix; ?>_reasons" >
|
| 16 |
-
<label for="<?php echo $wd_options->prefix . "-" . $deactivate_reason["id"]; ?>"><?php echo $deactivate_reason["text"];?></label>
|
| 17 |
-
</div>
|
| 18 |
-
<?php } ?>
|
| 19 |
-
<div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
|
| 20 |
-
</div>
|
| 21 |
-
<div class="wd-btns">
|
| 22 |
-
<a href="<?php echo $deactivate_url; ?>" data-val="1" class="button button-
|
| 23 |
-
<a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-primary button-primary-disabled button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-submit-and-deactivate"
|
| 24 |
-
</div>
|
| 25 |
-
<input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
|
| 26 |
-
<?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
|
| 27 |
-
</form>
|
| 28 |
-
</div>
|
| 1 |
+
<div class="wd-opacity wd-<?php echo $wd_options->prefix; ?>-opacity"></div>
|
| 2 |
+
<div class="wd-deactivate-popup wd-<?php echo $wd_options->prefix; ?>-deactivate-popup">
|
| 3 |
+
<div class="wd-deactivate-popup-opacity wd-deactivate-popup-opacity-<?php echo $wd_options->prefix; ?>">
|
| 4 |
+
<img src="<?php echo $wd_options->wd_url_img . '/spinner.gif'; ?>" class="wd-img-loader" >
|
| 5 |
+
</div>
|
| 6 |
+
<form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
|
| 7 |
+
<div class="wd-deactivate-popup-header">
|
| 8 |
+
<?php _e( "Please let us know why you are deactivating. Your answer will help us to provide you support or sometimes offer discounts. (Optional)", $wd_options->prefix ); ?>:
|
| 9 |
+
<span class="wd-deactivate-popup-close-btn"></span>
|
| 10 |
+
</div>
|
| 11 |
+
|
| 12 |
+
<div class="wd-deactivate-popup-body">
|
| 13 |
+
<?php foreach( $deactivate_reasons as $deactivate_reason_slug => $deactivate_reason ) { ?>
|
| 14 |
+
<div class="wd-<?php echo $wd_options->prefix; ?>-reasons">
|
| 15 |
+
<input type="radio" value="<?php echo $deactivate_reason["id"];?>" id="<?php echo $wd_options->prefix . "-" .$deactivate_reason["id"]; ?>" name="<?php echo $wd_options->prefix; ?>_reasons" >
|
| 16 |
+
<label for="<?php echo $wd_options->prefix . "-" . $deactivate_reason["id"]; ?>"><?php echo $deactivate_reason["text"];?></label>
|
| 17 |
+
</div>
|
| 18 |
+
<?php } ?>
|
| 19 |
+
<div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
|
| 20 |
+
</div>
|
| 21 |
+
<div class="wd-btns">
|
| 22 |
+
<a href="<?php echo $deactivate_url; ?>" data-val="1" class="button button-secondary button-close" id="wd-<?php echo $wd_options->prefix; ?>-deactivate"><?php _e( "Skip and Deactivate" , $wd_options->prefix ); ?></a>
|
| 23 |
+
<a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-primary button-primary-disabled button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-submit-and-deactivate"><?php _e( "Submit and Deactivate" , $wd_options->prefix ); ?></a>
|
| 24 |
+
</div>
|
| 25 |
+
<input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
|
| 26 |
+
<?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
|
| 27 |
+
</form>
|
| 28 |
+
</div>
|
