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