Skip to content

Commit

Permalink
changed test in feedback form
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat1192 committed Nov 30, 2024
1 parent e0fe57c commit e1f7f60
Showing 1 changed file with 14 additions and 6 deletions.
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

0 comments on commit e1f7f60

Please sign in to comment.