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 #159

Merged
merged 2 commits into from
Nov 30, 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
20 changes: 14 additions & 6 deletions includes/class-ife-plugin-deactivation.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ 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;
}
$customer_name = $user->user_firstname. ' '.$user->user_lastname;
$deactivation_reason = sanitize_text_field( $_REQUEST['reason'] );
$deactivation_reason_message = $this->get_deactivation_reasons()[$deactivation_reason];
$customer_query = sanitize_text_field( $_REQUEST['customerQuery'] );
Expand Down Expand Up @@ -193,7 +190,7 @@ class: 'button button-primary',
}
},
{
text: "<?php _e('Skip', 'import-facebook-events' ); ?>",
text: "<?php _e('Skip & Deactivate', 'import-facebook-events' ); ?>",
class: 'button',
click: function() {
jQuery( this ).dialog( "close" );
Expand Down Expand Up @@ -254,7 +251,13 @@ class: 'button',
}
</style>
<div id="<?php echo $this->slug; ?>-deactivate-dialog">
<h3><?php _e('If you have a moment, please let us know why you are deactivating:', 'import-facebook-events'); ?></h3>
<div class="ui-dialog-headerbar" >
<div>
<h2 style="margin: 0 0 15px 0;"><?php esc_html_e('Quick Feedback', 'import-facebook-events'); ?></h2>
</div>
</div>
<div style="border-top: 1px solid #dcdcde;"></div>
<h3 style="font-size: 14px;" ><?php esc_html_e('Could you please share why you are deactivating Import Facebook Events plugin ?', 'import-facebook-events'); ?></h3>
<form method="post" action="" id="<?php echo $this->prefix; ?>deactivatation_form">
<div>
<?php
Expand All @@ -269,6 +272,11 @@ class: 'button',
<br>
<textarea id="<?php echo $this->prefix; ?>customer_query" name="<?php echo $this->prefix; ?>customer_query" rows="4" placeholder="<?php _e('Write your query here', 'import-facebook-events'); ?>"></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.', 'import-facebook-events' ); ?>
</p>
</div>
</form>
<div class="<?php echo $this->prefix; ?>deactivatation_loading" style="width: 100%;text-align: center; display:none;">
<img src="<?php echo admin_url('images/spinner.gif'); ?>" />
Expand Down
36 changes: 22 additions & 14 deletions languages/import-facebook-events.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-10-04T11:26:43+00:00\n"
"POT-Creation-Date: 2024-11-30T06:44:43+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: import-facebook-events\n"
Expand Down Expand Up @@ -85,45 +85,53 @@ msgstr ""
msgid "Other reasons"
msgstr ""

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

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

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

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

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

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

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

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

#: includes/class-ife-plugin-deactivation.php:232
#: includes/class-ife-plugin-deactivation.php:270
#: includes/class-ife-plugin-deactivation.php:229
#: includes/class-ife-plugin-deactivation.php:273
msgid "Write your query here"
msgstr ""

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

#: includes/class-ife-plugin-deactivation.php:260
msgid "Could you please share why you are deactivating Import Facebook Events plugin ?"
msgstr ""

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

#: includes/class-import-facebook-events-admin.php:62
Expand Down