Skip to content

Commit

Permalink
Merge pull request #173 from xylusthemes/chnaged_word_in_feedback_form
Browse files Browse the repository at this point in the history
changed test in feedback form
  • Loading branch information
support-xylusthemes authored Nov 30, 2024
2 parents 30f8d23 + d6b6285 commit 9676700
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 25 deletions.
4 changes: 0 additions & 4 deletions assets/css/jquery-ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -833,9 +833,6 @@ body .ui-tooltip {
font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;
font-size: 1.1em;
}
.ui-widget .ui-widget {
font-size: 1em;
}
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
Expand All @@ -845,7 +842,6 @@ body .ui-tooltip {
}
.ui-widget-content {
border: 1px solid #dddddd;
background: #eeeeee url("images/ui-bg_highlight-soft_100_eeeeee_1x100.png") 50% top repeat-x;
color: #333333;
}
.ui-widget-content a {
Expand Down
22 changes: 15 additions & 7 deletions includes/class-wpea-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 @@ -194,7 +191,7 @@ class: 'button button-primary <?php echo $this->prefix . "deactivate_button"; ?>
}
},
{
text: "<?php _e('Skip', 'wp-event-aggregator' ); ?>",
text: "<?php _e('Skip & Deactivate', 'wp-event-aggregator' ); ?>",
class: 'button',
click: function() {
jQuery( this ).dialog( "close" );
Expand Down Expand Up @@ -254,8 +251,14 @@ class: 'button',
display : none;
}
</style>
<div id="<?php echo $this->slug; ?>-deactivate-dialog">
<h3><?php _e('Please let us know why you are deactivating:', 'wp-event-aggregator'); ?></h3>
<div id="<?php echo $this->slug; ?>-deactivate-dialog" style="overflow: hidden;">
<div class="ui-dialog-headerbar" >
<div>
<h2 style="margin: 5px 0 15px 0;"><?php esc_html_e('Quick Feedback', 'wp-event-aggregator'); ?></h2>
</div>
</div>
<div style="border-top: 1px solid #dcdcde;"></div>
<h3 style="font-size: 15px;" ><?php esc_html_e('Could you please share why you are deactivating WP Event Aggregator plugin ?', 'wp-event-aggregator'); ?></h3>
<form method="post" action="" id="<?php echo $this->prefix; ?>deactivatation_form">
<div>
<?php
Expand All @@ -270,6 +273,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', 'wp-event-aggregator'); ?>"></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-event-aggregator' ); ?>
</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/wp-event-aggregator.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-15T13:18:11+00:00\n"
"POT-Creation-Date: 2024-11-30T07:53:34+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: wp-event-aggregator\n"
Expand Down Expand Up @@ -1031,50 +1031,58 @@ msgstr ""
msgid "Other reasons."
msgstr ""

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

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

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

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

#: includes/class-wpea-plugin-deactivation.php:221
#: includes/class-wpea-plugin-deactivation.php:218
msgid "Please describe the bug/issue in detail:"
msgstr ""

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

#: includes/class-wpea-plugin-deactivation.php:227
#: includes/class-wpea-plugin-deactivation.php:224
msgid "Please let us know more about the features you want:"
msgstr ""

#: includes/class-wpea-plugin-deactivation.php:230
#: includes/class-wpea-plugin-deactivation.php:227
msgid "Please let us know more about your requirements:"
msgstr ""

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

#: includes/class-wpea-plugin-deactivation.php:258
msgid "Please let us know why you are deactivating:"
#: includes/class-wpea-plugin-deactivation.php:257
msgid "Quick Feedback"
msgstr ""

#: includes/class-wpea-plugin-deactivation.php:271
#: includes/class-wpea-plugin-deactivation.php:261
msgid "Could you please share why you are deactivating WP Event Aggregator plugin ?"
msgstr ""

#: includes/class-wpea-plugin-deactivation.php:274
msgid "Write your query here"
msgstr ""

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

#: templates/admin/admin-sidebar.php:17
msgid "Unlock more powerful event import operations, and enable scheduled imports. Upgrade today!"
msgstr ""
Expand Down

0 comments on commit 9676700

Please sign in to comment.