deactivation_thickbox.php
121 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Deactivation thickbox. |
| 4 | * |
| 5 | * @var $plugin_title string |
| 6 | * @var $plugin_file string |
| 7 | * @var $plugin_slug string |
| 8 | * @var $thickbox_id string |
| 9 | * @var $ajax_action string |
| 10 | * @var $ajax_nonce string |
| 11 | * |
| 12 | * @package Flexible Shipping |
| 13 | */ |
| 14 | |
| 15 | if ( ! defined( 'ABSPATH' ) ) { |
| 16 | exit; |
| 17 | } |
| 18 | ?> |
| 19 | <div id="<?php echo esc_attr( $thickbox_id ); ?>" style="display:none;"> |
| 20 | <h2> |
| 21 | <?php |
| 22 | echo esc_html( |
| 23 | sprintf( |
| 24 | // Translators: plugin name. |
| 25 | __( 'You are deactivating %s plugin.', 'flexible-shipping' ), |
| 26 | $plugin_title |
| 27 | ) |
| 28 | ); |
| 29 | ?> |
| 30 | </h2> |
| 31 | <div class="wpdesk_tracker_deactivate <?php echo esc_attr( $thickbox_id ); ?>"> |
| 32 | <div class="body"> |
| 33 | <div class="panel" data-panel-id="confirm"><p></p></div> |
| 34 | <div class="panel active" data-panel-id="reasons"> |
| 35 | <h4> |
| 36 | <strong><?php echo esc_html( __( 'If you have a moment, please let us know why you are deactivating the plugin (anonymous feedback):', 'flexible-shipping' ) ); ?></strong> |
| 37 | </h4> |
| 38 | <ul class="reasons-list"> |
| 39 | <li class="reason"> |
| 40 | <label> |
| 41 | <span> |
| 42 | <input type="radio" name="selected-reason" value="plugin_stopped_working"> |
| 43 | </span> |
| 44 | <span><?php echo esc_html( __( 'The plugin suddenly stopped working', 'flexible-shipping' ) ); ?></span> |
| 45 | </label> |
| 46 | </li> |
| 47 | <li class="reason"> |
| 48 | <label> |
| 49 | <span> |
| 50 | <input type="radio" name="selected-reason" value="broke_my_site"> |
| 51 | </span> |
| 52 | <span><?php echo esc_html( __( 'The plugin broke my site', 'flexible-shipping' ) ); ?></span> |
| 53 | </label> |
| 54 | </li> |
| 55 | <li class="reason has-input"> |
| 56 | <label> |
| 57 | <span> |
| 58 | <input type="radio" name="selected-reason" value="dont_like_rules_table" data-show="dont-like-rules-table"> |
| 59 | </span> |
| 60 | <span><?php echo esc_html( __( 'I don\'t like the new version of the rules table', 'flexible-shipping' ) ); ?></span> |
| 61 | </label> |
| 62 | <div class="dont-like-rules-table" class="reason-input" style="display: none"> |
| 63 | <input type="text" class="additional-info" name="dont_like_rules_table_info" placeholder="<?php echo esc_html( __( 'Please let us know how we can improve it', 'flexible-shipping' ) ); ?>"> |
| 64 | </div> |
| 65 | </li> |
| 66 | <li class="reason has-input"> |
| 67 | <label> |
| 68 | <span> |
| 69 | <input type="radio" name="selected-reason" value="found_better_plugin" data-show="found-better-plugin"> |
| 70 | </span> |
| 71 | <span><?php echo esc_html( __( 'I have found a better plugin', 'flexible-shipping' ) ); ?></span> |
| 72 | </label> |
| 73 | <div class="found-better-plugin" class="reason-input" style="display: none"> |
| 74 | <input type="text" class="additional-info" name="better_plugin_name" placeholder="<?php echo esc_html( __( 'What\'s the plugin\'s name?', 'flexible-shipping' ) ); ?>"> |
| 75 | </div> |
| 76 | </li> |
| 77 | <li class="reason"> |
| 78 | <label> |
| 79 | <span> |
| 80 | <input type="radio" name="selected-reason" value="plugin_for_short_period"> |
| 81 | </span> |
| 82 | <span><?php echo esc_html( __( 'I only needed the plugin for a short period', 'flexible-shipping' ) ); ?></span> |
| 83 | </label> |
| 84 | </li> |
| 85 | <li class="reason"> |
| 86 | <label> |
| 87 | <span> |
| 88 | <input type="radio" name="selected-reason" value="no_longer_need"> |
| 89 | </span> |
| 90 | <span><?php echo esc_html( __( 'I no longer need the plugin', 'flexible-shipping' ) ); ?></span> |
| 91 | </label> |
| 92 | </li> |
| 93 | <li class="reason"> |
| 94 | <label> |
| 95 | <span> |
| 96 | <input type="radio" name="selected-reason" value="temporary_deactivation"> |
| 97 | </span> |
| 98 | <span><?php echo esc_html( __( 'It\'s a temporary deactivation. I\'m just debugging an issue.', 'flexible-shipping' ) ); ?></span> |
| 99 | </label> |
| 100 | </li> |
| 101 | <li class="reason has-input"> |
| 102 | <label> |
| 103 | <span> |
| 104 | <input type="radio" name="selected-reason" value="other" data-show="other"> |
| 105 | </span> |
| 106 | <span><?php echo esc_html( __( 'Other', 'flexible-shipping' ) ); ?></span> |
| 107 | </label> |
| 108 | <div class="other" class="reason-input" style="display: none"> |
| 109 | <input type="text" name="other" class="additional-info" placeholder="<?php echo esc_html( __( 'Please let us know how we can improve our plugin', 'flexible-shipping' ) ); ?>"> |
| 110 | </div> |
| 111 | </li> |
| 112 | </ul> |
| 113 | </div> |
| 114 | </div> |
| 115 | <div class="footer"> |
| 116 | <a href="#" class="button button-secondary button-close tracker-button-close"><?php echo esc_html( __( 'Cancel', 'flexible-shipping' ) ); ?></a> |
| 117 | <a href="#" class="button button-primary button-deactivate allow-deactivate"><?php echo esc_html( __( 'Skip & Deactivate', 'flexible-shipping' ) ); ?></a> |
| 118 | </div> |
| 119 | </div> |
| 120 | </div> |
| 121 |