| 1 |
<?php |
| 2 |
defined('ABSPATH') || exit; |
| 3 |
|
| 4 |
$reasons = [ |
| 5 |
"no_longer_needed" => [ |
| 6 |
"label" => esc_html__("I do not need this plugin anymore", 'vision') |
| 7 |
], |
| 8 |
"found_better" => [ |
| 9 |
"label" => esc_html__("I found another plugin that do the job better", 'vision'), |
| 10 |
"input" => esc_html__("Please tell us which one", 'vision') |
| 11 |
], |
| 12 |
"how_to_use" => [ |
| 13 |
"label" => esc_html__("I don't know how to use it", 'vision') |
| 14 |
], |
| 15 |
"temporary" => [ |
| 16 |
"label" => esc_html__("This's temporary deactivation", 'vision') |
| 17 |
], |
| 18 |
"not_working" => [ |
| 19 |
"label" => esc_html__("It's not working on my website", 'vision') |
| 20 |
], |
| 21 |
"other" => [ |
| 22 |
"label" => esc_html__("Other", 'vision'), |
| 23 |
"input" => esc_html__("Please share a reason...", 'vision') |
| 24 |
] |
| 25 |
]; |
| 26 |
?> |
| 27 |
<div id="vision-feedback" class="vision-feedback-wrap" style="display:none;"> |
| 28 |
<div class="vision-feedback"> |
| 29 |
<div class="vision-header"> |
| 30 |
<h2 class="vision-title"><?php esc_html_e("Quick Feedback", 'vision'); ?></h2> |
| 31 |
<div class="vision-close"></div> |
| 32 |
</div> |
| 33 |
<div class="vision-data"> |
| 34 |
<p class="vision-description"><?php esc_html_e("Before you deactivate Vision could you let us know why? Your feedback will help us improve the product, please tell us why did you decide to deactivate Vision. Thank you!", 'vision'); ?></p> |
| 35 |
<div class="vision-fields"> |
| 36 |
<?php foreach($reasons as $key => $value) { ?> |
| 37 |
<div class="vision-field"> |
| 38 |
<label><input type="radio" name="vision-reason" value="<?php echo esc_attr($key); ?>"><?php echo esc_attr($value["label"]); ?></label> |
| 39 |
<?php if(isset($value["input"])) { ?> |
| 40 |
<input type="text" name="reason-<?php echo esc_attr($key); ?>" placeholder="<?php echo esc_attr($value["input"]); ?>"> |
| 41 |
<?php } ?> |
| 42 |
<?php if(isset($value["text"])) { ?> |
| 43 |
<p><?php echo esc_html($value["text"]); ?></p> |
| 44 |
<?php } ?> |
| 45 |
</div> |
| 46 |
<?php } ?> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
<div class="vision-footer"> |
| 50 |
<div class="vision-btn vision-skip"><?php esc_html_e("Skip & Deactivate", 'vision'); ?></div> |
| 51 |
<div class="vision-btn vision-submit"><?php esc_html_e("Submit & Deactivate", 'vision'); ?></div> |
| 52 |
</div> |
| 53 |
</div> |
| 54 |
</div> |
| 55 |
|
| 56 |
|