PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 4.9.2
WP STAGING – WordPress Backup, Restore, Migration & Clone v4.9.2
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 / views / feedback / deactivate-feedback.php
wp-staging / views / feedback Last commit date
deactivate-feedback.php 8 months ago
deactivate-feedback.php
116 lines
1 <?php
2
3 /**
4 * @var string $email
5 *
6 * @see /Basic/Feedback/Feedback.php
7 * @see loadFeedbackForm()
8 */
9
10 $reasons = [
11 1 => [
12 'id' => 'wpstg_disable_reason_temporary',
13 'value' => 'temporary',
14 'label' => esc_html__('Only temporary', 'wp-staging'),
15 'input' => false,
16 'placeholder' => '',
17 ],
18 2 => [
19 'id' => 'wpstg_disable_reason_missing',
20 'value' => 'missing_feature',
21 'label' => esc_html__('Missing a feature', 'wp-staging'),
22 'input' => 'input',
23 'placeholder' => esc_html__('Please describe the feature', 'wp-staging'),
24 ],
25 3 => [
26 'id' => 'wpstg_disable_reason_technical',
27 'value' => 'technical_issue',
28 'label' => esc_html__('Technical Issue', 'wp-staging'),
29 'input' => 'textarea',
30 'placeholder' => esc_html__('Can we help? Please describe your problem', 'wp-staging'),
31 ],
32 4 => [
33 'id' => 'wpstg_disable_reason_plugin',
34 'value' => 'other_plugin',
35 'label' => esc_html__('Switched to another plugin/staging solution', 'wp-staging'),
36 'input' => 'input',
37 'placeholder' => esc_html__('Name of the plugin', 'wp-staging'),
38 ],
39 5 => [
40 'id' => 'wpstg_disable_reason_other',
41 'value' => 'other_reason',
42 'label' => esc_html__('Other reason', 'wp-staging'),
43 'input' => 'textarea',
44 'placeholder' => esc_html__('Please specify, if possible', 'wp-staging'),
45 ],
46 ];
47
48 // Any reason for this shuffling?
49 shuffle($reasons);
50 ?>
51
52 <div id="wpstg-feedback-overlay" class="wpstg-feedback-form-overlay" style="display:none;">
53 <div id="wpstg-feedback-content" class="wpstg-feedback-modal-popup wpstg-deactivate-modal">
54 <div class="wpstg-modal-content">
55 <div class="wpstg-modal-header">
56 <div class="wpstg-modal-header-heading-container">
57 <h1 class="wpstg-modal-header-heading">
58 <?php esc_html_e('Thanks for using WP Staging. Please let us know why you are deactivating.', 'wp-staging'); ?>
59 </h1>
60 </div>
61 <button type="button" class="wpstg-close-feedback-form">
62 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
63 <path d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"></path>
64 </svg>
65 </button>
66 </div>
67 <form action="" method="post" class="wpstg-deactivate-feedback-reasons">
68 <ul>
69 <?php foreach ($reasons as $reason) : ?>
70 <li>
71 <label id="<?php echo esc_attr($reason['id']) ?>">
72 <input type="checkbox" name="wpstg_disable_reason[]" value="<?php echo esc_attr($reason['value']) ?>" />
73 <?php echo esc_html($reason['label']) ?>
74 </label>
75 </li>
76 <?php if ($reason['input'] === 'input') : ?>
77 <li>
78 <label>
79 <input type="text" name="wpstg_disable_text[<?php echo esc_attr($reason['value']) ?>]" value="" placeholder="<?php echo esc_attr($reason['placeholder']) ?>"/>
80 </label>
81 </li>
82 <?php elseif ($reason['input'] === 'textarea') : ?>
83 <li>
84 <label>
85 <textarea name="wpstg_disable_text[<?php echo esc_attr($reason['value']) ?>]" placeholder="<?php echo esc_attr($reason['placeholder']) ?>"></textarea>
86 </label>
87 </li>
88 <?php endif; ?>
89 <?php endforeach; ?>
90 </ul>
91 <?php if ($email) : ?>
92 <input type="hidden" name="wpstg_disable_from" value="<?php echo esc_html($email); ?>"/>
93 <?php endif; ?>
94 </form>
95 <div>
96 <div class="wpstg-feedback-form-actions">
97 <button id="wpstg-feedback-submit" type="button" class="wpstg-submit-feedback-button">
98 <?php esc_html_e('Submit & Deactivate', 'wp-staging'); ?>
99 </button>
100 <button id="wpstg-skip-and-deactivate" type="button" class="wpstg-skip-and-deactivate"><?php esc_html_e('Skip & Deactivate', 'wp-staging'); ?></button>
101 </div>
102 <footer class="wpstg-feedback-form-footer">
103 <div>
104 <?php
105 echo sprintf(
106 esc_html__("Our %s", "wp-staging"),
107 "<a href='https://wp-staging.com/privacy-policy/' target='_blank'>" . esc_html__("privacy policy", "wp-staging") . "</a>"
108 );
109 ?>
110 </div>
111 </footer>
112 </div>
113 </div>
114 </div>
115 </div>
116