Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed test in feedback form #66

Merged
merged 2 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions includes/class-wpbd-plugin-deactivation.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ function submit_plugin_deactivation_feedback(){
$client_id = $credentials->client_id;
$client_secret = $credentials->client_secret;
$customer_email = $user->user_email;
$customer_name = $user->display_name;
if(empty($customer_name)){
$customer_name = $user->user_firstname. ' '.$user->user_lastname;
}
Expand Down Expand Up @@ -194,7 +193,7 @@ class: 'button button-primary <?php echo esc_attr__( $this->prefix ) . "deactiva
}
},
{
text: "<?php esc_html_e('Skip', 'wp-bulk-delete' ); ?>",
text: "<?php _e('Skip & Deactivate', 'wp-bulk-delete' ); ?>",
class: 'button',
click: function() {
jQuery( this ).dialog( "close" );
Expand Down Expand Up @@ -255,7 +254,13 @@ class: 'button',
}
</style>
<div id="<?php echo esc_attr__( $this->prefix ); ?>-deactivate-dialog">
<h3><?php esc_html_e('If you have a moment, please let us know why you are deactivating:', 'wp-bulk-delete'); ?></h3>
<div class="ui-dialog-headerbar" >
<div>
<h2 style="margin:5px 0 15px 0;"><?php esc_html_e('Quick Feedback', 'wp-bulk-delete'); ?></h2>
</div>
</div>
<div style="border-top: 1px solid #dcdcde;"></div>
<h3 style="font-size: 16px;" ><?php esc_html_e('Could you please share why you are deactivating WP Bulk Delete plugin ?', 'wp-bulk-delete'); ?></h3>
<form method="post" action="" id="<?php echo esc_attr__( $this->prefix ); ?>deactivatation_form">
<div>
<?php
Expand All @@ -270,6 +275,11 @@ class: 'button',
<br>
<textarea id="<?php echo esc_attr__( $this->prefix ); ?>customer_query" name="<?php echo esc_attr__( $this->prefix ); ?>customer_query" rows="4" placeholder="<?php esc_html_e('Write your query here', 'wp-bulk-delete'); ?>"></textarea>
</div>
<div style="text-align: center;">
<p style="font-size: 12px;margin: 2px 0 -10px 0;">
<?php echo esc_attr__( '* By submitting this form, you will also be sending us your email address &amp; website URL.', 'wp-bulk-delete' ); ?>
</p>
</div>
</form>
<div class="<?php echo esc_attr__( $this->prefix ); ?>deactivatation_loading" style="width: 100%;text-align: center; display:none;">
<img src="<?php echo esc_url( admin_url('images/spinner.gif') ); ?>" />
Expand Down
36 changes: 22 additions & 14 deletions languages/wp-bulk-delete.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-09-25T12:40:50+00:00\n"
"POT-Creation-Date: 2024-11-28T09:18:03+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: wp-bulk-delete\n"
Expand Down Expand Up @@ -360,45 +360,53 @@ msgstr ""
msgid "Other reasons"
msgstr ""

#: includes/class-wpbd-plugin-deactivation.php:169
#: includes/class-wpbd-plugin-deactivation.php:168
msgid "Submit & Deactivate"
msgstr ""

#: includes/class-wpbd-plugin-deactivation.php:197
msgid "Skip"
#: includes/class-wpbd-plugin-deactivation.php:196
msgid "Skip & Deactivate"
msgstr ""

#: includes/class-wpbd-plugin-deactivation.php:214
#: includes/class-wpbd-plugin-deactivation.php:213
msgid "Finding it confusing? let us know so that we can improve the interface"
msgstr ""

#: includes/class-wpbd-plugin-deactivation.php:217
#: includes/class-wpbd-plugin-deactivation.php:216
msgid "Can you let us know the reason for deactivation (Required)"
msgstr ""

#: includes/class-wpbd-plugin-deactivation.php:221
#: includes/class-wpbd-plugin-deactivation.php:220
msgid "Can you please let us know about the bug/issue in detail?"
msgstr ""

#: includes/class-wpbd-plugin-deactivation.php:224
#: includes/class-wpbd-plugin-deactivation.php:223
msgid "Can you please let us know which plugin you found helpful"
msgstr ""

#: includes/class-wpbd-plugin-deactivation.php:227
#: includes/class-wpbd-plugin-deactivation.php:226
msgid "Can you please let us know more about the feature you want"
msgstr ""

#: includes/class-wpbd-plugin-deactivation.php:230
#: includes/class-wpbd-plugin-deactivation.php:229
msgid "Can you please let us know more about your requirement"
msgstr ""

#: includes/class-wpbd-plugin-deactivation.php:233
#: includes/class-wpbd-plugin-deactivation.php:271
#: includes/class-wpbd-plugin-deactivation.php:232
#: includes/class-wpbd-plugin-deactivation.php:276
msgid "Write your query here"
msgstr ""

#: includes/class-wpbd-plugin-deactivation.php:258
msgid "If you have a moment, please let us know why you are deactivating:"
#: includes/class-wpbd-plugin-deactivation.php:259
msgid "Quick Feedback"
msgstr ""

#: includes/class-wpbd-plugin-deactivation.php:263
msgid "Could you please share why you are deactivating WP Bulk Delete plugin ?"
msgstr ""

#: includes/class-wpbd-plugin-deactivation.php:280
msgid "* By submitting this form, you will also be sending us your email address &amp; website URL."
msgstr ""

#: includes/common-functions.php:121
Expand Down