PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 3.0.2
WP STAGING – WordPress Backup, Restore, Migration & Clone v3.0.2
4.9.3 4.9.2 4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / Backend / views / feedback / deactivate-feedback.php
wp-staging / Backend / views / feedback Last commit date
deactivate-feedback.php 2 years ago
deactivate-feedback.php
45 lines
1 <?php
2 /**
3 * @var string $email
4 *
5 * @see /Backend/Feedback/Feedback.php
6 * @see loadFeedbackForm()
7 */
8 $reasons = [
9 1 => '<li><label><input type="radio" name="wpstg_disable_reason" value="temporary"/>' . esc_html__('Only temporary', 'wp-staging') . '</label></li>',
10 2 => '<li><label><input type="radio" name="wpstg_disable_reason" value="missing feature"/>' . esc_html__('Miss a feature', 'wp-staging') . '</label></li>
11 <li><input type="text" name="wpstg_disable_text[]" value="" placeholder="Please describe the feature"/></li>',
12 3 => '<li><label><input type="radio" name="wpstg_disable_reason" value="technical issue"/>' . esc_html__('Technical Issue', 'wp-staging') . '</label></li>
13 <li><textarea name="wpstg_disable_text[]" placeholder="' . esc_html__('Can we help? Please describe your problem', 'wp-staging') . '"></textarea></li>',
14 4 => '<li><label><input type="radio" name="wpstg_disable_reason" value="other plugin"/>' . esc_html__('Switched to another plugin/staging solution', 'wp-staging') . '</label></li>
15 <li><input type="text" name="wpstg_disable_text[]" value="" placeholder="Name of the plugin"/></li>',
16 5 => '<li><label><input type="radio" name="wpstg_disable_reason" value="other"/>' . esc_html__('Other reason', 'wp-staging') . '</label></li>
17 <li><textarea name="wpstg_disable_text[]" placeholder="' . esc_html__('Please specify, if possible', 'wp-staging') . '"></textarea></li>',
18 ];
19 shuffle($reasons);
20 ?>
21
22
23 <div id="wpstg-feedback-overlay" style="display: none;">
24 <div id="wpstg-feedback-content">
25 <form action="" method="post">
26 <h3><strong><?php esc_html_e('Please let us know why you are deactivating:', 'wp-staging'); ?></strong></h3>
27 <ul>
28 <?php
29 foreach ($reasons as $reason) {
30 echo $reason; //phpcs:ignore
31 }
32 ?>
33 </ul>
34 <?php if ($email) : ?>
35 <input type="hidden" name="wpstg_disable_from" value="<?php echo esc_html($email); ?>"/>
36 <?php endif; ?>
37 <button id="wpstg-feedback-submit" class="button button-primary" type="submit" name="wpstg_disable_submit">
38 <?php esc_html_e('Submit & Deactivate', 'wp-staging'); ?>
39 </button>
40
41 <a class="button"><?php esc_html_e('Only Deactivate', 'wp-staging'); ?></a>
42 <a class="wpstg-feedback-not-deactivate" href="#"><?php esc_html_e('Don\'t deactivate', 'wp-staging'); ?></a>
43 </form>
44 </div>
45 </div>