| 1 |
<?php |
| 2 |
$reasons = array( |
| 3 |
1 => '<li><label><input type="radio" name="wpdbbkp_disable_reason" value="temporary"/>' . esc_html__('It is only temporary', 'wpdbbkp') . '</label></li>', |
| 4 |
2 => '<li><label><input type="radio" name="wpdbbkp_disable_reason" value="stopped"/>' . esc_html__('I stopped using WP Database Backup on my site', 'wpdbbkp') . '</label></li>', |
| 5 |
3 => '<li><label><input type="radio" name="wpdbbkp_disable_reason" value="missing"/>' . esc_html__('I miss a feature', 'wpdbbkp') . '</label></li> |
| 6 |
<li><input type="text" class="mb-box missing" name="wpdbbkp_disable_text[]" value="" placeholder="Please describe the feature"/></li>', |
| 7 |
4 => '<li><label><input type="radio" name="wpdbbkp_disable_reason" value="technical"/>' . esc_html__('Technical Issue', 'wpdbbkp') . '</label></li> |
| 8 |
<li><textarea class="mb-box technical" name="wpdbbkp_disable_text[]" placeholder="' . esc_html__('How Can we help? Please describe your problem', 'wpdbbkp') . '"></textarea></li>', |
| 9 |
5 => '<li><label><input type="radio" name="wpdbbkp_disable_reason" value="another"/>' . esc_html__('I switched to another plugin', 'wpdbbkp') . '</label></li> |
| 10 |
<li><input type="text" class="mb-box another" name="wpdbbkp_disable_text[]" value="" placeholder="Name of the plugin"/></li>', |
| 11 |
6 => '<li><label><input type="radio" name="wpdbbkp_disable_reason" value="other"/>' . esc_html__('Other reason', 'wpdbbkp') . '</label></li> |
| 12 |
<li><textarea class="mb-box other" name="wpdbbkp_disable_text[]" placeholder="' . esc_html__('Please specify, if possible', 'wpdbbkp') . '"></textarea></li>', |
| 13 |
); |
| 14 |
shuffle($reasons); |
| 15 |
?> |
| 16 |
|
| 17 |
|
| 18 |
<div id="wpdbbkp-feedback-overlay" style="display: none;"> |
| 19 |
<div id="wpdbbkp-feedback-content"> |
| 20 |
<form action="" method="post"> |
| 21 |
<h3><strong><?php echo esc_html__('If you have a moment, please let us know why you are deactivating:', 'wpdbbkp'); ?></strong></h3> |
| 22 |
<ul> |
| 23 |
<?php |
| 24 |
foreach ($reasons as $reason){ |
| 25 |
echo $reason; |
| 26 |
} |
| 27 |
?> |
| 28 |
</ul> |
| 29 |
<?php if ($email) : ?> |
| 30 |
<input type="hidden" name="wpdbbkp_disable_from" value="<?php echo $email; ?>"/> |
| 31 |
<?php endif; ?> |
| 32 |
<input id="wpdbbkp-feedback-submit" class="button button-primary" type="submit" name="wpdbbkp_disable_submit" value="<?php echo esc_html__('Submit & Deactivate', 'wpdbbkp'); ?>"/> |
| 33 |
<a class="button"><?php echo esc_html__('Only Deactivate', 'wpdbbkp'); ?></a> |
| 34 |
<a class="wpdbbkp-feedback-not-deactivate" href="#"><?php echo esc_html__('Don\'t deactivate', 'wpdbbkp'); ?></a> |
| 35 |
</form> |
| 36 |
</div> |
| 37 |
</div> |