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

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-iee-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 = isset( $_REQUEST['reason'] ) ? sanitize_text_field( wp_unslash ( $_REQUEST['reason'] ) ): '';
$deactivation_reason_message = $this->get_deactivation_reasons()[$deactivation_reason];
$customer_query = isset( $_REQUEST['customerQuery'] ) ? sanitize_text_field( wp_unslash ( $_REQUEST['customerQuery'] ) ): '';
Expand Down Expand Up @@ -194,7 +191,7 @@ class: 'button button-primary <?php echo esc_attr( $this->prefix ) . "deactivate
}
},
{
text: "<?php _e('Skip', 'import-eventbrite-events' ); ?>",
text: "<?php _e('Skip & Deactivate', 'import-eventbrite-events' ); ?>",
class: 'button',
click: function() {
jQuery( this ).dialog( "close" );
Expand Down Expand Up @@ -255,7 +252,13 @@ class: 'button',
}
</style>
<div id="<?php echo esc_attr( $this->slug ); ?>-deactivate-dialog">
<h3><?php _e('If you have a moment, please let us know why you are deactivating:', 'import-eventbrite-events'); ?></h3>
<div class="ui-dialog-headerbar" >
<div>
<h2 style="margin: 0 0 15px 0;"><?php esc_html_e('Quick Feedback', 'import-eventbrite-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 Eventbrite Events plugin ?', 'import-eventbrite-events'); ?></h3>
<form method="post" action="" id="<?php echo esc_attr( $this->prefix ); ?>deactivatation_form">
<div>
<?php
Expand All @@ -270,6 +273,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 _e('Write your query here', 'import-eventbrite-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-eventbrite-events' ); ?>
</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
70 changes: 27 additions & 43 deletions languages/import-eventbrite-events.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPL-2.0+.
msgid ""
msgstr ""
"Project-Id-Version: Import Eventbrite Events 1.7.2\n"
"Project-Id-Version: Import Eventbrite Events 1.7.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/import-eventbrite-events\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-09-05T10:43:24+00:00\n"
"POT-Creation-Date: 2024-11-30T07:38:27+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: import-eventbrite-events\n"
Expand Down Expand Up @@ -87,45 +87,53 @@ msgstr ""
msgid "Other reasons"
msgstr ""

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

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

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

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

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

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

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

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

#: includes/class-iee-plugin-deactivation.php:233
#: includes/class-iee-plugin-deactivation.php:271
#: includes/class-iee-plugin-deactivation.php:230
#: includes/class-iee-plugin-deactivation.php:274
msgid "Write your query here"
msgstr ""

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

#: includes/class-iee-plugin-deactivation.php:261
msgid "Could you please share why you are deactivating Import Eventbrite Events plugin ?"
msgstr ""

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

#: includes/class-import-eventbrite-events-admin.php:62
Expand Down Expand Up @@ -1327,46 +1335,22 @@ msgstr ""
msgid "Plugins you should try"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:111
#: templates/admin/import-eventbrite-events-support.php:103
msgid "Active Installs: "
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:117
#: templates/admin/import-eventbrite-events-support.php:109
msgid "Actived"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:120
#: templates/admin/import-eventbrite-events-support.php:112
msgid "Activate"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:124
#: templates/admin/import-eventbrite-events-support.php:116
msgid "Install Plugin"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:129
msgid "Version:"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:134
msgid "Requires:"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:134
msgid "WordPress "
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:138
msgid "Active Installs:"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:143
msgid "Install Now"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:146
msgid "Buy Now"
msgstr ""

#: templates/iee-event-meta.php:38
msgid "Details"
msgstr ""
Expand Down