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